1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=scapy
  9. PKG_VERSION:=2.3.1
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_LICENSE_FILES:=PKG-INFO
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  14. PKG_SOURCE_URL:=https://bitbucket.org/secdev/scapy/downloads/
  15. PKG_HASH:=8972c02e39a826a10c02c2bdd5025f7251dce9589c57befd9bb55c65f02e4934
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/python/python-package.mk
  18. define Package/scapy
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Interactive packet manipulation tool and network scanner
  22. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  23. URL:=http://www.secdev.org/projects/scapy/
  24. DEPENDS:=+python
  25. endef
  26. define Package/scapy/description
  27. Scapy is a powerful interactive packet manipulation program built on top
  28. of the Python interpreter. It can be used to forge or decode packets of
  29. a wide number of protocols, send them over the wire, capture them, match
  30. requests and replies, and much more.
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/PyMod,., \
  34. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
  35. )
  36. endef
  37. define Package/scapy/install
  38. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  42. $(1)$(PYTHON_PKG_DIR)/
  43. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  44. endef
  45. $(eval $(call BuildPackage,scapy))