summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-12-25 22:56:34 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-12-25 22:56:34 +0000
commit66a2ff89a91fa9966de99ea4cc87ce5607b7b04b (patch)
tree7747562a1548171dbc14e6ca5f2c82719c63a661 /sys-libs
parentAdded IUSE variable and tabified the ebuld. (diff)
downloadgentoo-2-66a2ff89a91fa9966de99ea4cc87ce5607b7b04b.tar.gz
gentoo-2-66a2ff89a91fa9966de99ea4cc87ce5607b7b04b.tar.bz2
gentoo-2-66a2ff89a91fa9966de99ea4cc87ce5607b7b04b.zip
fix pam_console_apply not using correct device, bug 12207
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/pam/ChangeLog11
-rw-r--r--sys-libs/pam/files/0.75-r11/pam.d/rexec9
-rw-r--r--sys-libs/pam/files/0.75-r11/pam.d/rlogin11
-rw-r--r--sys-libs/pam/files/0.75-r11/pam.d/rsh9
-rw-r--r--sys-libs/pam/files/digest-pam-0.75-r112
-rw-r--r--sys-libs/pam/pam-0.75-r11.ebuild167
6 files changed, 208 insertions, 1 deletions
diff --git a/sys-libs/pam/ChangeLog b/sys-libs/pam/ChangeLog
index 2e30913ff2cd..acf9dc324acc 100644
--- a/sys-libs/pam/ChangeLog
+++ b/sys-libs/pam/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for sys-libs/pam
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.19 2002/12/16 21:39:32 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/ChangeLog,v 1.20 2002/12/25 22:56:34 azarah Exp $
+
+*pam-0.75-r11 (25 Dec 2002)
+
+ 25 Dec 2002; Martin Schlemmer <azarah@gentoo.org> pam-0.75-r11.ebuild :
+
+ Add pam-0.75-pam_console_apply-use-correct-device.patch.bz2 to fix a
+ problem where pam_console_apply and co did not use the correct device
+ if devfsd was not used, closing bug #12207. The patch was created by
+ Sam Yates <sam@quux.dropbear.id.au>.
16 Dec 2002; Martin Schlemmer <azarah@gentoo.org> pam-0.75-r10.ebuild :
diff --git a/sys-libs/pam/files/0.75-r11/pam.d/rexec b/sys-libs/pam/files/0.75-r11/pam.d/rexec
new file mode 100644
index 000000000000..7fb1cc770069
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r11/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-r11/pam.d/rlogin b/sys-libs/pam/files/0.75-r11/pam.d/rlogin
new file mode 100644
index 000000000000..ae4cd2f796f2
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r11/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-r11/pam.d/rsh b/sys-libs/pam/files/0.75-r11/pam.d/rsh
new file mode 100644
index 000000000000..9feb9af03d96
--- /dev/null
+++ b/sys-libs/pam/files/0.75-r11/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/digest-pam-0.75-r11 b/sys-libs/pam/files/digest-pam-0.75-r11
new file mode 100644
index 000000000000..a09d3f0182cd
--- /dev/null
+++ b/sys-libs/pam/files/digest-pam-0.75-r11
@@ -0,0 +1,2 @@
+MD5 513088e0374c235e3b109119862e6bd4 Linux-PAM-0.75.tar.gz 874549
+MD5 9b4378e2faa78cfb73555594c2caff4a pam-0.75-r11-gentoo.tbz2 126645
diff --git a/sys-libs/pam/pam-0.75-r11.ebuild b/sys-libs/pam/pam-0.75-r11.ebuild
new file mode 100644
index 000000000000..2dc327aed0c2
--- /dev/null
+++ b/sys-libs/pam/pam-0.75-r11.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r11.ebuild,v 1.1 2002/12/25 22:56:34 azarah Exp $
+
+IUSE="berkdb"
+
+inherit gcc eutils
+
+PATCH_LEVEL=""
+
+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
+ mirror://gentoo/pam-${PVR}${PATCH_LEVEL}-gentoo.tbz2
+ http://cvs.gentoo.org/~azarah/pam-${PVR}${PATCH_LEVEL}-gentoo.tbz2"
+HOMEPAGE="http://www.redhat.com/linux-info/pam/"
+
+LICENSE="PAM"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha"
+SLOT="0"
+
+DEPEND=">=sys-libs/cracklib-2.7-r3
+ =dev-libs/glib-1.2*
+ >=sys-libs/pwdb-0.61-r4
+ >=sys-devel/autoconf-2.5
+ >=sys-devel/automake-1.6
+ >=sys-devel/flex-2.5.4a-r5
+ berkdb? ( >=sys-libs/db-3.2.9 )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ tar -jxf ${S2}/pam-redhat-0.75-41.1.tar.bz2 || \
+ die "Failed to unpack pam-redhat-0.75-41.1.tar.bz2"
+
+ cp /usr/share/automake/install-sh . || die
+ ln -sf defs/redhat.defs default.defs
+
+ for x in $(cat ${S2}/patch.list ${S2}/patch.list.gentoo)
+ do
+ if [ -f ${S2}/patchdir/${x} ]
+ then
+ epatch ${S2}/patchdir/${x}
+ fi
+ done
+
+ cd ${S}/doc
+ einfo "Unpacking docs..."
+ tar -xvzf Linux-PAM-0.75-docs.tar.gz > /dev/null || \
+ die "Failed to unpack docs!"
+
+ cd ${S}; einfo "Installing module docs..."
+ for readme in modules/pam_*/README
+ do
+ cp -f ${readme} doc/txts/README.$(dirname ${readme} | sed -e 's|^modules/||')
+ done
+
+ einfo "Generating configure..."
+ export WANT_AUTOCONF_2_5=1
+ cd ${S}; autoconf || :
+}
+
+src_compile() {
+ export CFLAGS="${CFLAGS} -fPIC"
+
+ ./configure --host=${CHOST} \
+ --prefix=/ \
+ --sbindir=/usr/sbin \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-securedir=/lib/security \
+ --enable-fakeroot=${D} \
+ --enable-static-libpam \
+ || die "Failed to configure"
+
+ # Python stuff in docs gives sandbox problems
+ cp Makefile Makefile.orig
+ sed -e "s:libpam_misc doc examples:libpam_misc:" \
+ Makefile.orig > Makefile
+
+ # Fix warnings for gcc-2.95.3
+ if [ "$(gcc-version)" = "2.95" ]
+ then
+ cp Make.Rules Make.Rules.orig
+ sed -e "s:-Wpointer-arith::" \
+ Make.Rules.orig > Make.Rules
+ rm -f Make.Rules.orig
+ fi
+
+ if [ -z "$(use berkdb)" ]
+ then
+ cp Make.Rules Make.Rules.orig
+ sed -e "s:^HAVE_LIBNDBM=yes:HAVE_LIBNDBM=no:" \
+ Make.Rules.orig > Make.Rules
+ rm -f Make.Rules.orig
+ fi
+
+ make || die "Failed to build"
+}
+
+src_install() {
+ make FAKEROOT=${D} \
+ LDCONFIG="" \
+ install || die
+
+ # Make sure every module built.
+ # Do not remove this, as some module can fail to build
+ # and effectively lock the user out of his system.
+ einfo "Checking if all modules was build..."
+ for x in ${S}/modules/pam_*
+ do
+ if [ -d ${x} ]
+ then
+ if ! ls -1 ${D}/lib/security/$(basename ${x})*.so &> /dev/null
+ then
+ if [ -z "$(use berkdb)" -a "$(basename ${x})" = "pam_userdb" ]
+ then
+ continue
+ fi
+ eerror "ERROR: $(basename ${x}) module did not build."
+ exit 1
+ fi
+ fi
+ done
+
+ cd ${S}
+ dodoc CHANGELOG Copyright README
+ docinto modules
+ dodoc modules/README
+ dodoc doc/txts/README.*
+ docinto txt
+ dodoc doc/txts/*.txt doc/specs/*.txt
+ docinto print
+ dodoc doc/ps/*.ps
+
+ doman doc/man/*.[38]
+
+ docinto html
+ dohtml -r doc/html/
+
+ dodir /usr/lib
+ cd ${D}/lib
+ for x in pam pamc pam_misc
+ do
+ rm lib${x}.so
+ ln -s lib${x}.so.${PV} lib${x}.so
+ ln -s lib${x}.so.${PV} lib${x}.so.0
+ mv lib${x}.a ${D}/usr/lib
+ # See bug #4411
+ gen_usr_ldscript lib${x}.so
+ done
+
+ # need this for pam_console
+ keepdir /var/run/console
+
+ insinto /etc/pam.d
+ for x in ${FILESDIR}/${PVR}/pam.d/*
+ do
+ if [ -f ${x} ]
+ then
+ doins ${x}
+ fi
+ done
+}
+