# HG changeset patch # User Aleksej Bobylev # Date 1489843723 -7200 # Node ID 58556ca016f4c2b4cdb136dccac7a9a9c843eaff # Parent 447522cd9b59c69ff3ee42c13c3d79a3647d2b5c sudo-pam: add the same patch diff -r 447522cd9b59 -r 58556ca016f4 sudo-pam/receipt --- a/sudo-pam/receipt Fri Mar 17 19:37:21 2017 +0100 +++ b/sudo-pam/receipt Sat Mar 18 15:28:43 2017 +0200 @@ -6,25 +6,32 @@ SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM." MAINTAINER="erjo@slitaz.org" LICENSE="ISC" -SOURCE="sudo" -TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.gratisoft.us/sudo/" -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" +CONFIG_FILES="/etc/sudoers" PROVIDE="sudo:pam" +TARBALL="sudo-$VERSION.tar.gz" +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" + DEPENDS="pam" -BUILD_DEPENDS="pam-dev" +BUILD_DEPENDS="gettext pam-dev" +SIBLINGS="sudo" # Rules to configure and make the package. compile_rules() { + # Fix error and rebuild .mo + patch -p1 -i $stuff/sr.po.patch + msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo + ./configure \ --sysconfdir=/etc \ --with-pam \ --with-editor=/bin/vi \ --libexecdir=/usr/lib \ $CONFIGURE_ARGS && - make && make install + make && + make install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -59,5 +66,5 @@ pre_remove() { - tazpkg get-install ${PACKAGE%-pam} + tazpkg get-install sudo } diff -r 447522cd9b59 -r 58556ca016f4 sudo-pam/stuff/sr.po.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sudo-pam/stuff/sr.po.patch Sat Mar 18 15:28:43 2017 +0200 @@ -0,0 +1,1 @@ +../../sudo/stuff/sr.po.patch \ No newline at end of file diff -r 447522cd9b59 -r 58556ca016f4 sudo/receipt --- a/sudo/receipt Fri Mar 17 19:37:21 2017 +0100 +++ b/sudo/receipt Sat Mar 18 15:28:43 2017 +0200 @@ -6,12 +6,14 @@ SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority." MAINTAINER="erjo@slitaz.org" LICENSE="ISC" -TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.gratisoft.us/sudo/" -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" CONFIG_FILES="/etc/sudoers" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" + BUILD_DEPENDS="gettext" +SIBLINGS="sudo-pam" # Rules to configure and make the package. compile_rules() @@ -20,14 +22,13 @@ patch -p1 -i $stuff/sr.po.patch msgfmt $src/plugins/sudoers/po/sr.po -o $src/plugins/sudoers/po/sr.mo - ./configure --sysconfdir=/etc \ - --without-pam \ - --with-editor=/bin/vi \ - --libexecdir=/usr/lib \ - $CONFIGURE_ARGS && - # Build everything + ./configure \ + --sysconfdir=/etc \ + --without-pam \ + --with-editor=/bin/vi \ + --libexecdir=/usr/lib \ + $CONFIGURE_ARGS && make && - # Install everything make install }