wok-current view sudo/receipt @ rev 12604

brasero: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 29 08:52:38 2012 +0200 (2012-04-29)
parents 007e04297a32
children 249909505345
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.4"
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
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 mkdir -p $fs/etc
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/sbin $fs/usr
35 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
36 cp -a stuff/sudoers $fs/etc
37 }
39 pre_install()
40 {
41 echo "Processing pre-install commands..."
42 if [ -f $root/etc/sudoers.bak ]; then
43 cp $root/etc/sudoers $root/etc/sudoers.bak
44 fi
45 }
47 post_install()
48 {
49 local root
50 root=$1
51 echo "Processing post-install commands..."
52 if [ -f $root/etc/sudoers.bak ]; then
53 rm -f $root/etc/sudoers
54 mv $root/etc/sudoers.bak $root/etc/sudoers
55 else
56 chown root.root $root/etc/sudoers
57 chmod 0440 $root/etc/sudoers
58 fi
59 }