wok diff sudo-pam/receipt @ rev 2204
get-OpenOffice3: add it_IT and ru_RU support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 10 10:31:53 2009 +0000 (2009-02-10) |
parents | |
children | 22ab8eb50d81 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sudo-pam/receipt Tue Feb 10 10:31:53 2009 +0000 1.3 @@ -0,0 +1,67 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="sudo-pam" 1.7 +VERSION="1.6.9p17" 1.8 +CATEGORY="security" 1.9 +SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM." 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="pam" 1.12 +BUILD_DEPENDS="pam pam-dev" 1.13 +SOURCE="sudo" 1.14 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 +WEB_SITE="http://www.gratisoft.us/sudo/" 1.16 +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" 1.17 +PROVIDE="sudo:pam" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + ./configure --prefix=/usr \ 1.24 + --sysconfdir=/etc \ 1.25 + --with-pam \ 1.26 + --with-editor=/bin/vi \ 1.27 + --libexecdir=/usr/lib \ 1.28 + $CONFIGURE_ARGS && 1.29 + 1.30 + # Build everything 1.31 + make && 1.32 + # Install everything 1.33 + make DESTDIR=$PWD/_pkg install 1.34 +} 1.35 + 1.36 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 +genpkg_rules() 1.38 +{ 1.39 + mkdir -p $fs/usr/lib 1.40 + mkdir -p $fs/etc 1.41 + cp -a $_pkg/usr/bin $fs/usr 1.42 + cp -a $_pkg/usr/sbin $fs/usr 1.43 + cp -a $_pkg/usr/lib/*.so $fs/usr/lib 1.44 + cp -a stuff/sudoers $fs/etc 1.45 + strip -s $fs/usr/bin/* 1.46 + strip -s $fs/usr/sbin/* 1.47 + strip -s $fs/usr/lib/sudo_noexec.so 1.48 +} 1.49 + 1.50 +pre_install() 1.51 +{ 1.52 + echo "Processing pre-install commands..." 1.53 + if [ -f $root/etc/sudoers.bak ]; then 1.54 + cp $root/etc/sudoers $root/etc/sudoers.bak 1.55 + fi 1.56 +} 1.57 + 1.58 +post_install() 1.59 +{ 1.60 + local root 1.61 + root=$1 1.62 + echo "Processing post-install commands..." 1.63 + if [ -f $root/etc/sudoers.bak ]; then 1.64 + rm -f $root/etc/sudoers 1.65 + mv $root/etc/sudoers.bak $root/etc/sudoers 1.66 + else 1.67 + chown root.root $root/etc/sudoers 1.68 + chmod 0440 $root/etc/sudoers 1.69 + fi 1.70 +}