wok-next diff sudo/receipt @ rev 20030

Up flam3 (3.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 22 15:52:59 2017 +0200 (2017-10-22)
parents 58556ca016f4
children 2ec88e5df2dd
line diff
     1.1 --- a/sudo/receipt	Sat Mar 18 15:28:43 2017 +0200
     1.2 +++ b/sudo/receipt	Sun Oct 22 15:52:59 2017 +0200
     1.3 @@ -1,61 +1,50 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="sudo"
     1.8 -VERSION="1.8.10p2"
     1.9 +VERSION="1.8.20p2"
    1.10  CATEGORY="security"
    1.11 -SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
    1.12 +SHORT_DESC="Execute a command as another user"
    1.13  MAINTAINER="erjo@slitaz.org"
    1.14  LICENSE="ISC"
    1.15 -WEB_SITE="http://www.gratisoft.us/sudo/"
    1.16 -CONFIG_FILES="/etc/sudoers"
    1.17 +WEB_SITE="https://www.sudo.ws/"
    1.18  
    1.19  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.20 -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
    1.21 +WGET_URL="${WEB_SITE}dist/$TARBALL"
    1.22  
    1.23 -BUILD_DEPENDS="gettext"
    1.24 -SIBLINGS="sudo-pam"
    1.25 +BUILD_DEPENDS="gettext groff"
    1.26 +SPLIT="sudo-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	# Fix error and rebuild .mo
    1.32 -	patch -p1 -i $stuff/sr.po.patch
    1.33 -	msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo
    1.34 -
    1.35  	./configure \
    1.36  		--sysconfdir=/etc \
    1.37 +		--libexecdir=/usr/lib \
    1.38 +		--with-secure-path \
    1.39 +		--with-all-insults \
    1.40 +		--with-env-editor \
    1.41 +		--docdir=/usr/share/doc/sudo-$VERSION \
    1.42 +		--with-passprompt="[sudo] password for %p" \
    1.43  		--without-pam \
    1.44 -		--with-editor=/bin/vi \
    1.45 -		--libexecdir=/usr/lib \
    1.46  		$CONFIGURE_ARGS &&
    1.47  	make &&
    1.48 -	make install
    1.49 +	make install &&
    1.50 +
    1.51 +	ln -sfv libsudo_util.so.0.0.0 $install/usr/lib/sudo/libsudo_util.so.0
    1.52  }
    1.53  
    1.54  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.55  genpkg_rules()
    1.56  {
    1.57 -	mkdir -p $fs/usr/lib
    1.58 -	cp -a $install/usr/bin $fs/usr
    1.59 -	cp -a $install/usr/sbin $fs/usr
    1.60 -	cp -a $install/usr/lib/ $fs/usr
    1.61 -	cp -a $install/etc  $fs/
    1.62 +	case $PACKAGE in
    1.63 +		sudo)
    1.64 +			copy @std
    1.65 +			DEPENDS="zlib"
    1.66 +			CONFIG_FILES="/etc/sudoers"
    1.67 +			;;
    1.68 +		*-dev)
    1.69 +			copy @dev
    1.70 +			DEPENDS="zlib-dev"
    1.71 +			;;
    1.72 +	esac
    1.73  }
    1.74 -
    1.75 -pre_install()
    1.76 -{
    1.77 -	if [ -f "$1/etc/sudoers" ]; then
    1.78 -		cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
    1.79 -	fi
    1.80 -}
    1.81 -
    1.82 -post_install()
    1.83 -{
    1.84 -	if [ -f "$1/etc/sudoers.bak" ]; then
    1.85 -		mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
    1.86 -		mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
    1.87 -	else
    1.88 -		chown root.root "$1/etc/sudoers"
    1.89 -		chmod 0440 "$1/etc/sudoers"
    1.90 -	fi
    1.91 -}