wok-current annotate sudo/receipt @ rev 9551
taglib-dev: fix desc
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Apr 10 12:08:35 2011 +0000 (2011-04-10) |
parents | 4ed538cf3c13 |
children | 30937e5ffc8d |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="sudo" |
slaxemulator@8963 | 4 VERSION="1.8.0" |
pankso@209 | 5 CATEGORY="security" |
pascal@1137 | 6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
erjo@151 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@151 | 9 WEB_SITE="http://www.gratisoft.us/sudo/" |
erjo@151 | 10 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" |
erjo@2631 | 11 CONFIG_FILES="/etc/sudoers" |
erjo@2631 | 12 |
erjo@151 | 13 |
erjo@151 | 14 # Rules to configure and make the package. |
erjo@151 | 15 compile_rules() |
erjo@151 | 16 { |
erjo@151 | 17 cd $src |
slaxemulator@8963 | 18 ./configure --sysconfdir=/etc \ |
erjo@151 | 19 --without-pam \ |
erjo@151 | 20 --with-editor=/bin/vi \ |
pankso@156 | 21 --libexecdir=/usr/lib \ |
erjo@151 | 22 |
erjo@151 | 23 # Build everything |
pascal@1476 | 24 make && |
erjo@151 | 25 # Install everything |
slaxemulator@8963 | 26 make install |
erjo@151 | 27 } |
erjo@151 | 28 |
erjo@151 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 30 genpkg_rules() |
erjo@151 | 31 { |
erjo@151 | 32 mkdir -p $fs/usr/lib |
erjo@151 | 33 mkdir -p $fs/etc |
erjo@151 | 34 cp -a $_pkg/usr/bin $fs/usr |
erjo@151 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pankso@156 | 36 cp -a $_pkg/usr/lib/*.so $fs/usr/lib |
erjo@151 | 37 cp -a stuff/sudoers $fs/etc |
erjo@151 | 38 } |
erjo@151 | 39 |
erjo@1852 | 40 pre_install() |
erjo@1852 | 41 { |
erjo@1852 | 42 echo "Processing pre-install commands..." |
erjo@1852 | 43 if [ -f $root/etc/sudoers.bak ]; then |
erjo@1852 | 44 cp $root/etc/sudoers $root/etc/sudoers.bak |
erjo@1852 | 45 fi |
erjo@1852 | 46 } |
erjo@151 | 47 |
erjo@151 | 48 post_install() |
erjo@151 | 49 { |
pankso@156 | 50 local root |
pankso@156 | 51 root=$1 |
pankso@156 | 52 echo "Processing post-install commands..." |
erjo@1852 | 53 if [ -f $root/etc/sudoers.bak ]; then |
erjo@1852 | 54 rm -f $root/etc/sudoers |
erjo@1852 | 55 mv $root/etc/sudoers.bak $root/etc/sudoers |
erjo@1852 | 56 else |
erjo@1852 | 57 chown root.root $root/etc/sudoers |
erjo@1852 | 58 chmod 0440 $root/etc/sudoers |
erjo@1852 | 59 fi |
erjo@151 | 60 } |