wok view sudo-pam/receipt @ rev 23848

inkscape: update build_depends
author Richard Dunbar <mojo@slitaz.org>
date Sun Jun 14 23:18:03 2020 -0400 (2020-06-14)
parents 624fa0648f2e
children 059bb2e67481
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo-pam"
4 VERSION="1.8.31"
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 }