1 |
mgorny 14/05/29 18:42:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cracklib-2.9.1-r1.ebuild |
5 |
Log: |
6 |
Enable multilib support, as a dependency of PAM. |
7 |
|
8 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.191 sys-libs/cracklib/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.191&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?rev=1.191&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/ChangeLog?r1=1.190&r2=1.191 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v |
20 |
retrieving revision 1.190 |
21 |
retrieving revision 1.191 |
22 |
diff -u -r1.190 -r1.191 |
23 |
--- ChangeLog 17 May 2014 13:58:26 -0000 1.190 |
24 |
+++ ChangeLog 29 May 2014 18:42:41 -0000 1.191 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-libs/cracklib |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.190 2014/05/17 13:58:26 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/cracklib/ChangeLog,v 1.191 2014/05/29 18:42:41 mgorny Exp $ |
30 |
+ |
31 |
+*cracklib-2.9.1-r1 (29 May 2014) |
32 |
+ |
33 |
+ 29 May 2014; Michał Górny <mgorny@g.o> +cracklib-2.9.1-r1.ebuild: |
34 |
+ Enable multilib support, as a dependency of PAM. |
35 |
|
36 |
17 May 2014; Agostino Sarubbo <ago@g.o> cracklib-2.9.1.ebuild: |
37 |
Stable for alpha, wrt bug #503648 |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/cracklib/cracklib-2.9.1-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.9.1-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/cracklib/cracklib-2.9.1-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: cracklib-2.9.1-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 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.9.1-r1.ebuild,v 1.1 2014/05/29 18:42:41 mgorny Exp $ |
51 |
|
52 |
EAPI="4" |
53 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
54 |
DISTUTILS_OPTIONAL=1 |
55 |
|
56 |
inherit eutils distutils-r1 libtool multilib-minimal toolchain-funcs |
57 |
|
58 |
MY_P=${P/_} |
59 |
DESCRIPTION="Password Checking Library" |
60 |
HOMEPAGE="http://sourceforge.net/projects/cracklib" |
61 |
SRC_URI="mirror://sourceforge/cracklib/${MY_P}.tar.gz" |
62 |
|
63 |
LICENSE="LGPL-2.1" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint" |
66 |
IUSE="nls python static-libs test zlib" |
67 |
|
68 |
RDEPEND="zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )" |
69 |
DEPEND="${RDEPEND} |
70 |
python? ( |
71 |
dev-python/setuptools[${PYTHON_USEDEP}] |
72 |
test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
73 |
)" |
74 |
RDEPEND="${RDEPEND} |
75 |
abi_x86_32? ( |
76 |
!<=app-emulation/emul-linux-x86-baselibs-20140508-r6 |
77 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
78 |
)" |
79 |
|
80 |
S=${WORKDIR}/${MY_P} |
81 |
|
82 |
do_python() { |
83 |
multilib_is_native_abi || return 0 |
84 |
use python || return 0 |
85 |
pushd python > /dev/null || die |
86 |
distutils-r1_src_${EBUILD_PHASE} |
87 |
popd > /dev/null |
88 |
} |
89 |
|
90 |
pkg_setup() { |
91 |
# workaround #195017 |
92 |
if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then |
93 |
eerror "Upgrade path is broken with FEATURES=unmerge-orphans" |
94 |
eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" |
95 |
die "Please run: FEATURES=-unmerge-orphans emerge cracklib" |
96 |
fi |
97 |
} |
98 |
|
99 |
src_prepare() { |
100 |
elibtoolize #269003 |
101 |
sed -i \ |
102 |
-e 's:_cracklib.c:@srcdir@/&:' \ |
103 |
-e '/include/s:builddir:srcdir:' \ |
104 |
python/setup.py.in || die |
105 |
do_python |
106 |
} |
107 |
|
108 |
multilib_src_configure() { |
109 |
export ac_cv_header_zlib_h=$(usex zlib) |
110 |
export ac_cv_search_gzopen=$(usex zlib -lz no) |
111 |
# use /usr/lib so that the dictionary is shared between ABIs |
112 |
ECONF_SOURCE=${S} \ |
113 |
econf \ |
114 |
--with-default-dict='/usr/lib/cracklib_dict' \ |
115 |
--without-python \ |
116 |
$(use_enable nls) \ |
117 |
$(use_enable static-libs static) |
118 |
} |
119 |
|
120 |
multilib_src_compile() { |
121 |
default |
122 |
do_python |
123 |
} |
124 |
|
125 |
multilib_src_test() { |
126 |
do_python |
127 |
} |
128 |
|
129 |
python_test() { |
130 |
nosetests || die "Tests fail with ${EPYTHON}" |
131 |
} |
132 |
|
133 |
multilib_src_install() { |
134 |
default |
135 |
# move shared libs to / |
136 |
multilib_is_native_abi && gen_usr_ldscript -a crack |
137 |
|
138 |
do_python |
139 |
} |
140 |
|
141 |
multilib_src_install_all() { |
142 |
prune_libtool_files |
143 |
rm -r "${ED}"/usr/share/cracklib |
144 |
|
145 |
insinto /usr/share/dict |
146 |
doins dicts/cracklib-small || die |
147 |
} |
148 |
|
149 |
pkg_postinst() { |
150 |
if [[ ${ROOT} == "/" ]] ; then |
151 |
ebegin "Regenerating cracklib dictionary" |
152 |
create-cracklib-dict "${EPREFIX}"/usr/share/dict/* > /dev/null |
153 |
eend $? |
154 |
fi |
155 |
} |