3
0
Fork 0
forked from mirrors/nixpkgs

* Latest pam.

* Added pwdutils and pam_login to replace shadow.

svn path=/nixpkgs/trunk/; revision=7284
This commit is contained in:
Eelco Dolstra 2006-12-08 23:53:07 +00:00
parent 3691639db1
commit 7ce9e38ad9
7 changed files with 41 additions and 67 deletions

View file

@ -1,12 +1,12 @@
{stdenv, fetchurl, cracklib}:
{stdenv, fetchurl, cracklib, flex}:
stdenv.mkDerivation {
name = "pam-0.80";
name = "linux-pam-0.99.6.3";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/Linux-PAM-0.80.tar.bz2;
md5 = "ccff87fe639efdfc22b1ba4a0f08ec57";
url = http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-0.99.6.3.tar.bz2;
md5 = "4c2830ed55a41e795af6a482009a036c";
};
patches = [./pam-pwd.patch ./pam-cracklib.patch ./pam-modules.patch];
inherit cracklib;
buildInputs = [flex];
preConfigure = "configureFlags=\"--includedir=$out/include/security\"";
}

View file

@ -1,34 +0,0 @@
diff -ruN Linux-PAM-0.80/configure Linux-PAM-0.80.new/configure
--- Linux-PAM-0.80/configure 2005-07-04 14:09:55.000000000 +0200
+++ Linux-PAM-0.80.new/configure 2005-10-25 19:30:29.000000000 +0200
@@ -6090,18 +6090,18 @@
DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
/usr/local/lib /usr/local/share/lib /usr/share/cracklib"
DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
-CRACKLIB_DICTPATH=""
-for d in $DICT_DIR_CANDIDATES ; do
- for f in $DICT_FILE_CANDIDATES ; do
- if test -r $d/$f.hwm ; then
- CRACKLIB_DICTPATH=$d/$f
- break 2
- elif test -r $d/dict/$f.hwm ; then
- CRACKLIB_DICTPATH=$d/dict/$f
- break 2
- fi
- done
-done
+#CRACKLIB_DICTPATH=""
+#for d in $DICT_DIR_CANDIDATES ; do
+# for f in $DICT_FILE_CANDIDATES ; do
+# if test -r $d/$f.hwm ; then
+# CRACKLIB_DICTPATH=$d/$f
+# break 2
+# elif test -r $d/dict/$f.hwm ; then
+# CRACKLIB_DICTPATH=$d/dict/$f
+# break 2
+# fi
+# done
+#done
if test -z "$CRACKLIB_DICTPATH" ; then
{ echo "$as_me:$LINENO: WARNING: none found - pam_cracklib will not be built" >&5
echo "$as_me: WARNING: none found - pam_cracklib will not be built" >&2;}

View file

@ -1,12 +0,0 @@
diff -ruN Linux-PAM-0.80/modules/Makefile Linux-PAM-0.80.new/modules/Makefile
--- Linux-PAM-0.80/modules/Makefile 2004-09-28 15:49:21.000000000 +0200
+++ Linux-PAM-0.80.new/modules/Makefile 2005-10-25 19:54:12.000000000 +0200
@@ -8,7 +8,7 @@
include ../Make.Rules
-MODDIRS=$(shell /bin/ls -d pam_*/Makefile | cut -f1 -d/)
+MODDIRS=$(shell ls -d pam_*/Makefile | cut -f1 -d/)
all:
@echo building the static modutil library

View file

@ -1,14 +0,0 @@
diff -ruN Linux-PAM-0.80/configure Linux-PAM-0.80.new/configure
--- Linux-PAM-0.80/configure 2005-07-04 14:09:55.000000000 +0200
+++ Linux-PAM-0.80.new/configure 2005-10-24 18:33:30.000000000 +0200
@@ -1336,8 +1336,8 @@
-LOCALSRCDIR=`/bin/pwd` ;
-LOCALOBJDIR=`/bin/pwd` ;
+LOCALSRCDIR=`pwd` ;
+LOCALOBJDIR=`pwd` ;
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`

View file

@ -0,0 +1,12 @@
{stdenv, fetchurl, pam}:
stdenv.mkDerivation {
name = "pam_login-3.31";
src = fetchurl {
url = ftp://ftp.suse.com/pub/people/kukuk/pam/pam_login/pam_login-3.31.tar.bz2;
md5 = "15e34a48b0bc2ded5000e8d8780fc274";
};
buildInputs = [pam];
}

View file

@ -0,0 +1,14 @@
{stdenv, fetchurl, pam, openssl}:
stdenv.mkDerivation {
name = "pwdutils-3.1.3";
src = fetchurl {
url = ftp://ftp.kernel.org/pub/linux/utils/net/NIS/pwdutils-3.1.3.tar.bz2;
md5 = "b18c601e282d8695cbb5ddd87eaa473c";
};
buildInputs = [pam openssl];
configureFlags = "--disable-ldap";
}

View file

@ -2181,13 +2181,21 @@ rec {
};
pam = import ../os-specific/linux/pam {
inherit stdenv fetchurl cracklib;
inherit stdenv fetchurl cracklib flex;
};
pam_login = import ../os-specific/linux/pam_login {
inherit stdenv fetchurl pam;
};
procps = import ../os-specific/linux/procps {
inherit fetchurl stdenv ncurses;
};
pwdutils = import ../os-specific/linux/pwdutils {
inherit fetchurl stdenv pam openssl;
};
shadowutils = import ../os-specific/linux/shadow {
inherit fetchurl stdenv;
};