summaryrefslogtreecommitdiffstats
path: root/shadow/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'shadow/Pkgfile')
-rwxr-xr-xshadow/Pkgfile32
1 files changed, 28 insertions, 4 deletions
diff --git a/shadow/Pkgfile b/shadow/Pkgfile
index 61ba71c78..a34282e82 100755
--- a/shadow/Pkgfile
+++ b/shadow/Pkgfile
@@ -2,12 +2,12 @@
# URL: http://shadow.pld.org.pl/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on:linux-pam
-# Run on:linux-pam
+# Depends on: linux-pam, pambase
+# Run on: linux-pam,pambase
name=shadow
version=4.1.5.1
-release=1
+release=2
source=(http://pkg-shadow.alioth.debian.org/releases/$name-$version.tar.bz2)
build() {
@@ -22,13 +22,37 @@ build() {
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
+ ./configure --sysconfdir=/etc \
+ --with-libpam \
+ --without-selinux
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
+ for FUNCTION in FAIL_DELAY FAILLOG_ENAB \
+ LASTLOG_ENAB \
+ MAIL_CHECK_ENAB \
+ OBSCURE_CHECKS_ENAB \
+ PORTTIME_CHECKS_ENAB \
+ QUOTAS_ENAB \
+ CONSOLE MOTD_FILE \
+ FTMP_FILE NOLOGINS_FILE \
+ ENV_HZ PASS_MIN_LEN \
+ SU_WHEEL_ONLY \
+ CRACKLIB_DICTPATH \
+ PASS_CHANGE_TRIES \
+ PASS_ALWAYS_WARN \
+ CHFN_AUTH ENCRYPT_METHOD \
+ ENVIRON_FILE
+ do
+ sed -i "s/^${FUNCTION}/# &/" $PKG/etc/login.defs
+ done
+
+ sed "/pam_selinux.so/d" -i $PKG/etc/pam.d/login
+ sed "/pam_selinux.so/d" -i $PKG/etc/pam.d/su
+
# Remove the default as it is part of aaabasicfs
rm -rf $PKG/etc/default
mkdir $PKG/usr/lib