talimat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Description: Kullanıcı tarafından seçilen parolaları kelimeler listeleri ile karşılaştırarak parolaları zorlamak için Kütüphane
  2. # URL: http://sourceforge.net/projects/cracklib/
  3. # Packager: milisarge
  4. # Depends on:
  5. name=cracklib
  6. version=2.9.6
  7. release=1
  8. source=(https://github.com/cracklib/cracklib/releases/download/$name-$version/$name-$version.tar.gz
  9. https://github.com/cracklib/cracklib/releases/download/$name-$version/$name-words-2.9.6.gz)
  10. build()
  11. {
  12. if [ "`uname -m`" == "x86_64" ]; then
  13. LIB=lib64
  14. else
  15. LIB=lib
  16. fi
  17. cd $name-$version
  18. sed -i '/skipping/d' util/packer.c
  19. ./configure --prefix=/usr \
  20. --with-default-dict=/$LIB/cracklib/pw_dict
  21. make
  22. make DESTDIR=$PKG install
  23. mkdir $PKG/$LIB
  24. mv -v $PKG/usr/lib/libcrack.so.2* $PKG/$LIB
  25. ln -v -sf ../../$LIB/libcrack.so.2.9.0 $PKG/usr/lib/libcrack.so
  26. install -v -m644 -D ../cracklib-words-2.9.6.gz \
  27. $PKG/usr/share/dict/cracklib-words.gz
  28. gunzip -v $PKG/usr/share/dict/cracklib-words.gz
  29. ln -v -sf cracklib-words $PKG/usr/share/dict/words
  30. echo $(hostname) >> $PKG/usr/share/dict/cracklib-extra-words
  31. install -v -m755 -d $PKG/lib/cracklib
  32. echo "create-cracklib-dict usr/share/dict/cracklib-words \
  33. usr/share/dict/cracklib-extra-words" > $PKGMK_ROOT/$name.post-install
  34. }