diff options
Diffstat (limited to 'sys-libs/cracklib/cracklib-2.7-r4.ebuild')
-rw-r--r-- | sys-libs/cracklib/cracklib-2.7-r4.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sys-libs/cracklib/cracklib-2.7-r4.ebuild b/sys-libs/cracklib/cracklib-2.7-r4.ebuild new file mode 100644 index 000000000000..249a78eca73e --- /dev/null +++ b/sys-libs/cracklib/cracklib-2.7-r4.ebuild @@ -0,0 +1,50 @@ +# 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/cracklib/cracklib-2.7-r4.ebuild,v 1.1 2002/04/19 23:02:50 murphy Exp $ + +S=${WORKDIR}/cracklib,${PV} +DESCRIPTION="Cracklib" +SRC_URI="ftp://ftp.debian.org/debian/dists/potato/main/source/utils/cracklib2_${PV}.orig.tar.gz" + +DEPEND="virtual/glibc" + +src_unpack() { + + unpack ${A} + + cd ${S} + patch -p1 <${FILESDIR}/${P}-redhat.patch || die + patch -p1 <${FILESDIR}/${P}-gentoo.diff || die +} + +src_compile() { + + # Parallel make does not work for 2.7 + make all +} + +src_install() { + + case $ARCH in + sparc*) + DICTS=dict-sparc + ;; + *) + DICTS=dict + ;; + esac + + dodir /usr/{lib,sbin,include} /usr/share/cracklib + + make DESTDIR=${D} install || die + + mv ${D}/usr/lib ${D} + preplib / + + insinto /usr/lib + doins ${FILESDIR}/${DICTS}/cracklib_dict.* + + dodoc HISTORY LICENCE MANIFEST POSTER README +} + |