summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-03-03 08:35:39 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-03-03 08:35:39 +0000
commitbf7af932e225ae67854710634af0a556ba9a0094 (patch)
treeb30346075f68c2bd18e5586bf64cee8ddc251700 /sys-libs
parentnew shadow (diff)
downloadgentoo-2-bf7af932e225ae67854710634af0a556ba9a0094.tar.gz
gentoo-2-bf7af932e225ae67854710634af0a556ba9a0094.tar.bz2
gentoo-2-bf7af932e225ae67854710634af0a556ba9a0094.zip
new pam
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/pam/files/0.75-r4/pam.d/rexec9
-rw-r--r--sys-libs/pam/files/0.75-r4/pam.d/rlogin11
-rw-r--r--sys-libs/pam/files/0.75-r4/pam.d/rsh9
-rw-r--r--sys-libs/pam/files/0.75-r4/pam.d/smtp3
-rw-r--r--sys-libs/pam/files/digest-pam-0.75-r41
-rw-r--r--sys-libs/pam/files/pam-0.75-r4-gentoo.tbz2bin0 -> 114828 bytes
-rw-r--r--sys-libs/pam/pam-0.75-r4.ebuild128
7 files changed, 161 insertions, 0 deletions
diff --git a/sys-libs/pam/files/0.75-r4/pam.d/rexec b/sys-libs/pam/files/0.75-r4/pam.d/rexec
new file mode 100644
index 000000000000..7fb1cc770069
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r4/pam.d/rexec
@@ -0,0 +1,9 @@
+#%PAM-1.0
+# For root login to succeed here with pam_securetty, "rexec" must be
+# listed in /etc/securetty.
+auth required /lib/security/pam_nologin.so
+auth required /lib/security/pam_securetty.so
+auth required /lib/security/pam_env.so
+auth required /lib/security/pam_stack.so service=system-auth
+account required /lib/security/pam_stack.so service=system-auth
+session required /lib/security/pam_stack.so service=system-auth
diff --git a/sys-libs/pam/files/0.75-r4/pam.d/rlogin b/sys-libs/pam/files/0.75-r4/pam.d/rlogin
new file mode 100644
index 000000000000..ae4cd2f796f2
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r4/pam.d/rlogin
@@ -0,0 +1,11 @@
+#%PAM-1.0
+# For root login to succeed here with pam_securetty, "rlogin" must be
+# listed in /etc/securetty.
+auth required /lib/security/pam_nologin.so
+auth required /lib/security/pam_securetty.so
+auth required /lib/security/pam_env.so
+auth sufficient /lib/security/pam_rhosts_auth.so
+auth required /lib/security/pam_stack.so service=system-auth
+account required /lib/security/pam_stack.so service=system-auth
+password required /lib/security/pam_stack.so service=system-auth
+session required /lib/security/pam_stack.so service=system-auth
diff --git a/sys-libs/pam/files/0.75-r4/pam.d/rsh b/sys-libs/pam/files/0.75-r4/pam.d/rsh
new file mode 100644
index 000000000000..9feb9af03d96
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r4/pam.d/rsh
@@ -0,0 +1,9 @@
+#%PAM-1.0
+# For root login to succeed here with pam_securetty, "rsh" must be
+# listed in /etc/securetty.
+auth required /lib/security/pam_nologin.so
+auth required /lib/security/pam_securetty.so
+auth required /lib/security/pam_env.so
+auth required /lib/security/pam_rhosts_auth.so
+account required /lib/security/pam_stack.so service=system-auth
+session required /lib/security/pam_stack.so service=system-auth
diff --git a/sys-libs/pam/files/0.75-r4/pam.d/smtp b/sys-libs/pam/files/0.75-r4/pam.d/smtp
new file mode 100644
index 000000000000..0bdfb241290f
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r4/pam.d/smtp
@@ -0,0 +1,3 @@
+#%PAM-1.0
+auth required /lib/security/pam_stack.so service=system-auth
+account required /lib/security/pam_stack.so service=system-auth
diff --git a/sys-libs/pam/files/digest-pam-0.75-r4 b/sys-libs/pam/files/digest-pam-0.75-r4
new file mode 100644
index 000000000000..94204c933eaa
--- /dev/null
+++ b/sys-libs/pam/files/digest-pam-0.75-r4
@@ -0,0 +1 @@
+MD5 513088e0374c235e3b109119862e6bd4 Linux-PAM-0.75.tar.gz 874549
diff --git a/sys-libs/pam/files/pam-0.75-r4-gentoo.tbz2 b/sys-libs/pam/files/pam-0.75-r4-gentoo.tbz2
new file mode 100644
index 000000000000..68f2aaea3118
--- /dev/null
+++ b/sys-libs/pam/files/pam-0.75-r4-gentoo.tbz2
Binary files differ
diff --git a/sys-libs/pam/pam-0.75-r4.ebuild b/sys-libs/pam/pam-0.75-r4.ebuild
new file mode 100644
index 000000000000..c23931e9cacf
--- /dev/null
+++ b/sys-libs/pam/pam-0.75-r4.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: System Team <system@gentoo.org>
+# Author: Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r4.ebuild,v 1.1 2002/03/03 08:35:39 azarah Exp $
+
+S=${WORKDIR}/Linux-PAM-${PV}
+S2=${WORKDIR}/pam
+DESCRIPTION="Pluggable Authentication Modules"
+SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-${PV}.tar.gz"
+HOMEPAGE="http://www.redhat.com/linux-info/pam/"
+
+DEPEND=">=sys-libs/cracklib-2.7-r2
+ >=sys-libs/pwdb-0.61-r3
+ berkdb? ( ~sys-libs/db-1.85 )"
+
+src_unpack() {
+
+ echo
+ echo "******************************************"
+ echo
+ echo " THIS WILL BREAK YOUR SYSTEM!!!!!"
+ echo
+ echo "******************************************"
+ echo
+ die
+
+ unpack ${A}
+
+ cd ${WORKDIR}
+ tar -jxf ${FILESDIR}/pam-${PVR}-gentoo.tbz2 || die
+ cd ${S}
+ tar -jxf ${S2}/pam-redhat-0.75-21.tar.bz2 || die
+ cp /usr/share/automake/install-sh .
+ ln -sf defs/redhat.defs default.defs
+
+ for x in `cat ${S2}/patch.list`
+ do
+ bzip2 -dc ${S2}/patchdir/${x} | patch -p1 || die
+ done
+
+ autoconf
+}
+
+src_compile() {
+ ./configure --prefix= \
+ --host=${CHOST} \
+ --sbindir=/usr/sbin \
+ --mandir=/usr/share/man \
+ --enable-fakeroot=${D} \
+ --enable-static-libpam \
+ --enable-read-both-confs || die
+
+ cp Makefile Makefile.orig
+ sed -e "s:libpam_misc doc examples:libpam_misc:" \
+ Makefile.orig > Makefile
+ cp Make.Rules Make.orig
+ sed -e "s:/usr/bin/install:/bin/install:" \
+ -e "s:-Wpointer-arith::" \
+ -e "s:^CFLAGS=:CFLAGS=${CFLAGS} :" \
+ Make.orig > Make.Rules
+
+ if [ -z "`use berkdb`" ]
+ then
+ cp Make.Rules Make.orig
+ sed -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \
+ Make.orig > Make.Rules
+ fi
+
+ make || die
+
+ cd doc
+ tar xvzf Linux-PAM-0.75-docs.tar.gz
+}
+
+src_install() {
+ make MANDIR="/usr/share/man" \
+ install || die
+
+ #make sure every module built.
+ for x in modules/pam_*
+ do
+ if [ -d ${x} ]
+ then
+ if ! ls -1 ${D}/lib/security/`basename ${x}`*.so
+ then
+ echo ERROR `basename ${x}` module did not build.
+ exit 1
+ fi
+ fi
+ done
+
+ dodoc CHANGELOG Copyright README
+ docinto modules
+ dodoc modules/README
+
+ cd modules
+ for i in pam_*
+ do
+ if [ -f $i/README ]
+ then
+ docinto modules/$i
+ dodoc $i/README
+ fi
+ done
+
+ cd ..
+ docinto html
+ dohtml doc/html/*.html
+ docinto txt
+ dodoc doc/txts/*.txt doc/specs/*.txt
+ docinto print
+ dodoc doc/ps/*.ps
+
+
+ cd ${D}/lib
+ for i in pam pamc pam_misc
+ do
+ rm lib${i}.so
+ ln -s lib${i}.so.${PV} lib${i}.so
+ ln -s lib${i}.so.${PV} lib${i}.so.0
+ done
+
+ insinto /etc/pam.d
+ cd ${FILESDIR}/${PVR}/pam.d
+ doins *
+}
+