wok-current view sudo/receipt @ rev 15857

Up: audacious to 3.4.3.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Jan 29 20:09:33 2014 +0000 (2014-01-29)
parents 365a156417b6
children 66940c68d29e
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.6p3"
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 cd $src
18 ./configure --sysconfdir=/etc \
19 --without-pam \
20 --with-editor=/bin/vi \
21 --libexecdir=/usr/lib \
22 $CONFIGURE_ARGS &&
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 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/usr/lib/*.so $fs/usr/lib
36 cp -a $install/etc $fs/
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 mv $root/etc/sudoers $root/etc/sudoers-dist
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 }