wok-6.x view sudo/receipt @ rev 18989
Up: Iron Browser v24.0.1350.0 to v48.2550.0.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Fri Mar 18 03:39:02 2016 -0300 (2016-03-18) |
parents | d6ca18366f41 |
children | dfeebf7e6265 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.10p2"
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="http://www.gratisoft.us/sudo/"
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 }