mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-30 01:52:20 +02:00
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
# Contributor: Michael Mason <ms13sp@gmail.com>
|
|
# Maintainer: Michael Mason <ms13sp@gmail.com>
|
|
pkgname=cracklib
|
|
pkgver=2.9.6
|
|
pkgrel=0
|
|
pkgdesc="A library used to enforce strong passwords"
|
|
url="http://sourceforge.net/projects/cracklib"
|
|
arch="all"
|
|
license="LGPL2+"
|
|
depends=""
|
|
makedepends=""
|
|
install=
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/cracklib/cracklib/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$pkgname-$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 \
|
|
--without-python \
|
|
--disable-nls \
|
|
--with-default-dict \
|
|
|| return 1
|
|
make -j1 all || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make -j1 DESTDIR="$pkgdir" install || return 1
|
|
|
|
}
|
|
|
|
md5sums="c52f463585d85924b28cdc1e373ae06d cracklib-2.9.6.tar.gz"
|
|
sha256sums="17cf76943de272fd579ed831a1fd85339b393f8d00bf9e0d17c91e972f583343 cracklib-2.9.6.tar.gz"
|
|
sha512sums="2b09672e5b412d670e7ed911ebf0c0023fe2901ea05c9c02eefb7a58a13cddbc27a65d75bb20be9f8cebf4c90a9a56dfe1a3b656dff62b1d6048f5376e671786 cracklib-2.9.6.tar.gz"
|