summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2017-08-27 11:43:06 +0200
committerGilles Dartiguelongue <eva@gentoo.org>2017-08-27 12:02:52 +0200
commit7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8 (patch)
tree2f13fdcd3206809d883194dc4460ba0ff2996d8e /dev-libs/libpwquality
parentnet-dialup/moserial: version bump 3.0.10 → 3.0.11 (diff)
downloadgentoo-7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8.tar.gz
gentoo-7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8.tar.bz2
gentoo-7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8.zip
dev-libs/libpwquality: version bump 1.3.0 → 1.4.0
Project moved to github after fedorahosted shutdown. Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-libs/libpwquality')
-rw-r--r--dev-libs/libpwquality/Manifest1
-rw-r--r--dev-libs/libpwquality/libpwquality-1.4.0.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-libs/libpwquality/Manifest b/dev-libs/libpwquality/Manifest
index 90ca09dfb695..5d03a4ef8dcc 100644
--- a/dev-libs/libpwquality/Manifest
+++ b/dev-libs/libpwquality/Manifest
@@ -1 +1,2 @@
DIST libpwquality-1.3.0.tar.bz2 423910 SHA256 74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a SHA512 c3817c7a5ca962b161911b97b413a0db7c34a99ba2cd191435024abdbe060e248c0f88436f24d3992dcb1b00d34b88afb731ef1fd23efc3ad1abe56d4d7d53ea WHIRLPOOL b6451083551a13be259d1a81eb089889d9ee430c30afb2555aa2e5e7c4240febc71b152ce3c210b592a56db8988fc88a827d8e9f368c5aa478d5babf4e316b8c
+DIST libpwquality-1.4.0.tar.bz2 450384 SHA256 1de6ff046cf2172d265a2cb6f8da439d894f3e4e8157b056c515515232fade6b SHA512 b8049f8b71bbfd4d345dbd4c4cffd29e9029b0fca4c95527af54d11a3b06e4708236b630df6c66738368298679c96cb3bf26b1b5d95cb3c5f7e1073cab8a98d9 WHIRLPOOL 07a91601648f2e2404b3cc4f0d81e02e78ee12a012c2efa2843762c87f1d296fb4fe8368a6ff21adca30744eb26ec985a38f2dffa9a4f0fe3d34011e1e3c0d54
diff --git a/dev-libs/libpwquality/libpwquality-1.4.0.ebuild b/dev-libs/libpwquality/libpwquality-1.4.0.ebuild
new file mode 100644
index 000000000000..6614ebe88bc4
--- /dev/null
+++ b/dev-libs/libpwquality/libpwquality-1.4.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit eutils multilib pam python-r1 toolchain-funcs
+
+DESCRIPTION="Library for password quality checking and generating random passwords"
+HOMEPAGE="https://github.com/libpwquality/libpwquality"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="pam python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ >=sys-libs/cracklib-2.8:=
+ pam? ( virtual/pam )
+ python? ( ${PYTHON_DEPS} )
+"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.18.2
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ default
+ # ensure pkgconfig files go in /usr
+ sed -e 's:\(pkgconfigdir *=\).*:\1 '${EPREFIX}/usr/$(get_libdir)'/pkgconfig:' \
+ -i src/Makefile.{am,in} || die "sed failed"
+ use python && python_copy_sources
+}
+
+src_configure() {
+ # Install library in /lib for pam
+ configuring() {
+ local sitedir
+ econf \
+ --libdir="${EPREFIX}/$(get_libdir)" \
+ $(use_enable pam) \
+ --with-securedir="${EPREFIX}/$(getpam_mod_dir)" \
+ $(use_enable python python-bindings) \
+ $(usex python "--with-pythonsitedir=$(use python && python_get_sitedir)" "") \
+ $(use_enable static-libs static)
+ }
+ if_use_python_python_foreach_impl configuring
+}
+
+src_compile() {
+ if_use_python_python_foreach_impl default
+}
+
+src_test() {
+ if_use_python_python_foreach_impl default
+}
+
+src_install() {
+ if_use_python_python_foreach_impl default
+ if use static-libs; then
+ # Do not install static libs in /lib
+ mkdir -p "${ED}usr/$(get_libdir)"
+ mv "${ED}$(get_libdir)/libpwquality.a" "${ED}/usr/$(get_libdir)/" || die
+ gen_usr_ldscript libpwquality.so
+ fi
+ prune_libtool_files --modules
+}
+
+if_use_python_python_foreach_impl() {
+ if use python; then
+ python_foreach_impl run_in_build_dir "$@"
+ else
+ "$@"
+ fi
+}