From 465a0cda996161def177270ec9084daaf06e45ec Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 16 Dec 2008 02:17:52 +0100 Subject: [PATCH] Added cracklib-2.8.13 templates. --HG-- extra : convert_revision : ca664f7b42e682e2f2bbe5ffbfecb7ca704aa952 --- templates/cracklib-words.tmpl | 21 +++++++++++++++++++++ templates/cracklib.tmpl | 28 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 templates/cracklib-words.tmpl create mode 100644 templates/cracklib.tmpl diff --git a/templates/cracklib-words.tmpl b/templates/cracklib-words.tmpl new file mode 100644 index 00000000000..c2a11e71ce3 --- /dev/null +++ b/templates/cracklib-words.tmpl @@ -0,0 +1,21 @@ +# Template file for 'cracklib-words-en' +pkgname=cracklib-words +words_date=20080507 +version=2.8.13-${words_date} +wrksrc=$pkgname +distfiles="$SOURCEFORGE_SITE/cracklib/$pkgname-${words_date}.gz" +build_style=custom-install +short_desc="English Dictionary words for cracklib" +maintainer="Juan RP " +checksum=e0c7f452c1fd80d551ae4a7d1afa7fa19cbf47c2d6d5dafc1255c1e76502cb71 +long_desc=" + This package includes the words of the english dictionary for the Password + Checking Library cracklib." + +do_install() +{ + local destdir=$XBPS_DESTDIR/$pkgname-$version + + install -d $destdir/usr/share/dict + install $wrksrc/$pkgname-${words_date} $destdir/usr/share/dict/$pkgname +} diff --git a/templates/cracklib.tmpl b/templates/cracklib.tmpl new file mode 100644 index 00000000000..09a3b00c5cf --- /dev/null +++ b/templates/cracklib.tmpl @@ -0,0 +1,28 @@ +# Template file for 'cracklib' +pkgname=cracklib +version=2.8.13 +distfiles="$SOURCEFORGE_SITE/cracklib/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--without-python" +make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version install" +short_desc="Password Checking Library" +maintainer="Juan RP " +checksum=0a06caff3626c397d023f0c19efedfea295180c2c5ba2def57016a17e158041a +long_desc=" + cracklib is a password checking library. It can check a given password + against a dictionary file to find weak passwords (vulnerable to + dictionary attacks)." + +run_depends="glibc-2.8 zlib-1.2.3" + +post_install() +{ + local destdir=$XBPS_DESTDIR/$pkgname-$version + + # Create default small wordlist. + cd $wrksrc || exit 1 + install -v -D dicts/cracklib-small \ + $destdir/usr/share/dict/cracklib-small + sh ./util/cracklib-format dicts/cracklib-small \ + | sh ./util/cracklib-packer $destdir/usr/share/cracklib/pw_dict +}