summaryrefslogtreecommitdiffstats
path: root/base/shadow
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 14:10:52 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 14:10:52 +0200
commit451f113a015bb6adfd5f85b471440e7dfd810474 (patch)
treef41b2603e4e3cc0829b7ca5aa2b7fe4fd433fbd2 /base/shadow
parent70c7099aec2e9e2e522dfe251d19241104a5525d (diff)
downloadnutyx-pakxe-451f113a015bb6adfd5f85b471440e7dfd810474.tar.gz
nutyx-pakxe-451f113a015bb6adfd5f85b471440e7dfd810474.tar.bz2
nutyx-pakxe-451f113a015bb6adfd5f85b471440e7dfd810474.tar.xz
nutyx-pakxe-451f113a015bb6adfd5f85b471440e7dfd810474.zip
Ajout de shadow#4.1.4.2-1
Diffstat (limited to 'base/shadow')
-rw-r--r--base/shadow/.footprint140
-rw-r--r--base/shadow/.md5sum1
-rwxr-xr-xbase/shadow/Pkgfile109
3 files changed, 250 insertions, 0 deletions
diff --git a/base/shadow/.footprint b/base/shadow/.footprint
new file mode 100644
index 000000000..e36f2a35c
--- /dev/null
+++ b/base/shadow/.footprint
@@ -0,0 +1,140 @@
+drwxr-xr-x root/root bin/
+-rwxr-xr-x root/root bin/login
+-rwsr-xr-x root/root bin/passwd
+-rwsr-xr-x root/root bin/su
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/limits
+-rw-r--r-- root/root etc/login.access
+-rw-r--r-- root/root etc/login.defs
+drwxr-xr-x root/root sbin/
+-rwxr-xr-x root/root sbin/nologin
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwsr-xr-x root/root usr/bin/chage
+-rwsr-xr-x root/root usr/bin/chfn
+-rwsr-xr-x root/root usr/bin/chsh
+-rwsr-xr-x root/root usr/bin/expiry
+-rwxr-xr-x root/root usr/bin/faillog
+-rwsr-xr-x root/root usr/bin/gpasswd
+-rwxr-xr-x root/root usr/bin/lastlog
+-rwsr-xr-x root/root usr/bin/newgrp
+lrwxrwxrwx root/root usr/bin/sg -> newgrp
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/chgpasswd
+-rwxr-xr-x root/root usr/sbin/chpasswd
+-rwxr-xr-x root/root usr/sbin/groupadd
+-rwxr-xr-x root/root usr/sbin/groupdel
+-rwxr-xr-x root/root usr/sbin/groupmems
+-rwxr-xr-x root/root usr/sbin/groupmod
+-rwxr-xr-x root/root usr/sbin/grpck
+-rwxr-xr-x root/root usr/sbin/grpconv
+-rwxr-xr-x root/root usr/sbin/grpunconv
+-rwxr-xr-x root/root usr/sbin/logoutd
+-rwxr-xr-x root/root usr/sbin/newusers
+-rwxr-xr-x root/root usr/sbin/pwck
+-rwxr-xr-x root/root usr/sbin/pwconv
+-rwxr-xr-x root/root usr/sbin/pwunconv
+-rwxr-xr-x root/root usr/sbin/useradd
+-rwxr-xr-x root/root usr/sbin/userdel
+-rwxr-xr-x root/root usr/sbin/usermod
+lrwxrwxrwx root/root usr/sbin/vigr -> vipw
+-rwxr-xr-x root/root usr/sbin/vipw
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/locale/
+drwxr-xr-x root/root usr/share/locale/fr/
+drwxr-xr-x root/root usr/share/locale/fr/LC_MESSAGES/
+-rw-r--r-- root/root usr/share/locale/fr/LC_MESSAGES/shadow.mo
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/fr/
+drwxr-xr-x root/root usr/share/man/fr/man1/
+-rw-r--r-- root/root usr/share/man/fr/man1/chage.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/chfn.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/chsh.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/expiry.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/gpasswd.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/login.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/newgrp.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/passwd.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/sg.1.gz
+-rw-r--r-- root/root usr/share/man/fr/man1/su.1.gz
+drwxr-xr-x root/root usr/share/man/fr/man3/
+-rw-r--r-- root/root usr/share/man/fr/man3/getspnam.3.gz
+-rw-r--r-- root/root usr/share/man/fr/man3/shadow.3.gz
+drwxr-xr-x root/root usr/share/man/fr/man5/
+-rw-r--r-- root/root usr/share/man/fr/man5/faillog.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/gshadow.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/limits.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/login.access.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/login.defs.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/passwd.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/porttime.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/shadow.5.gz
+-rw-r--r-- root/root usr/share/man/fr/man5/suauth.5.gz
+drwxr-xr-x root/root usr/share/man/fr/man8/
+-rw-r--r-- root/root usr/share/man/fr/man8/chpasswd.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/faillog.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/groupadd.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/groupdel.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/groupmod.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/grpck.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/grpconv.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/grpunconv.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/lastlog.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/logoutd.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/newusers.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/pwck.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/pwconv.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/pwunconv.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/useradd.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/userdel.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/usermod.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/vigr.8.gz
+-rw-r--r-- root/root usr/share/man/fr/man8/vipw.8.gz
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/chage.1.gz
+-rw-r--r-- root/root usr/share/man/man1/chfn.1.gz
+-rw-r--r-- root/root usr/share/man/man1/chsh.1.gz
+-rw-r--r-- root/root usr/share/man/man1/expiry.1.gz
+-rw-r--r-- root/root usr/share/man/man1/gpasswd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/login.1.gz
+-rw-r--r-- root/root usr/share/man/man1/newgrp.1.gz
+-rw-r--r-- root/root usr/share/man/man1/passwd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/sg.1.gz
+-rw-r--r-- root/root usr/share/man/man1/su.1.gz
+drwxr-xr-x root/root usr/share/man/man3/
+-rw-r--r-- root/root usr/share/man/man3/getspnam.3.gz
+-rw-r--r-- root/root usr/share/man/man3/shadow.3.gz
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/faillog.5.gz
+-rw-r--r-- root/root usr/share/man/man5/gshadow.5.gz
+-rw-r--r-- root/root usr/share/man/man5/limits.5.gz
+-rw-r--r-- root/root usr/share/man/man5/login.access.5.gz
+-rw-r--r-- root/root usr/share/man/man5/login.defs.5.gz
+-rw-r--r-- root/root usr/share/man/man5/passwd.5.gz
+-rw-r--r-- root/root usr/share/man/man5/porttime.5.gz
+-rw-r--r-- root/root usr/share/man/man5/shadow.5.gz
+-rw-r--r-- root/root usr/share/man/man5/suauth.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/chgpasswd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/chpasswd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/faillog.8.gz
+-rw-r--r-- root/root usr/share/man/man8/groupadd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/groupdel.8.gz
+-rw-r--r-- root/root usr/share/man/man8/groupmems.8.gz
+-rw-r--r-- root/root usr/share/man/man8/groupmod.8.gz
+-rw-r--r-- root/root usr/share/man/man8/grpck.8.gz
+-rw-r--r-- root/root usr/share/man/man8/grpconv.8.gz
+-rw-r--r-- root/root usr/share/man/man8/grpunconv.8.gz
+-rw-r--r-- root/root usr/share/man/man8/lastlog.8.gz
+-rw-r--r-- root/root usr/share/man/man8/logoutd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/newusers.8.gz
+-rw-r--r-- root/root usr/share/man/man8/nologin.8.gz
+-rw-r--r-- root/root usr/share/man/man8/pwck.8.gz
+-rw-r--r-- root/root usr/share/man/man8/pwconv.8.gz
+-rw-r--r-- root/root usr/share/man/man8/pwunconv.8.gz
+-rw-r--r-- root/root usr/share/man/man8/useradd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/userdel.8.gz
+-rw-r--r-- root/root usr/share/man/man8/usermod.8.gz
+-rw-r--r-- root/root usr/share/man/man8/vigr.8.gz
+-rw-r--r-- root/root usr/share/man/man8/vipw.8.gz
diff --git a/base/shadow/.md5sum b/base/shadow/.md5sum
new file mode 100644
index 000000000..192217492
--- /dev/null
+++ b/base/shadow/.md5sum
@@ -0,0 +1 @@
+d593a9cab93c48ee0a6ba056db8c1997 shadow-4.1.4.2.tar.bz2
diff --git a/base/shadow/Pkgfile b/base/shadow/Pkgfile
new file mode 100755
index 000000000..8ce7a3801
--- /dev/null
+++ b/base/shadow/Pkgfile
@@ -0,0 +1,109 @@
+# 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:
+
+name=shadow
+version=4.1.4.2
+release=1
+source=( ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/$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 / /' {} \;
+
+# Disable the installation of the non french manual pages
+# Instead of using the default crypt method, use the more secure MD5 method of password encryption
+sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
+ etc/login.defs
+
+./configure --sysconfdir=/etc
+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
+
+
+if (pkginfo -i |grep linux-pam > /dev/null) then
+
+ ln -sfv ../../lib/libshadow.so.0 $PKG/usr/lib/libshadow.so
+ cp $PKG/etc/{login.defs,login.defs.orig}
+for FUNCTION in LASTLOG_ENAB MAIL_CHECK_ENAB \
+ PORTTIME_CHECKS_ENAB CONSOLE \
+ MOTD_FILE NOLOGINS_FILE PASS_MIN_LEN \
+ SU_WHEEL_ONLY MD5_CRYPT_ENAB \
+ CONSOLE_GROUPS ENVIRON_FILE \
+ ULIMIT ENV_TZ ENV_HZ ENV_SUPATH \
+ ENV_PATH QMAIL_DIR MAIL_DIR MAIL_FILE \
+ CHFN_AUTH FAILLOG_ENAB QUOTAS_ENAB FTMP_FILE \
+ OBSCURE_CHECKS_ENAB CRACKLIB_DICTPATH \
+ PASS_CHANGE_TRIES PASS_ALWAYS_WARN ISSUE_FILE
+do
+ sed -i "s/^$FUNCTION/# &/" $PKG/etc/login.defs
+done
+ cat > $PKG/etc/pam.d/login << "EOF"
+# Begin /etc/pam.d/login
+
+auth requisite pam_nologin.so
+auth required pam_securetty.so
+auth required pam_env.so
+auth required pam_unix.so
+account required pam_access.so
+account required pam_unix.so
+session required pam_motd.so
+session required pam_limits.so
+session optional pam_mail.so dir=/var/mail standard
+session optional pam_lastlog.so
+session required pam_unix.so
+password required pam_unix.so md5 shadow
+
+# End /etc/pam.d/login
+EOF
+cat > $PKG/etc/pam.d/passwd << "EOF"
+# Begin /etc/pam.d/passwd
+
+password required pam_unix.so md5 shadow
+
+# End /etc/pam.d/passwd
+EOF
+cat > $PKG/etc/pam.d/su << "EOF"
+# Begin /etc/pam.d/su
+
+auth sufficient pam_rootok.so
+auth required pam_unix.so
+account required pam_unix.so
+session optional pam_mail.so dir=/var/mail standard
+session optional pam_xauth.so
+session required pam_env.so
+session required pam_unix.so
+
+# End /etc/pam.d/su
+EOF
+cat > $PKG/etc/pam.d/chage << "EOF"
+# Begin /etc/pam.d/chage
+
+auth sufficient pam_rootok.so
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
+password required pam_permit.so
+
+# End /etc/pam.d/chage
+EOF
+ for PROGRAM in chpasswd chgpasswd groupadd groupdel groupmems \
+ groupmod newusers useradd userdel usermod
+ do
+ install -v -m644 $PKG/etc/pam.d/chage $PKG/etc/pam.d/$PROGRAM
+ sed -i "s/chage/$PROGRAM/" $PKG/etc/pam.d/$PROGRAM
+ done
+fi
+}