wok-6.x view sudo/receipt @ rev 1279
udev-dev: up/fix VERSION
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Aug 18 14:38:49 2008 +0200 (2008-08-18) |
parents | a075ff895254 |
children | 59a23b491383 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.6.9p12"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
7 MAINTAINER="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 \
22 $CONFIGURE_ARGS
24 # Build everything
25 make
26 # Install everything
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 mkdir -p $fs/etc
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/sbin $fs/usr
37 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
38 cp -a stuff/sudoers $fs/etc
39 strip -s $fs/usr/bin/*
40 strip -s $fs/usr/sbin/*
41 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 }