milis/talimatname/genel/c/cracklib/talimat

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: 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-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2018-08-17 13:21:19 +02:00
# Grup: kütüphane
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=cracklib
surum=2.9.6
devir=1
kaynak=(https://github.com/cracklib/cracklib/releases/download/$isim-$surum/$isim-$surum.tar.gz
https://github.com/cracklib/cracklib/releases/download/$isim-$surum/$isim-words-2.9.6.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle()
2016-02-24 01:27:23 +01:00
{
if [ "`uname -m`" == "x86_64" ]; then
LIB=lib64
else
LIB=lib
fi
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
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 \
2017-10-28 14:10:23 +02:00
usr/share/dict/cracklib-extra-words" > $PKGMK_ROOT/$isim.post-install
2016-02-24 01:27:23 +01:00
}