wok-4.x diff sudo-pam/receipt @ rev 8963

Up: sudo to 1.8.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 01 23:59:45 2011 +0000 (2011-03-01)
parents 3cc677a6aa66
children 129bb5b11a7e
line diff
     1.1 --- a/sudo-pam/receipt	Sat Feb 05 21:36:54 2011 +0000
     1.2 +++ b/sudo-pam/receipt	Tue Mar 01 23:59:45 2011 +0000
     1.3 @@ -1,12 +1,11 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="sudo-pam"
     1.7 -VERSION="1.7.4p6"
     1.8 +VERSION="1.8.0"
     1.9  CATEGORY="security"
    1.10  SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM."
    1.11  MAINTAINER="erjo@slitaz.org"
    1.12  DEPENDS="pam"
    1.13 -BUILD_DEPENDS="pam pam-dev"
    1.14  SOURCE="sudo"
    1.15  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.16  WEB_SITE="http://www.gratisoft.us/sudo/"
    1.17 @@ -18,17 +17,14 @@
    1.18  compile_rules()
    1.19  {
    1.20  	cd $src
    1.21 -	./configure --prefix=/usr \
    1.22 -	--sysconfdir=/etc \
    1.23 +	./configure --sysconfdir=/etc \
    1.24  	--with-pam \
    1.25  	--with-editor=/bin/vi \
    1.26 -	--libexecdir=/usr/lib \
    1.27 -	$CONFIGURE_ARGS &&
    1.28 -	
    1.29 +	--libexecdir=/usr/lib &&
    1.30  	# Build everything
    1.31  	make &&
    1.32  	# Install everything
    1.33 -	make DESTDIR=$PWD/_pkg install
    1.34 +	make install
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 @@ -47,6 +43,8 @@
    1.39  
    1.40  pre_install()
    1.41  {
    1.42 +	local root
    1.43 +	root=$1
    1.44  	echo "Processing pre-install commands..."
    1.45  	if [ -f $root/etc/sudoers.bak ]; then
    1.46  		cp $root/etc/sudoers $root/etc/sudoers.bak