wok-next annotate sudo/receipt @ rev 13618

Add gtk-recordmydesktop (frontend to recordmydesktop
author Christophe Lincoln <pankso@slitaz.org>
date Tue Nov 13 10:17:54 2012 +0100 (2012-11-13)
parents 249909505345
children 3b4e4318134e
rev   line source
erjo@151 1 # SliTaz package receipt.
erjo@151 2
erjo@151 3 PACKAGE="sudo"
samuel_trassare@13419 4 VERSION="1.8.6p3"
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 # Rules to configure and make the package.
erjo@151 14 compile_rules()
erjo@151 15 {
erjo@151 16 cd $src
slaxemulator@8963 17 ./configure --sysconfdir=/etc \
erjo@151 18 --without-pam \
erjo@151 19 --with-editor=/bin/vi \
pankso@156 20 --libexecdir=/usr/lib \
slaxemulator@10081 21 $CONFIGURE_ARGS &&
erjo@151 22 # Build everything
pascal@1476 23 make &&
erjo@151 24 # Install everything
slaxemulator@8963 25 make install
erjo@151 26 }
erjo@151 27
erjo@151 28 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@151 29 genpkg_rules()
erjo@151 30 {
erjo@151 31 mkdir -p $fs/usr/lib
erjo@13462 32 cp -a $install/usr/bin $fs/usr
erjo@13462 33 cp -a $install/usr/sbin $fs/usr
erjo@13462 34 cp -a $install/usr/lib/*.so $fs/usr/lib
erjo@13462 35 cp -a $install/etc $fs/
erjo@151 36 }
erjo@151 37
erjo@1852 38 pre_install()
erjo@1852 39 {
erjo@1852 40 echo "Processing pre-install commands..."
erjo@1852 41 if [ -f $root/etc/sudoers.bak ]; then
erjo@1852 42 cp $root/etc/sudoers $root/etc/sudoers.bak
erjo@1852 43 fi
erjo@1852 44 }
erjo@151 45
erjo@151 46 post_install()
erjo@151 47 {
pankso@156 48 local root
pankso@156 49 root=$1
pankso@156 50 echo "Processing post-install commands..."
erjo@1852 51 if [ -f $root/etc/sudoers.bak ]; then
erjo@13462 52 mv $root/etc/sudoers $root/etc/sudoers-dist
erjo@1852 53 mv $root/etc/sudoers.bak $root/etc/sudoers
erjo@1852 54 else
erjo@1852 55 chown root.root $root/etc/sudoers
erjo@1852 56 chmod 0440 $root/etc/sudoers
erjo@1852 57 fi
erjo@151 58 }