wok-current view sudo-pam/receipt @ rev 22202
updated xorg-libX11 and xorg-libX11-dev (1.5.99.902 -> 1.6.9)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Nov 11 11:31:48 2019 +0100 (2019-11-11) |
parents | 95bad7889d0e |
children | ff210fc49547 |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo-pam"
4 VERSION="1.8.28"
5 CATEGORY="security"
6 SHORT_DESC="Allows command execution as root for specified users using PAM."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.sudo.ws/"
11 SOURCE="sudo"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}sudo/dist/$TARBALL"
15 PROVIDE="sudo:pam"
16 DEPENDS="pam"
17 BUILD_DEPENDS="pam-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --sysconfdir=/etc \
24 --with-pam \
25 --with-editor=/bin/vi \
26 --libexecdir=/usr/lib \
27 $CONFIGURE_ARGS &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 mkdir -p $fs/etc/pam.d
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/sbin $fs/usr
40 cp -a $install/etc/sudoers $fs/etc/
41 cp -a $stuff/sudo $fs/etc/pam.d/
42 cp -a $install/usr/lib $fs/usr
43 }
45 pre_install()
46 {
47 if [ -f "$1/etc/sudoers" ]
48 then
49 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
50 fi
51 }
53 post_install()
54 {
55 if [ -f "$1/etc/sudoers.bak" ]
56 then
57 rm -f "$1/etc/sudoers"
58 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
59 else
60 chown root.root "$1/etc/sudoers"
61 chmod 0440 "$1/etc/sudoers"
62 fi
63 }
65 pre_remove()
66 {
67 tazpkg get-install ${PACKAGE%-pam}
68 }