wok-next annotate sudo/receipt @ rev 20727
python-gevent-psycopg2: fix error "urllib2.HTTPError: HTTP Error 403: SSL is required"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon May 28 15:32:33 2018 +0300 (2018-05-28) |
parents | 757d032c55c7 |
children | d5aab818505e |
rev | line source |
---|---|
al@19741 | 1 # SliTaz package receipt v2. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="sudo" |
al@19741 | 4 VERSION="1.8.20p2" |
pankso@209 | 5 CATEGORY="security" |
al@19741 | 6 SHORT_DESC="Execute a command as another user" |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15593 | 8 LICENSE="ISC" |
al@19741 | 9 WEB_SITE="https://www.sudo.ws/" |
erjo@2631 | 10 |
al@19670 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19741 | 12 WGET_URL="${WEB_SITE}dist/$TARBALL" |
al@19670 | 13 |
pascal@20288 | 14 BUILD_DEPENDS="gettext groff pam-dev" |
al@20534 | 15 SPLIT="sudo sudo-dev sudo-pam:pam sudo-pam-dev:pam" |
al@19668 | 16 |
al@20534 | 17 compile_rules() { |
al@20534 | 18 case $SET in |
al@20534 | 19 '') SET_ARGS='--without-pam';; |
al@20534 | 20 pam) SET_ARGS='--with-pam';; |
al@20534 | 21 esac |
al@20534 | 22 |
al@19670 | 23 ./configure \ |
al@19741 | 24 --libexecdir=/usr/lib \ |
al@19741 | 25 --with-secure-path \ |
al@19741 | 26 --with-all-insults \ |
al@19741 | 27 --with-env-editor \ |
al@19741 | 28 --docdir=/usr/share/doc/sudo-$VERSION \ |
al@19741 | 29 --with-passprompt="[sudo] password for %p" \ |
al@20534 | 30 $SET_ARGS \ |
al@19670 | 31 $CONFIGURE_ARGS && |
al@20604 | 32 fix libtool && |
pascal@1476 | 33 make && |
al@20534 | 34 make install || return 1 |
al@19741 | 35 |
al@20534 | 36 ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0 |
pascal@20288 | 37 |
al@20534 | 38 if [ "$SET" == 'pam' ]; then |
al@20534 | 39 install -Dm644 $stuff/sudo $install/etc/pam.d/sudo |
al@20534 | 40 fi |
erjo@151 | 41 } |
erjo@151 | 42 |
al@20534 | 43 genpkg_rules() { |
al@19741 | 44 case $PACKAGE in |
al@19741 | 45 sudo) |
al@19741 | 46 copy @std |
al@19741 | 47 DEPENDS="zlib" |
al@19741 | 48 CONFIG_FILES="/etc/sudoers" |
al@19741 | 49 ;; |
al@20534 | 50 sudo-dev) |
al@20534 | 51 copy @dev |
al@20534 | 52 DEPENDS="zlib-dev" |
al@20534 | 53 ;; |
al@20534 | 54 |
pascal@20288 | 55 sudo-pam) |
al@20534 | 56 copy @std |
pascal@20288 | 57 DEPENDS="zlib pam" |
pascal@20288 | 58 PROVIDE="sudo:pam" |
pascal@20288 | 59 CONFIG_FILES="/etc/sudoers /etc/pam.d/sudo" |
pascal@20288 | 60 ;; |
al@20534 | 61 sudo-pam-dev) |
al@19741 | 62 copy @dev |
pascal@20288 | 63 DEPENDS="zlib-dev pam-dev" |
pascal@20288 | 64 PROVIDE="sudo-dev:pam" |
pascal@20288 | 65 ;; |
al@19741 | 66 esac |
erjo@151 | 67 } |