wok view sudo/receipt @ rev 20287

Up zstd (1.3.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 02 12:15:19 2018 +0200 (2018-04-02)
parents 0baf19fb14de
children 6135577f4d08
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.20p2"
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 ./configure --sysconfdir=/etc \
18 --without-pam \
19 --with-editor=/bin/vi \
20 --libexecdir=/usr/lib \
21 $CONFIGURE_ARGS &&
22 # Build everything
23 make &&
24 # Install everything
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $install/usr/bin $fs/usr
33 cp -a $install/usr/sbin $fs/usr
34 cp -a $install/usr/lib/ $fs/usr
35 cp -a $install/etc $fs/
36 }
38 pre_install()
39 {
40 if [ -f "$1/etc/sudoers" ]; then
41 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
42 fi
43 }
45 post_install()
46 {
47 if [ -f "$1/etc/sudoers.bak" ]; then
48 mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
49 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
50 else
51 chown root.root "$1/etc/sudoers"
52 chmod 0440 "$1/etc/sudoers"
53 fi
54 }