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.

45 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2016 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:=python-pcapy
  9. PKG_VERSION:=0.11.4
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=pcapy
  12. PKG_HASH:=aa239913678d7ba116e66057a37f914de7726aecd11d00db470127df115c4e78
  13. PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
  14. PKG_LICENSE:=Apache-1.1
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/uclibc++.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. define Package/python-pcapy
  20. SECTION:=language-python
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=python-pcapy
  24. URL:=https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
  25. DEPENDS:=+python +libpcap $(CXX_DEPENDS)
  26. endef
  27. define Package/python-pcapy/description
  28. Pcapy is a Python extension module that interfaces with the libpcap packet capture library. Pcapy enables python scripts to capture packets on the network. Pcapy is highly effective when used in conjunction with a packet-handling package such as Impacket, which is a collection of Python classes for constructing and dissecting network packets.
  29. endef
  30. define Build/Compile
  31. $(call Build/Compile/PyMod,,\
  32. install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
  33. )
  34. endef
  35. $(eval $(call PyPackage,python-pcapy))
  36. $(eval $(call BuildPackage,python-pcapy))