summaryrefslogtreecommitdiff
path: root/core/cracklib/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/cracklib/PKGBUILD')
-rw-r--r--core/cracklib/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/core/cracklib/PKGBUILD b/core/cracklib/PKGBUILD
new file mode 100644
index 000000000..fb91d8651
--- /dev/null
+++ b/core/cracklib/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 106685 2011-01-17 20:46:24Z tpowa $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: Federico Quagliata (quaqo) <quaqo@despammed.com>
+
+pkgname=cracklib
+pkgver=2.8.18
+pkgrel=1
+pkgdesc="Password Checking Library"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://sourceforge.net/projects/cracklib"
+depends=('glibc' 'zlib')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('79053ad8bc714a44cd660cb12116211b')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr --without-python
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
+ install -Dm644 dicts/cracklib-small $pkgdir/usr/share/dict/cracklib-small
+ sh ./util/cracklib-format dicts/cracklib-small \
+ | sh ./util/cracklib-packer $pkgdir/usr/share/cracklib/pw_dict
+}