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.

47 lines
1.5 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.1
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Andrew McConachie <andrew@depht.com>
  12. PKG_LICENSE:=Apache-1.1
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/CoreSecurity/pcapy.git
  16. PKG_SOURCE_VERSION:=b91a418374d1636408c435f11799ef725ef70097
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_BUILD_DEPENDS:=python python-setuptools
  19. include $(INCLUDE_DIR)/package.mk
  20. $(call include_mk, python-package.mk)
  21. define Package/python-pcapy
  22. SECTION:=language-python
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=python-pcapy
  26. URL:=https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
  27. DEPENDS:=+python +libpcap +libstdcpp
  28. endef
  29. define Package/python-pcapy/description
  30. 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.
  31. endef
  32. define Build/Compile
  33. $(call Build/Compile/PyMod,,\
  34. install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
  35. )
  36. endef
  37. $(eval $(call PyPackage,python-pcapy))
  38. $(eval $(call BuildPackage,python-pcapy))