wok-6.x view sudo/receipt @ rev 15936
UP: soprano (2.8.0) and fix build depends
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 22 11:27:57 2014 +0100 (2014-02-22) |
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 }