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.

55 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2022 Alexander E. Patrakov
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. # Special thanks to the Debian and Fedora projects for their hping3
  8. # packaging, elements of which (patches, list of dependencies, etc.) are
  9. # reused here.
  10. include $(TOPDIR)/rules.mk
  11. PKG_NAME:=hping3
  12. PKG_SOURCE_DATE:=2014-12-26
  13. PKG_SOURCE_VERSION:=3547c7691742c6eaa31f8402e0ccbb81387c1b99
  14. PKG_RELEASE:=1
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_URL:=https://github.com/antirez/hping
  17. PKG_MIRROR_HASH:=0d65eaa8e55ab10025fb2d615eb9567255288b3b9eb66465f54d0e1718bb80ad
  18. PKG_MAINTAINER:=Alexander E. Patrakov <patrakov@gmail.com>
  19. PKG_LICENSE:=GPL-2.0-only
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/hping3
  24. SECTION:=net
  25. CATEGORY:=Network
  26. TITLE:=Active Network Smashing Tool
  27. URL:=https://github.com/antirez/hping
  28. DEPENDS:= +libpcap
  29. endef
  30. define Package/hping3/description
  31. hping3 is a network tool able to send custom ICMP/UDP/TCP packets
  32. and to display target replies like ping does with ICMP replies. It
  33. handles fragmentation and arbitrary packet body and size, and can
  34. be used to transfer files under supported protocols. Using hping3,
  35. you can test firewall rules, perform (spoofed) port scanning, test
  36. network performance using different protocols, do path MTU
  37. discovery, perform traceroute-like actions under different
  38. protocols, fingerprint remote operating systems, audit TCP/IP
  39. stacks, etc. Tcl support is not included.
  40. endef
  41. define Package/hping3/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hping3 $(1)/usr/sbin/
  44. endef
  45. $(eval $(call BuildPackage,hping3))