talimat 824 B

1234567891011121314151617181920
  1. # Tanım: Ağ protokolleriyle çalışmak için sınıfların toplanması
  2. # URL: https://github.com/CoreSecurity/impacket
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: python-crypto python-pyasn1 python-pcapy python-openssl
  5. # Grup: ağ
  6. isim=impacket
  7. surum=0.9.15
  8. devir=1
  9. kaynak=(https://github.com/CoreSecurity/impacket/releases/download/impacket_0_9_15/impacket-0.9.15.tar.gz)
  10. derle() {
  11. cd impacket-0.9.15
  12. find . -type f -exec sed -r 's|(#!/usr/bin/(env )?python)$|\12|' -i '{}' \;
  13. python setup.py install -O1 --root="${PKG}"
  14. install -Dm 644 ChangeLog -t "${PKG}/usr/share/doc/${isim}"
  15. local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
  16. ln -s "/usr/lib/python${PYTHONVERSION}/site-packages/impacket/examples" "${PKG}/usr/share/doc/${isim}/examples"
  17. }