wok annotate sudo-pam/receipt @ rev 16248

ARM add: aspell, enchant, gtkspell, geany, leafpad, alaplayer
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 03 22:56:54 2014 +0200 (2014-04-03)
parents 3b4e4318134e
children 9e01bc6321ea
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 {
pascal@2191 21 cd $src
pankso@10004 22 ./configure \
pankso@10004 23 --sysconfdir=/etc \
pankso@10004 24 --with-pam \
pankso@10004 25 --with-editor=/bin/vi \
slaxemulator@10081 26 --libexecdir=/usr/lib \
slaxemulator@10081 27 $CONFIGURE_ARGS &&
pankso@10004 28 make && make install
pascal@2191 29 }
pascal@2191 30
pascal@2191 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2191 32 genpkg_rules()
pascal@2191 33 {
pascal@2191 34 mkdir -p $fs/usr/lib
al@13542 35 mkdir -p $fs/etc/pam.d
pascal@15593 36 cp -a $install/usr/bin $fs/usr
pascal@15593 37 cp -a $install/usr/sbin $fs/usr
pascal@15593 38 cp -a $install/etc/sudoers $fs/etc/
al@13542 39 cp -a $stuff/sudo $fs/etc/pam.d/
devl547@16228 40 cp -a $install/usr/lib $fs/usr
pascal@2191 41 }
pascal@2191 42
pascal@2191 43 pre_install()
pascal@2191 44 {
slaxemulator@8963 45 local root
slaxemulator@8963 46 root=$1
pascal@2191 47 echo "Processing pre-install commands..."
pascal@2191 48 if [ -f $root/etc/sudoers.bak ]; then
pascal@2191 49 cp $root/etc/sudoers $root/etc/sudoers.bak
pascal@2191 50 fi
pascal@2191 51 }
pascal@2191 52
pascal@2191 53 post_install()
pascal@2191 54 {
pascal@2191 55 local root
pascal@2191 56 root=$1
pascal@2191 57 echo "Processing post-install commands..."
pascal@2191 58 if [ -f $root/etc/sudoers.bak ]; then
pascal@2191 59 rm -f $root/etc/sudoers
pascal@2191 60 mv $root/etc/sudoers.bak $root/etc/sudoers
pascal@2191 61 else
pascal@2191 62 chown root.root $root/etc/sudoers
pascal@2191 63 chmod 0440 $root/etc/sudoers
pascal@2191 64 fi
pascal@2191 65 }
pascal@7632 66
pascal@7632 67 pre_remove()
pascal@7632 68 {
pascal@7632 69 tazpkg get-install ${PACKAGE%-pam}
pascal@7632 70 }