diff options
author | 2004-11-05 04:21:45 +0000 | |
---|---|---|
committer | 2004-11-05 04:21:45 +0000 | |
commit | 0a1b0dea6a591ba7bc8b7aca19ad05e3b5d62a49 (patch) | |
tree | ad23df6903d6038c9d64ae193503c4693ab710d9 /sys-libs/pam | |
parent | New yaboot. Version bump. (Manifest recommit) (diff) | |
download | gentoo-2-0a1b0dea6a591ba7bc8b7aca19ad05e3b5d62a49.tar.gz gentoo-2-0a1b0dea6a591ba7bc8b7aca19ad05e3b5d62a49.tar.bz2 gentoo-2-0a1b0dea6a591ba7bc8b7aca19ad05e3b5d62a49.zip |
old
Diffstat (limited to 'sys-libs/pam')
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.75-r10 | 2 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.75-r11 | 2 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.75-r8 | 2 | ||||
-rw-r--r-- | sys-libs/pam/files/digest-pam-0.75-r9 | 2 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.75-r10.ebuild | 181 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.75-r11.ebuild | 192 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.75-r8.ebuild | 166 | ||||
-rw-r--r-- | sys-libs/pam/pam-0.75-r9.ebuild | 175 |
8 files changed, 0 insertions, 722 deletions
diff --git a/sys-libs/pam/files/digest-pam-0.75-r10 b/sys-libs/pam/files/digest-pam-0.75-r10 deleted file mode 100644 index 9340702b1bd5..000000000000 --- a/sys-libs/pam/files/digest-pam-0.75-r10 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 513088e0374c235e3b109119862e6bd4 Linux-PAM-0.75.tar.gz 874549 -MD5 8912eb2013c7b13fe14d9d4677919e5f pam-0.75-r10-gentoo.tbz2 125043 diff --git a/sys-libs/pam/files/digest-pam-0.75-r11 b/sys-libs/pam/files/digest-pam-0.75-r11 deleted file mode 100644 index a09d3f0182cd..000000000000 --- a/sys-libs/pam/files/digest-pam-0.75-r11 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 513088e0374c235e3b109119862e6bd4 Linux-PAM-0.75.tar.gz 874549 -MD5 9b4378e2faa78cfb73555594c2caff4a pam-0.75-r11-gentoo.tbz2 126645 diff --git a/sys-libs/pam/files/digest-pam-0.75-r8 b/sys-libs/pam/files/digest-pam-0.75-r8 deleted file mode 100644 index 6a1a3638053b..000000000000 --- a/sys-libs/pam/files/digest-pam-0.75-r8 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 513088e0374c235e3b109119862e6bd4 Linux-PAM-0.75.tar.gz 874549 -MD5 8912eb2013c7b13fe14d9d4677919e5f pam-0.75-r8.1-gentoo.tbz2 125043 diff --git a/sys-libs/pam/files/digest-pam-0.75-r9 b/sys-libs/pam/files/digest-pam-0.75-r9 deleted file mode 100644 index 08a44f51a912..000000000000 --- a/sys-libs/pam/files/digest-pam-0.75-r9 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 513088e0374c235e3b109119862e6bd4 Linux-PAM-0.75.tar.gz 874549 -MD5 8912eb2013c7b13fe14d9d4677919e5f pam-0.75-r9-gentoo.tbz2 125043 diff --git a/sys-libs/pam/pam-0.75-r10.ebuild b/sys-libs/pam/pam-0.75-r10.ebuild deleted file mode 100644 index 1793d4a1f160..000000000000 --- a/sys-libs/pam/pam-0.75-r10.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r10.ebuild,v 1.17 2004/10/31 16:08:21 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" -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" - -LICENSE="PAM" -KEYWORDS="x86 ppc sparc alpha" -SLOT="0" - -RDEPEND=">=sys-libs/cracklib-2.7-r3 - =dev-libs/glib-1.2* - >=sys-libs/pwdb-0.61-r4 - berkdb? ( >=sys-libs/db-3.2.9 )" - -DEPEND="$RDEPEND - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5" - -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 - - einfo "Applying various patches (bugfixes/updates)..." - for x in $(cat ${S2}/patch.list ${S2}/patch.list.gentoo) - do - if [ -f ${S2}/patchdir/${x} ] - then - einfo " ${x##*/}..." - bzip2 -dc ${S2}/patchdir/${x} | patch -p1 > /dev/null || \ - die "Failed Patch: ${x##*/}!" -# pam-0.75-userdb.patch.bz2 patch userdb.c twice, which causes --dry-run -# in epatch to fail ... -# epatch ${S2}/patchdir/${x} - fi - done - - # Get pam_userdb to link to db3 or db4 if they exist - # <azarah@gentoo.org> (3 Nov 2002) - cd ${S}; epatch ${FILESDIR}/${P}-pam_userdb-use-db3.patch - - # Fix bison syntax for bison-1.50 or later, thanks to Redhat - cd ${S}; epatch ${FILESDIR}/${P}-pam_console-bison.fixes.patch - - 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 - 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 ! 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 ! use berkdb && [ "$(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 -} - diff --git a/sys-libs/pam/pam-0.75-r11.ebuild b/sys-libs/pam/pam-0.75-r11.ebuild deleted file mode 100644 index 32d5401273c1..000000000000 --- a/sys-libs/pam/pam-0.75-r11.ebuild +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# 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.29 2004/10/31 16:08:21 azarah Exp $ - -inherit gcc eutils flag-o-matic - -IUSE="berkdb selinux" - -PATCH_LEVEL="" - -SELINUX_PATCH="pam-0.75-selinux.diff.bz2" - -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" -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" - -LICENSE="PAM" -KEYWORDS="amd64 x86 ppc sparc alpha hppa mips" -SLOT="0" - -RDEPEND=">=sys-libs/cracklib-2.7-r3 - =dev-libs/glib-1.2* - >=sys-libs/pwdb-0.61-r4 - berkdb? ( >=sys-libs/db-3.2.9 ) - selinux? ( sys-libs/libselinux )" - -DEPEND="$RDEPEND - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5" - -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 - - use selinux && epatch ${FILESDIR}/${SELINUX_PATCH} - - 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 - - epatch ${FILESDIR}/pam-0.75-configure-db4.patch - - einfo "Generating configure..." - export WANT_AUTOCONF=2.5 - cd ${S}; autoconf || : -} - -src_compile() { - export CFLAGS="${CFLAGS} -fPIC" - if [ "${ARCH}" = "alpha" ]; then - if [ ! -z "`strings -a /usr/lib/libglib.a | grep -i 'Compaq Computer Corp.'`" ] ; then - # should be LDFLAGS, but this configure is screwy. - einfo "It looks like you compiled glib with ccc, this is okay, but" - einfo "I'll need to force gcc to link with libots...." - append-flags -lots - cp ${S}/modules/pam_pwdb/Makefile ${S}/modules/pam_pwdb/Makefile.orig - sed -e 's/$(CC) -o/$(CC) -lots -o/g' ${S}/modules/pam_pwdb/Makefile.orig > \ - ${S}/modules/pam_pwdb/Makefile - fi - fi - - ./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 ! 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 - - # work/Linux-PAM-0.75/modules/pam_pwdb/Makefile: $(CC) -o $(CHKPWD) $^ -lpwdb - if use hardened - then - sed -i "s:-lpwdb:-lpwdb -lcrypt:g" ${WORKDIR}/Linux-PAM-0.75/modules/pam_pwdb/Makefile - 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 were built..." - for x in ${S}/modules/pam_* - do - if [ -d ${x} ] - then - if ! ls -1 ${D}/lib/security/$(basename ${x})*.so &> /dev/null - then - if ! use berkdb && [ "$(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 -} - diff --git a/sys-libs/pam/pam-0.75-r8.ebuild b/sys-libs/pam/pam-0.75-r8.ebuild deleted file mode 100644 index 27fbab592ecb..000000000000 --- a/sys-libs/pam/pam-0.75-r8.ebuild +++ /dev/null @@ -1,166 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r8.ebuild,v 1.16 2004/10/31 16:08:21 azarah Exp $ - -IUSE="berkdb" - -inherit gcc - -PATCH_LEVEL=".1" - -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" -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" - -LICENSE="PAM" -KEYWORDS="x86 ppc sparc alpha" -SLOT="0" - -RDEPEND=">=sys-libs/cracklib-2.7-r3 - =dev-libs/glib-1.2* - >=sys-libs/pwdb-0.61-r3 - berkdb? ( ~sys-libs/db-1.85 ~sys-libs/db-3.2.9 )" - -DEPEND="$RDEPEND - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5" - -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 - - einfo "Applying various patches (bugfixes/updates)..." - for x in $(cat ${S2}/patch.list ${S2}/patch.list.gentoo) - do - if [ -f ${S2}/patchdir/${x} ] - then - einfo " ${x##*/}..." - bzip2 -dc ${S2}/patchdir/${x} | patch -p1 > /dev/null || \ - die "Failed Patch: ${x##*/}!" - fi - done - - for readme in modules/pam_*/README - do - cp -f ${readme} doc/txts/README.$(dirname ${readme} | sed -e 's|^modules/||') - done - - export WANT_AUTOCONF=2.5 - autoconf - - cd ${S}/doc - einfo "Unpacking docs..." - tar -xvzf Linux-PAM-0.75-docs.tar.gz > /dev/null || \ - die "Failed to unpack docs" -} - -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 ! 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. - for x in ${S}/modules/pam_* - do - if [ -d ${x} ] - then - if ! ls -1 ${D}/lib/security/$(basename ${x})*.so &> /dev/null - then - if ! use berkdb && [ "$(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 - 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 -} - diff --git a/sys-libs/pam/pam-0.75-r9.ebuild b/sys-libs/pam/pam-0.75-r9.ebuild deleted file mode 100644 index 32e5c3215711..000000000000 --- a/sys-libs/pam/pam-0.75-r9.ebuild +++ /dev/null @@ -1,175 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75-r9.ebuild,v 1.16 2004/10/31 16:08:21 azarah Exp $ - -IUSE="berkdb" - -inherit gcc - -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" -HOMEPAGE="http://www.kernel.org/pub/linux/libs/pam/" - -LICENSE="PAM" -KEYWORDS="x86 ppc sparc alpha mips ia64" -SLOT="0" - -RDEPEND=">=sys-libs/cracklib-2.7-r3 - =dev-libs/glib-1.2* - >=sys-libs/pwdb-0.61-r3 - berkdb? ( ~sys-libs/db-1.85 ~sys-libs/db-3.2.9 )" - -DEPEND="$RDEPEND - >=sys-devel/autoconf-2.58 - >=sys-devel/automake-1.6 - >=sys-devel/flex-2.5.4a-r5" - -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 - - einfo "Applying various patches (bugfixes/updates)..." - for x in $(cat ${S2}/patch.list ${S2}/patch.list.gentoo) - do - if [ -f ${S2}/patchdir/${x} ] - then - einfo " ${x##*/}..." - bzip2 -dc ${S2}/patchdir/${x} | patch -p1 > /dev/null || \ - die "Failed Patch: ${x##*/}!" - fi - done - - for readme in modules/pam_*/README - do - cp -f ${readme} doc/txts/README.$(dirname ${readme} | sed -e 's|^modules/||') - done - - export WANT_AUTOCONF=2.5 - autoconf - - cd ${S}/doc - einfo "Unpacking docs..." - tar -xvzf Linux-PAM-0.75-docs.tar.gz > /dev/null || \ - die "Failed to unpack docs" -} - -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 ! 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. - for x in ${S}/modules/pam_* - do - if [ -d ${x} ] - then - if ! ls -1 ${D}/lib/security/$(basename ${x})*.so &> /dev/null - then - if ! use berkdb && [ "$(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 - # Another snag in the problem with gcc3 linking static - # libs in /usr/lib before dynamic ones in /lib (bug #4411). - # Seems like c++ stuff do not link properly with libpam.so, - # but rather with libpam.a, and as pam must be dynamic to - # load its modules, it breaks auth for a few critical things - # (like gdm and kdm). This is not tested, but the urgency - # demands a solution. - # <azarah@gentoo.org> (24 Oct 2002) - #mv lib${x}.a ${D}/usr/lib - rm -f lib${x}.a - 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 -} - |