summaryrefslogtreecommitdiffstats
path: root/shadow/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
commit9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch)
treeae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /shadow/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'shadow/Pkgfile')
-rwxr-xr-xshadow/Pkgfile39
1 files changed, 39 insertions, 0 deletions
diff --git a/shadow/Pkgfile b/shadow/Pkgfile
new file mode 100755
index 000000000..55a61bc0d
--- /dev/null
+++ b/shadow/Pkgfile
@@ -0,0 +1,39 @@
+# Description: Utilitaire permettant de cacher les fichiers de mot de passe
+# URL: http://shadow.pld.org.pl/
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on:linux-pam
+# 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\
+ )
+
+
+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 / /' {} \;
+
+# 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
+
+./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
+}