From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B342E1396D1 for ; Sun, 27 Aug 2017 10:03:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E84E3E0EAC; Sun, 27 Aug 2017 10:03:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC628E0EAC for ; Sun, 27 Aug 2017 10:03:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 612DB34199C for ; Sun, 27 Aug 2017 10:03:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07762844B for ; Sun, 27 Aug 2017 10:03:02 +0000 (UTC) From: "Gilles Dartiguelongue" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gilles Dartiguelongue" Message-ID: <1503828172.7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8.eva@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libpwquality/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libpwquality/Manifest dev-libs/libpwquality/libpwquality-1.4.0.ebuild X-VCS-Directories: dev-libs/libpwquality/ X-VCS-Committer: eva X-VCS-Committer-Name: Gilles Dartiguelongue X-VCS-Revision: 7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8 X-VCS-Branch: master Date: Sun, 27 Aug 2017 10:03:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6297f286-c345-492f-995e-e5ef01b7ef5a X-Archives-Hash: 53c7a37d72b8ee52631ac5715456d8b0 commit: 7cc8ffe1e635b17c66c853e0dd13742d8bbeedd8 Author: Gilles Dartiguelongue gentoo org> AuthorDate: Sun Aug 27 09:43:06 2017 +0000 Commit: Gilles Dartiguelongue gentoo org> CommitDate: Sun Aug 27 10:02:52 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cc8ffe1 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 dev-libs/libpwquality/Manifest | 1 + dev-libs/libpwquality/libpwquality-1.4.0.ebuild | 77 +++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/dev-libs/libpwquality/Manifest b/dev-libs/libpwquality/Manifest index 90ca09dfb69..5d03a4ef8dc 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 00000000000..6614ebe88bc --- /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 +}