diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-16 17:36:06 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-01-16 17:36:06 +0000 |
commit | 1e8e8f908ac8a9f0c5b03158cec0463d7cf61252 (patch) | |
tree | 2494fb40a5ad5687b11742dd3896e6e775279a10 | |
parent | 2f484ebe3fe1b3f6ad05e71364df0536ce4283e2 (diff) | |
download | packages-1e8e8f908ac8a9f0c5b03158cec0463d7cf61252.tar.gz packages-1e8e8f908ac8a9f0c5b03158cec0463d7cf61252.tar.bz2 packages-1e8e8f908ac8a9f0c5b03158cec0463d7cf61252.tar.xz packages-1e8e8f908ac8a9f0c5b03158cec0463d7cf61252.zip |
user/cracklib: new package
-rw-r--r-- | user/cracklib/APKBUILD | 47 | ||||
-rw-r--r-- | user/cracklib/cracklib.trigger | 3 |
2 files changed, 50 insertions, 0 deletions
diff --git a/user/cracklib/APKBUILD b/user/cracklib/APKBUILD new file mode 100644 index 000000000..eba2a0c49 --- /dev/null +++ b/user/cracklib/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=cracklib +pkgver=2.9.6 +pkgrel=0 +pkgdesc="Library for checking passwords against dictionary words" +url=" " +arch="all" +license="LGPL-2.0+" +depends="" +makedepends="" +subpackages="$pkgname-dev $pkgname-lang" +triggers="$pkgname.trigger=/usr/share/dict" +source="https://github.com/cracklib/cracklib/releases/download/cracklib-$pkgver/cracklib-$pkgver.tar.gz + $pkgname.trigger + " + +prepare() { + cd "$builddir" + default_prepare +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + install -D -m644 dicts/cracklib-small "$pkgdir"/usr/share/dict/cracklib-small +} + +sha512sums="2b09672e5b412d670e7ed911ebf0c0023fe2901ea05c9c02eefb7a58a13cddbc27a65d75bb20be9f8cebf4c90a9a56dfe1a3b656dff62b1d6048f5376e671786 cracklib-2.9.6.tar.gz +deef4710a3bf78348adfe699ff995acc21a7671ab03c4dd28da7f38f4a83008af4c97c9c1d4e1e98a47c0148c84146b36477f41f98fb0ee028cc0fadebb85ab9 cracklib.trigger" diff --git a/user/cracklib/cracklib.trigger b/user/cracklib/cracklib.trigger new file mode 100644 index 000000000..677155080 --- /dev/null +++ b/user/cracklib/cracklib.trigger @@ -0,0 +1,3 @@ +#!/bin/sh + +create-cracklib-dict /usr/share/dict/* |