From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/cracklib: ChangeLog cracklib-2.8.18.ebuild |
Date: | Wed, 29 Sep 2010 22:36:07 |
Message-Id: | 20100929223557.DD3D720051@flycatcher.gentoo.org |
1 | vapier 10/09/29 22:35:57 |
2 | |
3 | Modified: ChangeLog |
4 | Added: cracklib-2.8.18.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2_rc86/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.157 sys-libs/cracklib/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.157&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.157&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?r1=1.156&r2=1.157 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v |
20 | retrieving revision 1.156 |
21 | retrieving revision 1.157 |
22 | diff -u -r1.156 -r1.157 |
23 | --- ChangeLog 28 Sep 2010 15:35:45 -0000 1.156 |
24 | +++ ChangeLog 29 Sep 2010 22:35:57 -0000 1.157 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sys-libs/cracklib |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.156 2010/09/28 15:35:45 vapier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.157 2010/09/29 22:35:57 vapier Exp $ |
30 | + |
31 | +*cracklib-2.8.18 (29 Sep 2010) |
32 | + |
33 | + 29 Sep 2010; Mike Frysinger <vapier@g.o> +cracklib-2.8.18.ebuild: |
34 | + Version bump. |
35 | |
36 | 28 Sep 2010; Mike Frysinger <vapier@g.o> cracklib-2.8.16.ebuild, |
37 | +files/cracklib-2.8.16-no-nls.patch: |
38 | |
39 | |
40 | |
41 | 1.1 sys-libs/cracklib/cracklib-2.8.18.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: cracklib-2.8.18.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2010 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/cracklib-2.8.18.ebuild,v 1.1 2010/09/29 22:35:57 vapier Exp $ |
51 | |
52 | EAPI="3" |
53 | PYTHON_DEPEND="python? 2" |
54 | SUPPORT_PYTHON_ABIS="1" |
55 | RESTRICT_PYTHON_ABIS="3.*" |
56 | |
57 | inherit eutils distutils libtool toolchain-funcs |
58 | |
59 | MY_P=${P/_} |
60 | DESCRIPTION="Password Checking Library" |
61 | HOMEPAGE="http://sourceforge.net/projects/cracklib" |
62 | SRC_URI="mirror://sourceforge/cracklib/${MY_P}.tar.gz" |
63 | |
64 | LICENSE="LGPL-2.1" |
65 | SLOT="0" |
66 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
67 | IUSE="nls python" |
68 | |
69 | RDEPEND="sys-libs/zlib" |
70 | DEPEND="${RDEPEND} |
71 | python? ( dev-python/setuptools )" |
72 | |
73 | S=${WORKDIR}/${MY_P} |
74 | |
75 | PYTHON_MODNAME="cracklib.py" |
76 | do_python() { |
77 | pushd python > /dev/null || die |
78 | distutils_src_${EBUILD_PHASE} |
79 | popd > /dev/null |
80 | } |
81 | |
82 | pkg_setup() { |
83 | # workaround #195017 |
84 | if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then |
85 | eerror "Upgrade path is broken with FEATURES=unmerge-orphans" |
86 | eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" |
87 | die "Please run: FEATURES=-unmerge-orphans emerge cracklib" |
88 | fi |
89 | |
90 | use python && python_pkg_setup |
91 | } |
92 | |
93 | src_prepare() { |
94 | elibtoolize #269003 |
95 | use python && do_python |
96 | } |
97 | |
98 | src_configure() { |
99 | econf \ |
100 | --with-default-dict='$(libdir)/cracklib_dict' \ |
101 | --without-python \ |
102 | $(use_enable nls) |
103 | } |
104 | |
105 | src_compile() { |
106 | default |
107 | use python && do_python |
108 | } |
109 | |
110 | src_install() { |
111 | emake DESTDIR="${D}" install || die "emake install failed" |
112 | rm -r "${ED}"/usr/share/cracklib |
113 | |
114 | use python && do_python |
115 | |
116 | # move shared libs to / |
117 | gen_usr_ldscript -a crack |
118 | |
119 | insinto /usr/share/dict |
120 | doins dicts/cracklib-small || die "word dict" |
121 | |
122 | dodoc AUTHORS ChangeLog NEWS README* |
123 | } |
124 | |
125 | pkg_postinst() { |
126 | if [[ ${ROOT} == "/" ]] ; then |
127 | ebegin "Regenerating cracklib dictionary" |
128 | create-cracklib-dict /usr/share/dict/* > /dev/null |
129 | eend $? |
130 | fi |
131 | |
132 | use python && distutils_pkg_postinst |
133 | } |
134 | |
135 | pkg_postrm() { |
136 | use python && distutils_pkg_postrm |
137 | } |