summaryrefslogtreecommitdiff
blob: dc59366a9ffd1ffc90d06dbbfaa75db20e038b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.7-r6.ebuild,v 1.9 2003/02/13 16:47:43 vapier Exp $

inherit eutils

IUSE=""

S="${WORKDIR}/cracklib,${PV}"
DESCRIPTION="Cracklib"
SRC_URI="ftp://ftp.debian.org/debian/dists/potato/main/source/utils/cracklib2_${PV}.orig.tar.gz"
HOMEPAGE="http://www.users.dircon.co.uk/~crypto/"

SLOT="0"
LICENSE="CRACKLIB"
KEYWORDS="x86 ppc sparc alpha mips hppa"

DEPEND="sys-apps/miscfiles"

src_unpack() {

 	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-redhat.patch
	epatch ${FILESDIR}/${P}-gentoo-new.diff
}

src_compile() {
	# Parallel make does not work for 2.7
	make all || die
}

src_install() {

	dodir /usr/{lib,sbin,include}
	keepdir /usr/share/cracklib
	
	make DESTDIR=${D} install || die

	# This link is needed and not created. :| bug #9611
	cd ${D}/usr/lib
	dosym libcrack.so.2.7 /usr/lib/libcrack.so.2
	cd ${S}

	cp ${S}/cracklib/packer.h ${D}/usr/include

	preplib /usr/lib

	dodoc HISTORY LICENCE MANIFEST POSTER README
}