wok-current view sudo-pam/receipt @ rev 16815
Up gsettings-desktop-schemas (3.12.2)
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Jul 10 23:12:54 2014 -0300 (2014-07-10) |
parents | 3b4e4318134e |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo-pam"
4 VERSION="1.8.10p2"
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 $fs/usr
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 }