wok view sudo/receipt @ rev 20679

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 26 12:26:47 2019 +0100 (2019-01-26)
parents dfeebf7e6265
children 95bad7889d0e
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.20p2"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://www.sudo.ws/"
11 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
12 CONFIG_FILES="/etc/sudoers"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 ./configure --sysconfdir=/etc \
18 --without-pam \
19 --with-editor=/bin/vi \
20 --libexecdir=/usr/lib \
21 $CONFIGURE_ARGS &&
22 # Build everything
23 make &&
24 # Install everything
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/usr/lib/ $fs/usr
35 cp -a $install/etc $fs/
36 }
38 pre_install()
39 {
40 if [ -f "$1/etc/sudoers" ]; then
41 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
42 fi
43 }
45 post_install()
46 {
47 if [ -f "$1/etc/sudoers.bak" ]; then
48 mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
49 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
50 else
51 chown root.root "$1/etc/sudoers"
52 chmod 0440 "$1/etc/sudoers"
53 fi
54 }