wok view sudo/receipt @ rev 23678
updated sudo and sudo-pam (1.8.28 -> 1.8.31)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 26 10:56:37 2020 +0100 (2020-04-26) |
parents | 624fa0648f2e |
children | 059bb2e67481 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.31"
5 CATEGORY="security"
6 SHORT_DESC="Allows command execution as root for specified users."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.sudo.ws/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}sudo/dist/$TARBALL"
14 CONFIG_FILES="/etc/sudoers"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 ./configure \
20 --sysconfdir=/etc \
21 --without-pam \
22 --with-editor=/bin/vi \
23 --libexecdir=/usr/lib \
24 $CONFIGURE_ARGS &&
26 # Build everything
27 make &&
29 # Install everything
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/usr/lib/ $fs/usr
41 cp -a $install/etc $fs/
42 }
44 pre_install()
45 {
46 if [ -f "$1/etc/sudoers" ]
47 then
48 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
49 fi
50 }
52 post_install()
53 {
54 if [ -f "$1/etc/sudoers.bak" ]
55 then
56 mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
57 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
58 else
59 chown root.root "$1/etc/sudoers"
60 chmod 0440 "$1/etc/sudoers"
61 fi
62 }