talimat 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Tanım: Web Uygulama Atak ve Denetim Aracı.
  2. # URL: http://w3af.sourceforge.net/
  3. # Paketçi: yakar (aydin@komutan.org)
  4. # Gerekler: python-pip python-gtksourceview2 python-yaml python-gtk gtk2 sqlite libxml2 libxslt yaml
  5. isim=w3af
  6. surum=1.6.54
  7. devir=1
  8. kaynak=(https://github.com/andresriancho/w3af/archive/${surum}.tar.gz
  9. w3af.desktop)
  10. derle() {
  11. cd "$SRC/w3af-$surum"
  12. # Enforce python2
  13. sed -i -e 's|#!\s*/usr/bin/python[^\d.]*$|#!/usr/bin/python2|' \
  14. -e 's|#!\s*/usr/bin/env python[^\d.]*$|#!/usr/bin/env python2|' \
  15. $(find . -name '*.py') w3af_{console,gui}
  16. # Remove dependency checks.
  17. sed -i 's/dependency_check()/#&/' w3af_{console,gui}
  18. mkdir -p "$PKG/usr/bin"
  19. mkdir -p "$PKG/usr/share/w3af"
  20. mkdir -p "$PKG/usr/share/applications"
  21. cp --no-preserve=ownership -a * "$PKG/usr/share/w3af"
  22. install -Dm644 "$SRC/w3af.desktop" "$PKG/usr/share/applications"
  23. cat > "$PKG/usr/bin/w3af" << EOF
  24. #!/bin/sh
  25. exec python2 /usr/share/w3af/w3af_console "\$@"
  26. EOF
  27. cat > "$PKG/usr/bin/w3af-gui" << EOF
  28. #!/bin/sh
  29. exec python2 /usr/share/w3af/w3af_gui "\$@"
  30. EOF
  31. chmod +x "$PKG/usr/share/w3af"/w3af_{console,gui} \
  32. "$PKG/usr/bin"/{w3af,w3af-gui}
  33. }