wok-next view sudo-pam/receipt @ rev 19884
libxklavier: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 07 14:53:11 2017 +0200 (2017-10-07) |
parents | 58556ca016f4 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="sudo-pam"
4 VERSION="1.8.20p2"
5 CATEGORY="security"
6 SHORT_DESC="Execute a command as another user, with PAM support"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.sudo.ws/"
11 TARBALL="sudo-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}dist/$TARBALL"
14 BUILD_DEPENDS="gettext groff pam-dev"
15 SPLIT="sudo-pam-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --sysconfdir=/etc \
22 --libexecdir=/usr/lib \
23 --with-secure-path \
24 --with-all-insults \
25 --with-env-editor \
26 --docdir=/usr/share/doc/sudo-$VERSION \
27 --with-passprompt="[sudo] password for %p" \
28 --with-pam \
29 $CONFIGURE_ARGS &&
30 make &&
31 make install &&
33 ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0 &&
35 mkdir -p $install/etc/pam.d &&
36 cp $stuff/sudo $install/etc/pam.d/
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 sudo-pam)
44 copy @std
45 DEPENDS="pam zlib"
46 PROVIDE="sudo:pam"
47 CONFIG_FILES="/etc/sudoers /etc/pam.d/sudo"
48 ;;
49 *-dev)
50 copy @dev
51 DEPENDS="pam-dev zlib-dev"
52 PROVIDE="sudo-dev:pam"
53 ;;
54 esac
55 }
57 # FIXME: you will not be able to remove 'sudo-pam' until you remove 'pam'...
58 pre_remove_sudo_pam()
59 {
60 tazpkg -gi sudo
61 }