summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-12-07 09:46:11 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-12-07 09:46:11 +0000
commita250a363cd5c8b4eada79f5930872fd91aa9a843 (patch)
treed2c5b893b6b863f83b8a4602ecce1c9b79390564 /sys-libs/cracklib
parentnew upstream release (diff)
downloadhistorical-a250a363cd5c8b4eada79f5930872fd91aa9a843.tar.gz
historical-a250a363cd5c8b4eada79f5930872fd91aa9a843.tar.bz2
historical-a250a363cd5c8b4eada79f5930872fd91aa9a843.zip
make it so parallel make works; tidy
Diffstat (limited to 'sys-libs/cracklib')
-rw-r--r--sys-libs/cracklib/ChangeLog6
-rw-r--r--sys-libs/cracklib/Manifest5
-rw-r--r--sys-libs/cracklib/cracklib-2.7-r10.ebuild39
-rw-r--r--sys-libs/cracklib/files/cracklib-2.7-parallel-make.patch30
4 files changed, 58 insertions, 22 deletions
diff --git a/sys-libs/cracklib/ChangeLog b/sys-libs/cracklib/ChangeLog
index 619166456f57..4346148718aa 100644
--- a/sys-libs/cracklib/ChangeLog
+++ b/sys-libs/cracklib/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-libs/cracklib
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.59 2004/12/07 09:10:50 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.60 2004/12/07 09:46:11 mr_bones_ Exp $
+
+ 07 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/cracklib-2.7-parallel-make.patch, cracklib-2.7-r10.ebuild:
+ make it so parallel make works; tidy
07 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org>
-cracklib-2.7-r7.ebuild, -cracklib-2.7-r8.ebuild, -cracklib-2.7-r9.ebuild:
diff --git a/sys-libs/cracklib/Manifest b/sys-libs/cracklib/Manifest
index 98c930d3c08a..ac16538f3af6 100644
--- a/sys-libs/cracklib/Manifest
+++ b/sys-libs/cracklib/Manifest
@@ -1,9 +1,10 @@
-MD5 9808a50ef484a0139ee5ff90e7d27ab9 ChangeLog 7918
+MD5 ed745a2759035f4922967b3b287dc48a ChangeLog 8081
+MD5 92aaceba37a026a4e21c6b950c710cf4 cracklib-2.7-r10.ebuild 2823
MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-MD5 e6c2114dcc4cb03abe9b55a6fc1d4d5d cracklib-2.7-r10.ebuild 2713
MD5 85783b83e5bfa51190033895cfaf803e files/cracklib-2.7-dec-alpha-compiler.diff 333
MD5 57ed4f94412bd475a0774c8e0db99712 files/cracklib-2.7-gentoo-new.diff 4235
MD5 954e8e0d53c6f878366e472a90917356 files/cracklib-2.7-redhat.patch 1224
+MD5 e9edfa4c3852810514a42e43e4f66b4e files/cracklib-2.7-parallel-make.patch 1066
MD5 69aa6844bbf39d86cde364729ca9f9dd files/cracklib-2.7-static-lib.patch 1328
MD5 336ab4f8ce8e3a3955ec8722d32076b4 files/cracklib-2.7-gzip.patch 521
MD5 f27fad03a3939b6e405193b419b645a4 files/digest-cracklib-2.7-r10 63
diff --git a/sys-libs/cracklib/cracklib-2.7-r10.ebuild b/sys-libs/cracklib/cracklib-2.7-r10.ebuild
index e6b8c47b80de..8c6c24995a00 100644
--- a/sys-libs/cracklib/cracklib-2.7-r10.ebuild
+++ b/sys-libs/cracklib/cracklib-2.7-r10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.7-r10.ebuild,v 1.8 2004/12/06 06:18:29 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.7-r10.ebuild,v 1.9 2004/12/07 09:46:11 mr_bones_ Exp $
inherit flag-o-matic eutils toolchain-funcs
@@ -25,14 +25,15 @@ S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${P}-redhat.patch
- epatch ${FILESDIR}/${P}-gentoo-new.diff
- epatch ${FILESDIR}/${P}-static-lib.patch
- epatch ${FILESDIR}/${P}-libdir.patch
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-redhat.patch"
+ epatch "${FILESDIR}/${P}-gentoo-new.diff"
+ epatch "${FILESDIR}/${P}-static-lib.patch"
+ epatch "${FILESDIR}/${P}-libdir.patch"
# add compressed dict support, taken from shadow-4.0.4.1
use uclibc && epatch ${FILESDIR}/${PN}-${PV}-gzip.patch
+ epatch "${FILESDIR}/${P}-parallel-make.patch"
sed -i \
-e 's|/usr/dict/words|/usr/share/dict/words|' \
@@ -55,24 +56,26 @@ src_install() {
dodir /usr/{$(get_libdir),sbin,include,lib} /$(get_libdir)
keepdir /usr/share/cracklib
- make DESTDIR="${D}" install LIBDIR=/usr/$(get_libdir) || die "make install failed"
+ make DESTDIR="${D}" install LIBDIR="/usr/$(get_libdir)" \
+ || die "make install failed"
# Needed by pam
- if [ ! -f "${D}/usr/$(get_libdir)/libcrack.a" ] && use pam
- then
+ if [ ! -f "${D}/usr/$(get_libdir)/libcrack.a" ] && use pam ; then
eerror "Could not find libcrack.a which is needed by core components!"
die "Could not find libcrack.a which is needed by core components!"
fi
# correct permissions on static lib
- [ -x ${D}/usr/$(get_libdir)/libcrack.a ] && fperms 644 usr/$(get_libdir)/libcrack.a
+ if [ -x "${D}/usr/$(get_libdir)/libcrack.a" ] ; then
+ fperms 644 "/usr/$(get_libdir)/libcrack.a"
+ fi
# put libcrack.so.2.7 in /lib for cases where /usr isn't available yet
- mv ${D}/usr/$(get_libdir)/libcrack.so* ${D}/$(get_libdir)
+ mv "${D}/usr/$(get_libdir)/libcrack.so"* "${D}/$(get_libdir)" \
+ || die "mv failed"
# This link is needed and not created. :| bug #9611
- cd ${D}/$(get_libdir)
- dosym libcrack.so.2.7 /$(get_libdir)/libcrack.so.2
+ dosym libcrack.so.2.7 "/$(get_libdir)/libcrack.so.2"
## remove it, if not needed
##use pam || rm -f ${D}/usr/lib/libcrack.a
@@ -80,13 +83,11 @@ src_install() {
# it's possible that pam is NOT in the USE flag at the time, and will be
# later on only.
- cd ${S}
-
- cp ${S}/cracklib/packer.h ${D}/usr/include
+ cp "${S}/cracklib/packer.h" "${D}/usr/include" || die "cp failed"
#fix the permissions on it as they may be wrong in some cases
- fperms 644 usr/include/packer.h
+ fperms 644 /usr/include/packer.h
- preplib /usr/$(get_libdir) /$(get_libdir)
+ preplib "/usr/$(get_libdir)" "/$(get_libdir)"
- dodoc HISTORY LICENCE MANIFEST POSTER README
+ dodoc "${S}/"{HISTORY,MANIFEST,POSTER,README}
}
diff --git a/sys-libs/cracklib/files/cracklib-2.7-parallel-make.patch b/sys-libs/cracklib/files/cracklib-2.7-parallel-make.patch
new file mode 100644
index 000000000000..42c0f3592a9e
--- /dev/null
+++ b/sys-libs/cracklib/files/cracklib-2.7-parallel-make.patch
@@ -0,0 +1,30 @@
+--- Makefile.orig 2004-12-07 01:17:53.000000000 -0800
++++ Makefile 2004-12-07 01:34:09.000000000 -0800
+@@ -31,21 +31,17 @@
+ @echo "you evidently don't know what you're doing. go read the README"
+
+ all:
+- ( cd cracklib && make && exit $$? )
+- ( cd util && make DICTPATH=$(DICTPATH) && exit $$? )
+-### ( cd passwd && make DICTPATH=$(DICTPATH) passwd && exit $$? )
+-### touch all
++ $(MAKE) -C cracklib
++ $(MAKE) DICTPATH=$(DICTPATH) -C util
+
+ clean:
+- -( cd cracklib && make clean && exit $$? )
+- -( cd util && make clean && exit $$? )
+-### -( cd passwd && make clean && exit $$? )
++ $(MAKE) -C cracklib clean
++ $(MAKE) -C util clean
+ -rm -f all installed Part* *.BAK *.bak *~
+
+ install: all
+- ( cd cracklib && make install && exit $$? )
+- ( cd util && make install && exit $$? )
++ $(MAKE) -C cracklib install
++ $(MAKE) -C util install
+ @echo 'if "sort" dies from lack of space, see "util/mkdict"'
+ util/mkdict $(SRCDICTS) | LD_LIBRARY_PATH=cracklib util/packer $(DESTDIR)$(DICTPATH)
+ touch installed
+-### @echo 'now go install passwd/passwd where you want it'