wok annotate sudo/receipt @ rev 151

Add : Midnight Commander, sudo.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jan 26 00:27:46 2008 +0100 (2008-01-26)
parents
children de60201d900b
rev   line source
erjo@151 1 # SliTaz package receipt.
erjo@151 2
erjo@151 3 PACKAGE="sudo"
erjo@151 4 VERSION="1.6.9p12"
erjo@151 5 CATEGORY="extra"
erjo@151 6 SHORT_DESC="Sudo (su "do") allows a system administrator to delegate authority."
erjo@151 7 MAINTAINER="Erjo <erjo@slitaz.org>"
erjo@151 8 DEPENDS=""
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@151 12
erjo@151 13 # Rules to configure and make the package.
erjo@151 14 compile_rules()
erjo@151 15 {
erjo@151 16 cd $src
erjo@151 17 ./configure --prefix=/usr \
erjo@151 18 --sysconfdir=/etc \
erjo@151 19 --without-pam \
erjo@151 20 --with-editor=/bin/vi \
erjo@151 21 --libexecdir=/usr/lib
erjo@151 22
erjo@151 23 # Build everything
erjo@151 24 make
erjo@151 25 # Install everything
erjo@151 26 make DESTDIR=$PWD/_pkg 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
erjo@151 36 cp -a $_pkg/usr/libi/*.so $fs/usr/lib
erjo@151 37 cp -a stuff/sudoers $fs/etc
erjo@151 38 strip -s $fs/usr/bin/*
erjo@151 39 strip -s $fs/usr/sbin/*
erjo@151 40 strip -s $fs/usr/lib/sudo_noexec.so
erjo@151 41
erjo@151 42 }
erjo@151 43
erjo@151 44
erjo@151 45 post_install()
erjo@151 46 {
erjo@151 47 local root
erjo@151 48 root=$1
erjo@151 49 echo "Processing post-install commands..."
erjo@151 50 chown root.root $root/etc/sudoers
erjo@151 51 chmod 0440 $root/etc/sudoers
erjo@151 52 }