wok-next rev 19670

sudo-pam: add the same patch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 18 15:28:43 2017 +0200 (2017-03-18)
parents 447522cd9b59
children fe59386a94f9
files sudo-pam/receipt sudo-pam/stuff/sr.po.patch sudo/receipt
line diff
     1.1 --- a/sudo-pam/receipt	Fri Mar 17 19:37:21 2017 +0100
     1.2 +++ b/sudo-pam/receipt	Sat Mar 18 15:28:43 2017 +0200
     1.3 @@ -6,25 +6,32 @@
     1.4  SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM."
     1.5  MAINTAINER="erjo@slitaz.org"
     1.6  LICENSE="ISC"
     1.7 -SOURCE="sudo"
     1.8 -TARBALL="$SOURCE-$VERSION.tar.gz"
     1.9  WEB_SITE="http://www.gratisoft.us/sudo/"
    1.10 -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
    1.11 +CONFIG_FILES="/etc/sudoers"
    1.12  PROVIDE="sudo:pam"
    1.13  
    1.14 +TARBALL="sudo-$VERSION.tar.gz"
    1.15 +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
    1.16 +
    1.17  DEPENDS="pam"
    1.18 -BUILD_DEPENDS="pam-dev"
    1.19 +BUILD_DEPENDS="gettext pam-dev"
    1.20 +SIBLINGS="sudo"
    1.21  
    1.22  # Rules to configure and make the package.
    1.23  compile_rules()
    1.24  {
    1.25 +	# Fix error and rebuild .mo
    1.26 +	patch -p1 -i $stuff/sr.po.patch
    1.27 +	msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo
    1.28 +
    1.29  	./configure \
    1.30  		--sysconfdir=/etc \
    1.31  		--with-pam \
    1.32  		--with-editor=/bin/vi \
    1.33  		--libexecdir=/usr/lib \
    1.34  		$CONFIGURE_ARGS &&
    1.35 -	make && make install
    1.36 +	make &&
    1.37 +	make install
    1.38  }
    1.39  
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 @@ -59,5 +66,5 @@
    1.42  
    1.43  pre_remove()
    1.44  {
    1.45 -	tazpkg get-install ${PACKAGE%-pam}
    1.46 +	tazpkg get-install sudo
    1.47  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sudo-pam/stuff/sr.po.patch	Sat Mar 18 15:28:43 2017 +0200
     2.3 @@ -0,0 +1,1 @@
     2.4 +../../sudo/stuff/sr.po.patch
     2.5 \ No newline at end of file
     3.1 --- a/sudo/receipt	Fri Mar 17 19:37:21 2017 +0100
     3.2 +++ b/sudo/receipt	Sat Mar 18 15:28:43 2017 +0200
     3.3 @@ -6,12 +6,14 @@
     3.4  SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
     3.5  MAINTAINER="erjo@slitaz.org"
     3.6  LICENSE="ISC"
     3.7 -TARBALL="$PACKAGE-$VERSION.tar.gz"
     3.8  WEB_SITE="http://www.gratisoft.us/sudo/"
     3.9 -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
    3.10  CONFIG_FILES="/etc/sudoers"
    3.11  
    3.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.13 +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
    3.14 +
    3.15  BUILD_DEPENDS="gettext"
    3.16 +SIBLINGS="sudo-pam"
    3.17  
    3.18  # Rules to configure and make the package.
    3.19  compile_rules()
    3.20 @@ -20,14 +22,13 @@
    3.21  	patch -p1 -i $stuff/sr.po.patch
    3.22  	msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo
    3.23  
    3.24 -	./configure --sysconfdir=/etc \
    3.25 -	--without-pam \
    3.26 -	--with-editor=/bin/vi \
    3.27 -	--libexecdir=/usr/lib \
    3.28 -	$CONFIGURE_ARGS &&
    3.29 -	# Build everything
    3.30 +	./configure \
    3.31 +		--sysconfdir=/etc \
    3.32 +		--without-pam \
    3.33 +		--with-editor=/bin/vi \
    3.34 +		--libexecdir=/usr/lib \
    3.35 +		$CONFIGURE_ARGS &&
    3.36  	make &&
    3.37 -	# Install everything
    3.38  	make install
    3.39  }
    3.40