wok view sudo/receipt @ rev 22307
updated xrdp and xrdp-dev (0.9.3.1 -> 0.9.11)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Nov 14 08:51:10 2019 +0100 (2019-11-14) |
parents | 95bad7889d0e |
children | ff210fc49547 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.8.28"
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 }