milis/talimatname/genel/c/cracklib/talimat

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-03-22 09:42:06 +01:00
# Description: Kullanıcı tarafından seçilen parolaları kelimeler listeleri ile karşılaştırarak parolaları zorlamak için Kütüphane
2016-02-24 01:27:23 +01:00
# URL: http://sourceforge.net/projects/cracklib/
2017-01-30 23:55:06 +01:00
# Packager: milisarge
# Depends on:
2016-02-24 01:27:23 +01:00
name=cracklib
version=2.9.6
release=1
source=(https://github.com/cracklib/cracklib/releases/download/$name-$version/$name-$version.tar.gz
https://github.com/cracklib/cracklib/releases/download/$name-$version/$name-words-2.9.6.gz)
build()
{
if [ "`uname -m`" == "x86_64" ]; then
LIB=lib64
else
LIB=lib
fi
cd $name-$version
sed -i '/skipping/d' util/packer.c
./configure --prefix=/usr \
--with-default-dict=/$LIB/cracklib/pw_dict
make
make DESTDIR=$PKG install
mkdir $PKG/$LIB
mv -v $PKG/usr/lib/libcrack.so.2* $PKG/$LIB
ln -v -sf ../../$LIB/libcrack.so.2.9.0 $PKG/usr/lib/libcrack.so
install -v -m644 -D ../cracklib-words-2.9.6.gz \
$PKG/usr/share/dict/cracklib-words.gz
gunzip -v $PKG/usr/share/dict/cracklib-words.gz
ln -v -sf cracklib-words $PKG/usr/share/dict/words
echo $(hostname) >> $PKG/usr/share/dict/cracklib-extra-words
install -v -m755 -d $PKG/lib/cracklib
echo "create-cracklib-dict usr/share/dict/cracklib-words \
usr/share/dict/cracklib-extra-words" > $PKGMK_ROOT/$name.post-install
}