diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-11-20 06:45:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-11-20 06:45:26 +0000 |
commit | 0e677c5c4f271e4a3c9f20ae7282cd049ceaa8ce (patch) | |
tree | 582aefb0781cb86e9310c99da12bcaaa82a2c773 /sys-libs | |
parent | old (diff) | |
download | historical-0e677c5c4f271e4a3c9f20ae7282cd049ceaa8ce.tar.gz historical-0e677c5c4f271e4a3c9f20ae7282cd049ceaa8ce.tar.bz2 historical-0e677c5c4f271e4a3c9f20ae7282cd049ceaa8ce.zip |
Add USE=static-libs support #378291 by Agostino Sarubbo.
Package-Manager: portage-2.2.0_alpha75/cvs/Linux x86_64
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/cracklib/ChangeLog | 9 | ||||
-rw-r--r-- | sys-libs/cracklib/Manifest | 11 | ||||
-rw-r--r-- | sys-libs/cracklib/cracklib-2.8.18-r1.ebuild | 92 |
3 files changed, 105 insertions, 7 deletions
diff --git a/sys-libs/cracklib/ChangeLog b/sys-libs/cracklib/ChangeLog index 14bec4e07e0c..ce07854f567a 100644 --- a/sys-libs/cracklib/ChangeLog +++ b/sys-libs/cracklib/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/cracklib -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.157 2010/09/29 22:35:57 vapier Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.158 2011/11/20 06:45:25 vapier Exp $ + +*cracklib-2.8.18-r1 (20 Nov 2011) + + 20 Nov 2011; Mike Frysinger <vapier@gentoo.org> +cracklib-2.8.18-r1.ebuild: + Add USE=static-libs support #378291 by Agostino Sarubbo. *cracklib-2.8.18 (29 Sep 2010) diff --git a/sys-libs/cracklib/Manifest b/sys-libs/cracklib/Manifest index 638752ec36b2..1db6f56f76f9 100644 --- a/sys-libs/cracklib/Manifest +++ b/sys-libs/cracklib/Manifest @@ -6,13 +6,14 @@ AUX cracklib-2.8.16-python.patch 303 RMD160 077bc8949315dbc6df0d26cc0bd247db9f5d DIST cracklib-2.8.16.tar.gz 618120 RMD160 b2032ebe4c476fe273a1daab13764f62520c14c0 SHA1 21c181ed22ab7ab1e178c09fa251c9615f9f336c SHA256 fc3aa492c2879e304bae30955ab8b37d6865d26f79d0493b8c36a9bc1b6475bc DIST cracklib-2.8.18.tar.gz 587311 RMD160 2bfa3e8175413756079d811116a647957fa9b9e5 SHA1 3c4df51b13047fd7a85ae470f568abf8a8d6f92b SHA256 2b072f67f7267358459424c3ed70f7f5b70919118e6504a90d3bce37a67c1454 EBUILD cracklib-2.8.16.ebuild 2123 RMD160 2d5ea3d98d41c07997df231fa59217e1dcfd88c2 SHA1 1a3874eb6e0d18e6764794ed1dc34c9f72aa0568 SHA256 0af290af97f7358f7a187549a357cc49f7ddd125f1fb6dd5c7c648706d8c61ce +EBUILD cracklib-2.8.18-r1.ebuild 2118 RMD160 8ceccd8676cfff0edcfa70e8a182123ca9fd4bc7 SHA1 04f847f78fb2a8c15499de4e6d663ad62174f225 SHA256 b0ea9135936af52ed09e8b202d214f5c56b0fd9a95803c1570df57ca8506285c EBUILD cracklib-2.8.18.ebuild 2046 RMD160 ccd177b04c1cc3527d2230ab7300aca5034a6ecb SHA1 5b62c99fa0555e0d305f3f25e8f91c3877cda260 SHA256 047c292ac2a72f1842f34564028628750ae7b769472035b8dcf9a57451237b92 -MISC ChangeLog 20105 RMD160 9b8354d120b81af51a628ffe8cabdd9793bd06cc SHA1 ae33fce903a80621d89ae516fd605f4d97b223a5 SHA256 d14f432f7382ccd7083c578810ee2c782dfdfe041e07b232a9ebea0e84704a60 +MISC ChangeLog 20278 RMD160 bca0997e96a55b28c2e3d3137ebfd02e2de523fc SHA1 933681d207b5a20b80928cf286ce95f2432a132f SHA256 c9e923918cb490511b36ea74ac907f5af68c0029bf7ecd487f237301fbf29cf8 MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) +Version: GnuPG v2.0.18 (GNU/Linux) -iF4EAREIAAYFAkyjvzYACgkQTwhj9JtAlp5vfQD/Q3uV/hA6AEllsqjNDD1oMeFD -4WtEbtgInjo2hR2/4q4A/17Z8TvA8WNwXLvcqmt0Hrm2D9BTO1n4wXAiYg+VWVHD -=NC7q +iF4EAREIAAYFAk7IogwACgkQaC/OocHi7JbqqAD/VQ1PIksyXU68dewNm7Is/eyb +OR97J7FIVaM82I+wLPYA/3OolYngIue6gXvO4hnRgob/sfrcK4wCiZ61k/CLcpiN +=TBtR -----END PGP SIGNATURE----- diff --git a/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild b/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild new file mode 100644 index 000000000000..b7adda25564c --- /dev/null +++ b/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18-r1.ebuild,v 1.1 2011/11/20 06:45:26 vapier Exp $ + +EAPI="3" +PYTHON_DEPEND="python? 2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit eutils distutils libtool toolchain-funcs + +MY_P=${P/_} +DESCRIPTION="Password Checking Library" +HOMEPAGE="http://sourceforge.net/projects/cracklib" +SRC_URI="mirror://sourceforge/cracklib/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="nls python static-libs" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + python? ( dev-python/setuptools )" + +S=${WORKDIR}/${MY_P} + +PYTHON_MODNAME="cracklib.py" +do_python() { + pushd python > /dev/null || die + distutils_src_${EBUILD_PHASE} + popd > /dev/null +} + +pkg_setup() { + # workaround #195017 + if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then + eerror "Upgrade path is broken with FEATURES=unmerge-orphans" + eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" + die "Please run: FEATURES=-unmerge-orphans emerge cracklib" + fi + + use python && python_pkg_setup +} + +src_prepare() { + elibtoolize #269003 + use python && do_python +} + +src_configure() { + econf \ + --with-default-dict='$(libdir)/cracklib_dict' \ + --without-python \ + $(use_enable nls) \ + $(use_enable static-libs static) +} + +src_compile() { + default + use python && do_python +} + +src_install() { + emake DESTDIR="${D}" install || die + use static-libs || rm -f "${ED}"/usr/lib*/libcrack.la + rm -r "${ED}"/usr/share/cracklib + + use python && do_python + + # move shared libs to / + gen_usr_ldscript -a crack + + insinto /usr/share/dict + doins dicts/cracklib-small || die + + dodoc AUTHORS ChangeLog NEWS README* +} + +pkg_postinst() { + if [[ ${ROOT} == "/" ]] ; then + ebegin "Regenerating cracklib dictionary" + create-cracklib-dict /usr/share/dict/* > /dev/null + eend $? + fi + + use python && distutils_pkg_postinst +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} |