diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-09 09:18:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-09 09:19:33 +0000 |
commit | d7188e3a28c89c017115ab99c0108f449210c282 (patch) | |
tree | 1289bdf549702dfaa71e04a6eb1fd5163111bdf1 | |
parent | 40566bc9ad20eb4e37aaf1d157b881dc00eb71fa (diff) | |
download | aports-d7188e3a28c89c017115ab99c0108f449210c282.tar.bz2 aports-d7188e3a28c89c017115ab99c0108f449210c282.tar.xz |
testing/libpwquality: new aport
A library for password generation and password quality checking
http://libpwquality.fedorahosted.org/
-rw-r--r-- | testing/libpwquality/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/libpwquality/APKBUILD b/testing/libpwquality/APKBUILD new file mode 100644 index 0000000000..0e15387795 --- /dev/null +++ b/testing/libpwquality/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: +pkgname=libpwquality +pkgver=1.2.4 +pkgrel=0 +pkgdesc="A library for password generation and password quality checking" +url="http://libpwquality.fedorahosted.org/" +arch="all" +license="BSD or GPLv2+" +depends="" +depends_dev="cracklib-dev" +makedepends="$depends_dev python-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc py-pwquality:_py" +source="http://fedorahosted.org/releases/l/i/libpwquality/libpwquality-$pkgver.tar.bz2" + +_builddir="$srcdir"/libpwquality-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} +_py() { + pkgdesc="Python bindings for the libpwquality library" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + +md5sums="5c8b1d984a9c184fc62a4d07bb36b922 libpwquality-1.2.4.tar.bz2" +sha256sums="9ad67be364a66dc8b334a473c77d9f531137ee0e9d85d81f567f410a375857c7 libpwquality-1.2.4.tar.bz2" +sha512sums="63ead296320e8eadc1a3341c28b015f9dbbf30e610e9226a11018d81aeb412d0e211753ebdb45f959c35cedfc6ed580bba9e6b0f8822c3b5f38062428f637049 libpwquality-1.2.4.tar.bz2" |