wok-next view sudo/receipt @ rev 20553
Up cookutils (1045), tazpkg (963)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 13:36:51 2018 +0300 (2018-04-06) |
parents | 2ec88e5df2dd |
children | 10df65db91ad |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="sudo"
4 VERSION="1.8.20p2"
5 CATEGORY="security"
6 SHORT_DESC="Execute a command as another user"
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}dist/$TARBALL"
14 BUILD_DEPENDS="gettext groff pam-dev"
15 SPLIT="sudo sudo-dev sudo-pam:pam sudo-pam-dev:pam"
17 compile_rules() {
18 case $SET in
19 '') SET_ARGS='--without-pam';;
20 pam) SET_ARGS='--with-pam';;
21 esac
23 ./configure \
24 --libexecdir=/usr/lib \
25 --with-secure-path \
26 --with-all-insults \
27 --with-env-editor \
28 --docdir=/usr/share/doc/sudo-$VERSION \
29 --with-passprompt="[sudo] password for %p" \
30 $SET_ARGS \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install || return 1
35 ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0
37 if [ "$SET" == 'pam' ]; then
38 install -Dm644 $stuff/sudo $install/etc/pam.d/sudo
39 fi
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 sudo)
45 copy @std
46 DEPENDS="zlib"
47 CONFIG_FILES="/etc/sudoers"
48 ;;
49 sudo-dev)
50 copy @dev
51 DEPENDS="zlib-dev"
52 ;;
54 sudo-pam)
55 copy @std
56 DEPENDS="zlib pam"
57 PROVIDE="sudo:pam"
58 CONFIG_FILES="/etc/sudoers /etc/pam.d/sudo"
59 ;;
60 sudo-pam-dev)
61 copy @dev
62 DEPENDS="zlib-dev pam-dev"
63 PROVIDE="sudo-dev:pam"
64 ;;
65 esac
66 }