wok view sudo/receipt @ rev 9721
pangomm: Add cairomm-dev and glibmm-dev to build depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 09 01:41:52 2011 +0000 (2011-05-09) |
parents | 02bbaa9d12ba |
children | 680191d09a83 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.1"
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 \
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 }