wok view sudo/receipt @ rev 17469
Add minidlna
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 26 22:17:30 2014 +0100 (2014-12-26) |
parents | 3b4e4318134e |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.10p2"
5 CATEGORY="security"
6 SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gratisoft.us/sudo/"
11 WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
12 CONFIG_FILES="/etc/sudoers"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --sysconfdir=/etc \
19 --without-pam \
20 --with-editor=/bin/vi \
21 --libexecdir=/usr/lib \
22 $CONFIGURE_ARGS &&
23 # Build everything
24 make &&
25 # Install everything
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/usr/lib/ $fs/usr
36 cp -a $install/etc $fs/
37 }
39 pre_install()
40 {
41 echo "Processing pre-install commands..."
42 if [ -f $root/etc/sudoers.bak ]; then
43 cp $root/etc/sudoers $root/etc/sudoers.bak
44 fi
45 }
47 post_install()
48 {
49 local root
50 root=$1
51 echo "Processing post-install commands..."
52 if [ -f $root/etc/sudoers.bak ]; then
53 mv $root/etc/sudoers $root/etc/sudoers-dist
54 mv $root/etc/sudoers.bak $root/etc/sudoers
55 else
56 chown root.root $root/etc/sudoers
57 chmod 0440 $root/etc/sudoers
58 fi
59 }