wok-current view sudo-pam/receipt @ rev 16086
libsdl: fix last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 16 01:05:20 2014 +0100 (2014-03-16) |
parents | 9b5bad25effd |
children | 66940c68d29e |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo-pam"
4 VERSION="1.8.6p3"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 SOURCE="sudo"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gratisoft.us/sudo/"
12 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
13 PROVIDE="sudo:pam"
15 DEPENDS="pam"
16 BUILD_DEPENDS="pam-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --sysconfdir=/etc \
24 --with-pam \
25 --with-editor=/bin/vi \
26 --libexecdir=/usr/lib \
27 $CONFIGURE_ARGS &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 mkdir -p $fs/etc/pam.d
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/sbin $fs/usr
38 cp -a $install/etc/sudoers $fs/etc/
39 cp -a $stuff/sudo $fs/etc/pam.d/
40 cp -a $install/usr/lib/*.so $fs/usr/lib
41 }
43 pre_install()
44 {
45 local root
46 root=$1
47 echo "Processing pre-install commands..."
48 if [ -f $root/etc/sudoers.bak ]; then
49 cp $root/etc/sudoers $root/etc/sudoers.bak
50 fi
51 }
53 post_install()
54 {
55 local root
56 root=$1
57 echo "Processing post-install commands..."
58 if [ -f $root/etc/sudoers.bak ]; then
59 rm -f $root/etc/sudoers
60 mv $root/etc/sudoers.bak $root/etc/sudoers
61 else
62 chown root.root $root/etc/sudoers
63 chmod 0440 $root/etc/sudoers
64 fi
65 }
67 pre_remove()
68 {
69 tazpkg get-install ${PACKAGE%-pam}
70 }