wok-current annotate sudo-pam/receipt @ rev 18741
Finish to remove redundant messages 'Processing * commands...'; KISS get-msttcorefonts; add get-msttcorefonts2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 25 15:23:46 2015 +0200 (2015-12-25) |
parents | 9e01bc6321ea |
children | 0baf19fb14de |
rev | line source |
---|---|
pascal@2191 | 1 # SliTaz package receipt. |
pascal@2191 | 2 |
pascal@2191 | 3 PACKAGE="sudo-pam" |
devl547@16228 | 4 VERSION="1.8.10p2" |
pascal@2191 | 5 CATEGORY="security" |
pascal@2191 | 6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM." |
pascal@2191 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15593 | 8 LICENSE="ISC" |
pascal@2191 | 9 SOURCE="sudo" |
pascal@2191 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2191 | 11 WEB_SITE="http://www.gratisoft.us/sudo/" |
pascal@2191 | 12 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" |
pascal@2191 | 13 PROVIDE="sudo:pam" |
pascal@2191 | 14 |
pankso@10004 | 15 DEPENDS="pam" |
pankso@10004 | 16 BUILD_DEPENDS="pam-dev" |
pankso@10004 | 17 |
pascal@2191 | 18 # Rules to configure and make the package. |
pascal@2191 | 19 compile_rules() |
pascal@2191 | 20 { |
pankso@10004 | 21 ./configure \ |
pankso@10004 | 22 --sysconfdir=/etc \ |
pankso@10004 | 23 --with-pam \ |
pankso@10004 | 24 --with-editor=/bin/vi \ |
slaxemulator@10081 | 25 --libexecdir=/usr/lib \ |
slaxemulator@10081 | 26 $CONFIGURE_ARGS && |
pankso@10004 | 27 make && make install |
pascal@2191 | 28 } |
pascal@2191 | 29 |
pascal@2191 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2191 | 31 genpkg_rules() |
pascal@2191 | 32 { |
pascal@2191 | 33 mkdir -p $fs/usr/lib |
al@13542 | 34 mkdir -p $fs/etc/pam.d |
pascal@15593 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15593 | 36 cp -a $install/usr/sbin $fs/usr |
pascal@15593 | 37 cp -a $install/etc/sudoers $fs/etc/ |
al@13542 | 38 cp -a $stuff/sudo $fs/etc/pam.d/ |
devl547@16228 | 39 cp -a $install/usr/lib $fs/usr |
pascal@2191 | 40 } |
pascal@2191 | 41 |
pascal@2191 | 42 pre_install() |
pascal@2191 | 43 { |
pascal@18730 | 44 if [ -f "$1/etc/sudoers.bak" ]; then |
pascal@18730 | 45 cp "$1/etc/sudoers" "$1/etc/sudoers.bak" |
pascal@2191 | 46 fi |
pascal@2191 | 47 } |
pascal@2191 | 48 |
pascal@2191 | 49 post_install() |
pascal@2191 | 50 { |
pascal@18730 | 51 if [ -f "$1/etc/sudoers.bak" ]; then |
pascal@18730 | 52 rm -f "$1/etc/sudoers" |
pascal@18730 | 53 mv "$1/etc/sudoers.bak" "$1/etc/sudoers" |
pascal@2191 | 54 else |
pascal@18730 | 55 chown root.root "$1/etc/sudoers" |
pascal@18730 | 56 chmod 0440 "$1/etc/sudoers" |
pascal@2191 | 57 fi |
al@18741 | 58 } |
pascal@7632 | 59 |
pascal@7632 | 60 pre_remove() |
pascal@7632 | 61 { |
al@18741 | 62 tazpkg get-install ${PACKAGE%-pam} |
pascal@7632 | 63 } |