summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/pam/pam-0.75-r1.ebuild')
-rw-r--r--sys-libs/pam/pam-0.75-r1.ebuild82
1 files changed, 82 insertions, 0 deletions
diff --git a/sys-libs/pam/pam-0.75-r1.ebuild b/sys-libs/pam/pam-0.75-r1.ebuild
new file mode 100644
index 000000000000..1135dc82c4fc
--- /dev/null
+++ b/sys-libs/pam/pam-0.75-r1.ebuild
@@ -0,0 +1,82 @@
+# 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-r1.ebuild,v 1.1 2001/08/16 04:23:03 chadh 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_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
+ cd doc
+ tar xvzf Linux-PAM-0.75-docs.tar.gz
+}
+
+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
+
+ cd ..
+ docinto html
+ dodoc 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
+
+ dodir /etc/pam.d
+ cd ${FILESDIR}/pam.d
+ /bin/install -D -m 644 `find . -type f -maxdepth 1` ${D}/etc/pam.d
+}
+