wok view sudo/receipt @ rev 14926
enna: add old default type for edc files.
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 07 13:00:15 2013 +0000 (2013-08-07) |
parents | 249909505345 |
children | 3b4e4318134e |
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 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 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/usr/lib/*.so $fs/usr/lib
35 cp -a $install/etc $fs/
36 }
38 pre_install()
39 {
40 echo "Processing pre-install commands..."
41 if [ -f $root/etc/sudoers.bak ]; then
42 cp $root/etc/sudoers $root/etc/sudoers.bak
43 fi
44 }
46 post_install()
47 {
48 local root
49 root=$1
50 echo "Processing post-install commands..."
51 if [ -f $root/etc/sudoers.bak ]; then
52 mv $root/etc/sudoers $root/etc/sudoers-dist
53 mv $root/etc/sudoers.bak $root/etc/sudoers
54 else
55 chown root.root $root/etc/sudoers
56 chmod 0440 $root/etc/sudoers
57 fi
58 }