From 15f2acd36dde7369bd3984b20cd438e13e9a74ee Mon Sep 17 00:00:00 2001 From: piernov Date: Sun, 4 Mar 2012 13:23:30 +0000 Subject: shadow 4.1.5-1 màj port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shadow/Pkgfile | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) (limited to 'shadow/Pkgfile') diff --git a/shadow/Pkgfile b/shadow/Pkgfile index 55a61bc0d..2a0b73fac 100755 --- a/shadow/Pkgfile +++ b/shadow/Pkgfile @@ -6,34 +6,36 @@ # Run on:linux-pam name=shadow -version=4.1.4.3 -release=3 -source=( http://pkg-shadow.alioth.debian.org/releases/$name-$version.tar.bz2\ - ) - +version=4.1.5 +release=1 +source=(http://pkg-shadow.alioth.debian.org/releases/$name-$version.tar.bz2 + http://www.linuxfromscratch.org/patches/lfs/development/$name-$version-nscd-1.patch + shadow-add-missing-include.patch) build() { -cd $name-$version -# Disable the installation of groups -sed -i 's/groups$(EXEEXT) //' src/Makefile.in -find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; + cd $name-$version + + patch -p1 < ../$name-$version-nscd-1.patch + patch -p1 < ../shadow-add-missing-include.patch + + # Disable the installation of groups + sed -i 's/groups$(EXEEXT) //' src/Makefile.in + find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; -# Issue with russian man pages -sed -i 's/man_MANS = $(man_nopam) /man_MANS = /' man/ru/Makefile.in + # Disable the installation of the non french manual pages + # Instead of using the default crypt method, use the more secure SHA512 method of password encryption + sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ + -e 's@/var/spool/mail@/var/mail@' etc/login.defs -# Disable the installation of the non french manual pages -# Instead of using the default crypt method, use the more secure SHA512 method of password encryption -sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ - -e 's@/var/spool/mail@/var/mail@' etc/login.defs + ./configure --sysconfdir=/etc --without-libpam + make + make DESTDIR=$PKG install + for i in de cs fi id hu ja it ko pl ru sv tr pt_BR zh_CN zh_TW + do rm -r $PKG/usr/share/man/$i + done -./configure --sysconfdir=/etc --without-libpam -make -make DESTDIR=$PKG install -for i in de cs fi id hu ja it ko pl ru sv tr pt_BR zh_CN zh_TW - do rm -r $PKG/usr/share/man/$i -done -# Remove the default as it is part of aaabasicfs -rm -rf $PKG/etc/default -mkdir $PKG/usr/lib -mv -v $PKG/usr/bin/passwd $PKG/bin + # Remove the default as it is part of aaabasicfs + rm -rf $PKG/etc/default + mkdir $PKG/usr/lib + mv -v $PKG/usr/bin/passwd $PKG/bin } -- cgit v1.2.3-70-g09d2