Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_MD5SUM:=a30d828e59801d1d092219b349f1da9e
  16. PKG_BUILD_DEPENDS:=python python-setuptools
  17. include $(INCLUDE_DIR)/package.mk
  18. $(call include_mk, python-package.mk)
  19. define Package/scapy
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Interactive packet manipulation tool and network scanner
  23. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  24. URL:=http://www.secdev.org/projects/scapy/
  25. DEPENDS:=+python
  26. endef
  27. define Package/scapy/description
  28. Scapy is a powerful interactive packet manipulation program built on top
  29. of the Python interpreter. It can be used to forge or decode packets of
  30. a wide number of protocols, send them over the wire, capture them, match
  31. requests and replies, and much more.
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/PyMod,., \
  35. install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
  36. )
  37. endef
  38. define Package/scapy/install
  39. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  43. $(1)$(PYTHON_PKG_DIR)/
  44. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  45. endef
  46. $(eval $(call BuildPackage,scapy))