wok-stable view sudo/receipt @ rev 9386
Up firefox-langpack* (4.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 26 11:12:45 2011 +0100 (2011-03-26) |
parents | 1e86a55e5f67 |
children | 02bbaa9d12ba |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.0"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
7 MAINTAINER="erjo@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gratisoft.us/sudo/"
10 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
11 CONFIG_FILES="/etc/sudoers"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --sysconfdir=/etc \
19 --without-pam \
20 --with-editor=/bin/vi \
21 --libexecdir=/usr/lib \
23 # Build everything
24 make &&
25 # Install everything
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
33 mkdir -p $fs/etc
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
37 cp -a stuff/sudoers $fs/etc
38 strip -s $fs/usr/bin/*
39 strip -s $fs/usr/sbin/*
40 strip -s $fs/usr/lib/sudo_noexec.so
41 }
43 pre_install()
44 {
45 echo "Processing pre-install commands..."
46 if [ -f $root/etc/sudoers.bak ]; then
47 cp $root/etc/sudoers $root/etc/sudoers.bak
48 fi
49 }
51 post_install()
52 {
53 local root
54 root=$1
55 echo "Processing post-install commands..."
56 if [ -f $root/etc/sudoers.bak ]; then
57 rm -f $root/etc/sudoers
58 mv $root/etc/sudoers.bak $root/etc/sudoers
59 else
60 chown root.root $root/etc/sudoers
61 chmod 0440 $root/etc/sudoers
62 fi
63 }