wok-next view sudo-pam/receipt @ rev 3695
Upgrade: mesa (7.4.1 to 7.4.4)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Thu Jul 16 11:10:09 2009 +0000 (2009-07-16) |
parents | 22ab8eb50d81 |
children | a023a72adef8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo-pam"
4 VERSION="1.7.1"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="pam"
9 BUILD_DEPENDS="pam pam-dev"
10 SOURCE="sudo"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://www.gratisoft.us/sudo/"
13 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
14 PROVIDE="sudo:pam"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc \
22 --with-pam \
23 --with-editor=/bin/vi \
24 --libexecdir=/usr/lib \
25 $CONFIGURE_ARGS &&
27 # Build everything
28 make &&
29 # Install everything
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 mkdir -p $fs/etc
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/sbin $fs/usr
40 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
41 cp -a ../$SOURCE/stuff/sudoers $fs/etc
42 strip -s $fs/usr/bin/*
43 strip -s $fs/usr/sbin/*
44 strip -s $fs/usr/lib/sudo_noexec.so
45 }
47 pre_install()
48 {
49 echo "Processing pre-install commands..."
50 if [ -f $root/etc/sudoers.bak ]; then
51 cp $root/etc/sudoers $root/etc/sudoers.bak
52 fi
53 }
55 post_install()
56 {
57 local root
58 root=$1
59 echo "Processing post-install commands..."
60 if [ -f $root/etc/sudoers.bak ]; then
61 rm -f $root/etc/sudoers
62 mv $root/etc/sudoers.bak $root/etc/sudoers
63 else
64 chown root.root $root/etc/sudoers
65 chmod 0440 $root/etc/sudoers
66 fi
67 }