summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-12-05 08:54:27 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-12-05 08:54:27 +0000
commiteb4d525c47e899340d1e7b7a30ad917ecfb9ee87 (patch)
treebd6055277680d75b2d99174ecf88b760a86bbf9b /dev-libs/libpwquality
parentSpecify LICENSE more precisely, bug 445468. (diff)
downloadgentoo-2-eb4d525c47e899340d1e7b7a30ad917ecfb9ee87.tar.gz
gentoo-2-eb4d525c47e899340d1e7b7a30ad917ecfb9ee87.tar.bz2
gentoo-2-eb4d525c47e899340d1e7b7a30ad917ecfb9ee87.zip
Install pam module and library under /lib, not /usr/lib (bug #445394, thanks to Reto Gantenbein (ganto)). Update to EAPI5.
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
Diffstat (limited to 'dev-libs/libpwquality')
-rw-r--r--dev-libs/libpwquality/ChangeLog9
-rw-r--r--dev-libs/libpwquality/libpwquality-1.2.0-r1.ebuild54
2 files changed, 62 insertions, 1 deletions
diff --git a/dev-libs/libpwquality/ChangeLog b/dev-libs/libpwquality/ChangeLog
index 9cccfb976927..c4058c45007a 100644
--- a/dev-libs/libpwquality/ChangeLog
+++ b/dev-libs/libpwquality/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/libpwquality
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpwquality/ChangeLog,v 1.2 2012/08/24 22:00:37 tetromino Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpwquality/ChangeLog,v 1.3 2012/12/05 08:54:27 tetromino Exp $
+
+*libpwquality-1.2.0-r1 (05 Dec 2012)
+
+ 05 Dec 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
+ +libpwquality-1.2.0-r1.ebuild:
+ Install pam module and library under /lib, not /usr/lib (bug #445394, thanks
+ to Reto Gantenbein (ganto)). Update to EAPI5.
24 Aug 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
libpwquality-1.2.0.ebuild:
diff --git a/dev-libs/libpwquality/libpwquality-1.2.0-r1.ebuild b/dev-libs/libpwquality/libpwquality-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..3badd773bf41
--- /dev/null
+++ b/dev-libs/libpwquality/libpwquality-1.2.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpwquality/libpwquality-1.2.0-r1.ebuild,v 1.1 2012/12/05 08:54:27 tetromino Exp $
+
+EAPI="5"
+PYTHON_DEPEND="python? 2:2.7"
+
+inherit eutils multilib pam python
+
+DESCRIPTION="Library for password quality checking and generating random passwords"
+HOMEPAGE="https://fedorahosted.org/libpwquality/"
+SRC_URI="https://fedorahosted.org/releases/l/i/${PN}/${P}.tar.bz2"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pam python static-libs"
+
+RDEPEND=">=sys-libs/cracklib-2.8
+ pam? ( virtual/pam )"
+DEPEND="${RDEPEND}
+ sys-devel/libtool
+ virtual/pkgconfig"
+
+pkg_setup() {
+ if use python; then
+ python_set_active_version 2
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ # ensure pkgconfig files go in /usr
+ sed -e 's:\(pkgconfigdir *=\).*:\1 '${EPREFIX}/usr/$(get_libdir)'/pkgconfig:' \
+ -i src/Makefile.{am,in} || die "sed failed"
+}
+
+src_configure() {
+ # Install library in /lib for pam
+ local sitedir
+ use python && sitedir="${EPREFIX}$(python_get_sitedir)"
+ econf \
+ --libdir="${EPREFIX}/$(get_libdir)" \
+ $(use_enable pam) \
+ --with-securedir="${EPREFIX}/$(getpam_mod_dir)" \
+ $(use_enable python python-bindings) \
+ --with-pythonsitedir="${sitedir}" \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}