wok-current annotate sudo/receipt @ rev 19435

zerobin: add download button
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 04 15:33:49 2016 +0200 (2016-10-04)
parents d6ca18366f41
children dfeebf7e6265
rev   line source
erjo@151 1 # SliTaz package receipt.
erjo@151 2
erjo@151 3 PACKAGE="sudo"
devl547@16228 4 VERSION="1.8.10p2"
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"
pascal@15593 8 LICENSE="ISC"
erjo@151 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@151 10 WEB_SITE="http://www.gratisoft.us/sudo/"
erjo@151 11 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
erjo@2631 12 CONFIG_FILES="/etc/sudoers"
erjo@2631 13
erjo@151 14 # Rules to configure and make the package.
erjo@151 15 compile_rules()
erjo@151 16 {
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
devl547@16228 34 cp -a $install/usr/lib/ $fs/usr
erjo@13462 35 cp -a $install/etc $fs/
erjo@151 36 }
erjo@151 37
erjo@1852 38 pre_install()
erjo@1852 39 {
llevrel@18782 40 if [ -f "$1/etc/sudoers" ]; then
pascal@18730 41 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
erjo@1852 42 fi
erjo@1852 43 }
erjo@151 44
erjo@151 45 post_install()
erjo@151 46 {
pascal@18730 47 if [ -f "$1/etc/sudoers.bak" ]; then
pascal@18730 48 mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
pascal@18730 49 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
erjo@1852 50 else
pascal@18730 51 chown root.root "$1/etc/sudoers"
pascal@18730 52 chmod 0440 "$1/etc/sudoers"
erjo@1852 53 fi
al@18734 54 }