talimat 942 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Tanım: Ağ tarama ve güvenlik denetimi programı
  2. # URL: http://insecure.org/nmap/
  3. # Paketçi: milisarge yakar
  4. # Gerekler: pcre libpcap lua liblinear python
  5. # Grup: güvenlik
  6. isim=nmap
  7. surum=7.70
  8. devir=1
  9. kaynak=(http://nmap.org/dist/$isim-$surum.tar.bz2)
  10. derle() {
  11. cd $isim-$surum
  12. export PYTHON=python2
  13. ./configure --prefix=/usr \
  14. --mandir=/usr/share/man \
  15. --localedir=/usr/share/locale \
  16. --docdir=/usr/share/doc/$isim-$surum \
  17. --with-liblua=included \
  18. --infodir=/usr/share/info
  19. make || make -j1
  20. make DESTDIR=$PKG install
  21. #zenmap için
  22. python2 -m compileall "${PKG}"/usr/lib/python2.7/site-packages/zenmapCore
  23. rm "${PKG}"/usr/bin/uninstall_*
  24. rm -rf $PKG/usr/share/info/dir
  25. # desktop
  26. mkdir -p "$PKG/usr/share/applications/"
  27. cat > $PKG/usr/share/applications/$isim.desktop << BASLA
  28. [Desktop Entry]
  29. Name=nmap
  30. Exec=sh -c "nmap;${SHELL:-bash}"
  31. Terminal=true
  32. Icon=nmap
  33. Type=Application
  34. Categories=Network;X-Komutan;
  35. Version=1.0
  36. BASLA
  37. }