You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

  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.4.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0
  12. PKG_LICENSE_FILES:=PKG-INFO
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/secdev/scapy/tar.gz/v$(PKG_VERSION)?
  15. PKG_HASH:=3836c62c33dd3f7c1ae30f5c2c1ab8078e4e32f5bf9c8be758dbaafe1c6a580e
  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:=https://scapy.net/
  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))