wok-next annotate sudo/receipt @ rev 20050
Up scite (4.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 23 13:19:31 2017 +0200 (2017-10-23) |
parents | 58556ca016f4 |
children | 2ec88e5df2dd |
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 |
al@19741 | 14 BUILD_DEPENDS="gettext groff" |
al@19741 | 15 SPLIT="sudo-dev" |
al@19668 | 16 |
erjo@151 | 17 # Rules to configure and make the package. |
erjo@151 | 18 compile_rules() |
erjo@151 | 19 { |
al@19670 | 20 ./configure \ |
al@19670 | 21 --sysconfdir=/etc \ |
al@19741 | 22 --libexecdir=/usr/lib \ |
al@19741 | 23 --with-secure-path \ |
al@19741 | 24 --with-all-insults \ |
al@19741 | 25 --with-env-editor \ |
al@19741 | 26 --docdir=/usr/share/doc/sudo-$VERSION \ |
al@19741 | 27 --with-passprompt="[sudo] password for %p" \ |
al@19670 | 28 --without-pam \ |
al@19670 | 29 $CONFIGURE_ARGS && |
pascal@1476 | 30 make && |
al@19741 | 31 make install && |
al@19741 | 32 |
al@19741 | 33 ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0 |
erjo@151 | 34 } |
erjo@151 | 35 |
erjo@151 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 37 genpkg_rules() |
erjo@151 | 38 { |
al@19741 | 39 case $PACKAGE in |
al@19741 | 40 sudo) |
al@19741 | 41 copy @std |
al@19741 | 42 DEPENDS="zlib" |
al@19741 | 43 CONFIG_FILES="/etc/sudoers" |
al@19741 | 44 ;; |
al@19741 | 45 *-dev) |
al@19741 | 46 copy @dev |
al@19741 | 47 DEPENDS="zlib-dev" |
al@19741 | 48 ;; |
al@19741 | 49 esac |
erjo@151 | 50 } |