mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 11:51:38 +01:00
A library for password generation and password quality checking http://libpwquality.fedorahosted.org/
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
# 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"
|