summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/pam/pam-0.75.ebuild')
-rw-r--r--sys-libs/pam/pam-0.75.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/sys-libs/pam/pam-0.75.ebuild b/sys-libs/pam/pam-0.75.ebuild
new file mode 100644
index 000000000000..17679582d411
--- /dev/null
+++ b/sys-libs/pam/pam-0.75.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.75.ebuild,v 1.1 2001/04/20 00:31:02 achim Exp $
+
+P=pam-${PV}
+A=Linux-PAM-${PV}.tar.gz
+S=${WORKDIR}/Linux-PAM-${PV}
+DESCRIPTION="PAM"
+SRC_URI="http://www.kernel.org/pub/linux/libs/pam/pre/library/${A}"
+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-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ #patch -p0 < ${FILESDIR}/pam-0.73-pam_issue.diff
+}
+
+src_compile() {
+
+ try ./configure --prefix= --host=${CHOST} \
+ --sbindir=/usr/sbin --mandir=/usr/share/man \
+ --enable-fakeroot=${D} \
+ --enable-read-both-confs
+
+
+ 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
+
+ try make
+
+}
+
+src_install() {
+
+ try make install MANDIR=\"/usr/share/man\"
+ 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
+
+ dosym libpam.so.0.73 /lib/libpam.so
+ dosym libpamc.so.0.73 /lib/libpamc.so
+ dosym libpam_misc.so.0.73 /lib/libpam_misc.so
+ dosym libpam.so.0.73 /lib/libpam.so.0
+ dosym libpamc.so.0.73 /lib/libpamc.so.0
+ dosym libpam_misc.so.0.73 /lib/libpam_misc.so.0
+
+}
+
+
+