wok-next annotate sudo/receipt @ rev 20307
mplayer-svn tiny libpng patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 15:10:02 2017 +0100 (2017-11-10) |
parents | 9278a60d6895 |
children | 757d032c55c7 |
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" |
pascal@20288 | 15 SPLIT="sudo sudo-pam sudo-dev sudo-pam-dev" |
al@19668 | 16 |
erjo@151 | 17 # Rules to configure and make the package. |
erjo@151 | 18 compile_rules() |
erjo@151 | 19 { |
pascal@20288 | 20 cp -a $src $src-pam |
al@19670 | 21 ./configure \ |
al@19670 | 22 --sysconfdir=/etc \ |
al@19741 | 23 --libexecdir=/usr/lib \ |
al@19741 | 24 --with-secure-path \ |
al@19741 | 25 --with-all-insults \ |
al@19741 | 26 --with-env-editor \ |
al@19741 | 27 --docdir=/usr/share/doc/sudo-$VERSION \ |
al@19741 | 28 --with-passprompt="[sudo] password for %p" \ |
al@19670 | 29 --without-pam \ |
al@19670 | 30 $CONFIGURE_ARGS && |
pascal@1476 | 31 make && |
al@19741 | 32 make install && |
al@19741 | 33 |
pascal@20288 | 34 cd $src-pam && |
pascal@20288 | 35 ./configure \ |
pascal@20288 | 36 --sysconfdir=/etc \ |
pascal@20288 | 37 --libexecdir=/usr/lib \ |
pascal@20288 | 38 --with-secure-path \ |
pascal@20288 | 39 --with-all-insults \ |
pascal@20288 | 40 --with-env-editor \ |
pascal@20288 | 41 --docdir=/usr/share/doc/sudo-$VERSION \ |
pascal@20288 | 42 --with-passprompt="[sudo] password for %p" \ |
pascal@20288 | 43 --with-pam \ |
pascal@20288 | 44 $CONFIGURE_ARGS && |
pascal@20288 | 45 make && |
pascal@20288 | 46 make DESTDIR=$DESTDIR-pam install && |
pascal@20288 | 47 |
pascal@20288 | 48 ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0 && |
pascal@20288 | 49 ln -sfv libsudo_util.so.0.0.0 $install-pam/usr/lib/sudo/libsudo_util.so.0 && |
pascal@20288 | 50 |
pascal@20288 | 51 mkdir -p $install-pam/etc/pam.d && |
pascal@20288 | 52 cp $stuff/sudo $install-pam/etc/pam.d/ |
erjo@151 | 53 } |
erjo@151 | 54 |
erjo@151 | 55 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 56 genpkg_rules() |
erjo@151 | 57 { |
al@19741 | 58 case $PACKAGE in |
al@19741 | 59 sudo) |
al@19741 | 60 copy @std |
al@19741 | 61 DEPENDS="zlib" |
al@19741 | 62 CONFIG_FILES="/etc/sudoers" |
al@19741 | 63 ;; |
pascal@20288 | 64 sudo-pam) |
pascal@20288 | 65 install=$install-pam copy @std |
pascal@20288 | 66 DEPENDS="zlib pam" |
pascal@20288 | 67 PROVIDE="sudo:pam" |
pascal@20288 | 68 CONFIG_FILES="/etc/sudoers /etc/pam.d/sudo" |
pascal@20288 | 69 ;; |
pascal@20288 | 70 sudo-dev) |
al@19741 | 71 copy @dev |
al@19741 | 72 DEPENDS="zlib-dev" |
al@19741 | 73 ;; |
pascal@20288 | 74 sudo-pam-dev) |
pascal@20288 | 75 install=$install-pam copy @dev |
pascal@20288 | 76 DEPENDS="zlib-dev pam-dev" |
pascal@20288 | 77 PROVIDE="sudo-dev:pam" |
pascal@20288 | 78 ;; |
al@19741 | 79 esac |
erjo@151 | 80 } |