Added cracklib-2.8.13 templates.

--HG--
extra : convert_revision : ca664f7b42e682e2f2bbe5ffbfecb7ca704aa952
This commit is contained in:
Juan RP 2008-12-16 02:17:52 +01:00
parent 175eefe18d
commit 465a0cda99
2 changed files with 49 additions and 0 deletions

View file

@ -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 <xtraeme@gmail.com>"
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
}

28
templates/cracklib.tmpl Normal file
View file

@ -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 <xtraeme@gmail.com>"
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
}