wok-next view sudo/receipt @ rev 20732
Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 17:01:41 2018 +0300 (2018-05-29) |
parents | 757d032c55c7 |
children | d5aab818505e |
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 fix libtool &&
33 make &&
34 make install || return 1
36 ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0
38 if [ "$SET" == 'pam' ]; then
39 install -Dm644 $stuff/sudo $install/etc/pam.d/sudo
40 fi
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 sudo)
46 copy @std
47 DEPENDS="zlib"
48 CONFIG_FILES="/etc/sudoers"
49 ;;
50 sudo-dev)
51 copy @dev
52 DEPENDS="zlib-dev"
53 ;;
55 sudo-pam)
56 copy @std
57 DEPENDS="zlib pam"
58 PROVIDE="sudo:pam"
59 CONFIG_FILES="/etc/sudoers /etc/pam.d/sudo"
60 ;;
61 sudo-pam-dev)
62 copy @dev
63 DEPENDS="zlib-dev pam-dev"
64 PROVIDE="sudo-dev:pam"
65 ;;
66 esac
67 }