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.

46 lines
1.4 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. PKG_SOURCE:=pcapy-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pcapy
  13. PKG_HASH:=aa239913678d7ba116e66057a37f914de7726aecd11d00db470127df115c4e78
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/pcapy-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
  16. PKG_LICENSE:=Apache-1.1
  17. include $(INCLUDE_DIR)/uclibc++.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. define Package/python-pcapy
  21. SECTION:=language-python
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=python-pcapy
  25. URL:=https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
  26. DEPENDS:=+python +libpcap $(CXX_DEPENDS)
  27. endef
  28. define Package/python-pcapy/description
  29. 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.
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/PyMod,,\
  33. install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
  34. )
  35. endef
  36. $(eval $(call PyPackage,python-pcapy))
  37. $(eval $(call BuildPackage,python-pcapy))