wok-current view 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 source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.6.9p12"
5 CATEGORY="extra"
6 SHORT_DESC="Sudo (su "do") allows a system administrator to delegate authority."
7 MAINTAINER="Erjo <erjo@slitaz.org>"
8 DEPENDS=""
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gratisoft.us/sudo/"
11 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure --prefix=/usr \
18 --sysconfdir=/etc \
19 --without-pam \
20 --with-editor=/bin/vi \
21 --libexecdir=/usr/lib
23 # Build everything
24 make
25 # Install everything
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
33 mkdir -p $fs/etc
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 cp -a $_pkg/usr/libi/*.so $fs/usr/lib
37 cp -a stuff/sudoers $fs/etc
38 strip -s $fs/usr/bin/*
39 strip -s $fs/usr/sbin/*
40 strip -s $fs/usr/lib/sudo_noexec.so
42 }
45 post_install()
46 {
47 local root
48 root=$1
49 echo "Processing post-install commands..."
50 chown root.root $root/etc/sudoers
51 chmod 0440 $root/etc/sudoers
52 }