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.

48 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_MIRROR_HASH:=05c8d6978baa3512070ff4c041e5931384e702bbc2ac2c8063760176035958f1
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_URL:=https://github.com/CoreSecurity/pcapy.git
  17. PKG_SOURCE_VERSION:=b91a418374d1636408c435f11799ef725ef70097
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. PKG_BUILD_DEPENDS:=python python-setuptools
  20. include $(INCLUDE_DIR)/package.mk
  21. $(call include_mk, python-package.mk)
  22. define Package/python-pcapy
  23. SECTION:=language-python
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=python-pcapy
  27. URL:=https://www.coresecurity.com/corelabs-research/open-source-tools/pcapy
  28. DEPENDS:=+python +libpcap +libstdcpp
  29. endef
  30. define Package/python-pcapy/description
  31. 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.
  32. endef
  33. define Build/Compile
  34. $(call Build/Compile/PyMod,,\
  35. install --prefix=/usr --root="$(PKG_INSTALL_DIR)" \
  36. )
  37. endef
  38. $(eval $(call PyPackage,python-pcapy))
  39. $(eval $(call BuildPackage,python-pcapy))