wok-current diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sudo/receipt Sat Jan 26 00:27:46 2008 +0100 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="sudo" 1.7 +VERSION="1.6.9p12" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="Sudo (su "do") allows a system administrator to delegate authority." 1.10 +MAINTAINER="Erjo <erjo@slitaz.org>" 1.11 +DEPENDS="" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.gratisoft.us/sudo/" 1.14 +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + cd $src 1.20 + ./configure --prefix=/usr \ 1.21 + --sysconfdir=/etc \ 1.22 + --without-pam \ 1.23 + --with-editor=/bin/vi \ 1.24 + --libexecdir=/usr/lib 1.25 + 1.26 + # Build everything 1.27 + make 1.28 + # Install everything 1.29 + make DESTDIR=$PWD/_pkg install 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +genpkg_rules() 1.34 +{ 1.35 + mkdir -p $fs/usr/lib 1.36 + mkdir -p $fs/etc 1.37 + cp -a $_pkg/usr/bin $fs/usr 1.38 + cp -a $_pkg/usr/sbin $fs/usr 1.39 + cp -a $_pkg/usr/libi/*.so $fs/usr/lib 1.40 + cp -a stuff/sudoers $fs/etc 1.41 + strip -s $fs/usr/bin/* 1.42 + strip -s $fs/usr/sbin/* 1.43 + strip -s $fs/usr/lib/sudo_noexec.so 1.44 + 1.45 +} 1.46 + 1.47 + 1.48 +post_install() 1.49 +{ 1.50 + local root 1.51 + root=$1 1.52 + echo "Processing post-install commands..." 1.53 + chown root.root $root/etc/sudoers 1.54 + chmod 0440 $root/etc/sudoers 1.55 +}