PKGBUILDs/core/cracklib/PKGBUILD
2009-09-26 10:21:59 -05:00

26 lines
787 B
Bash

# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=cracklib
pkgver=2.8.13
pkgrel=1
pkgdesc="Password Checking Library"
arch=(arm)
license=('GPL')
url="http://sourceforge.net/projects/cracklib"
groups=('base')
depends=()
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('5beb4c6b3c31c83fc98c4c225b25cd94')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt --without-python
make || return 1
mkdir -p $startdir/pkg/opt/share/dict
make DESTDIR=$startdir/pkg install
cp dicts/cracklib-small $startdir/pkg/opt/share/dict
sh ./util/cracklib-format dicts/cracklib-small \
| sh ./util/cracklib-packer $startdir/pkg/opt/share/cracklib/pw_dict
}