aboutsummaryrefslogtreecommitdiff
path: root/net/hping3/Makefile
blob: cbafe7d4f75f06f450ece5946e015a0203834a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Copyright (C) 2022 Alexander E. Patrakov
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Special thanks to the Debian and Fedora projects for their hping3
# packaging, elements of which (patches, list of dependencies, etc.) are
# reused here.

include $(TOPDIR)/rules.mk

PKG_NAME:=hping3
PKG_SOURCE_DATE:=2014-12-26
PKG_SOURCE_VERSION:=3547c7691742c6eaa31f8402e0ccbb81387c1b99
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/antirez/hping
PKG_MIRROR_HASH:=0d65eaa8e55ab10025fb2d615eb9567255288b3b9eb66465f54d0e1718bb80ad

PKG_MAINTAINER:=Alexander E. Patrakov <patrakov@gmail.com>
PKG_LICENSE:=GPL-2.0-only

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/hping3
	SECTION:=net
	CATEGORY:=Network
	TITLE:=Active Network Smashing Tool
	URL:=https://github.com/antirez/hping
	DEPENDS:= +libpcap
endef

define Package/hping3/description
	hping3 is a network tool able to send custom ICMP/UDP/TCP packets
	and to display target replies like ping does with ICMP replies. It
	handles fragmentation and arbitrary packet body and size, and can
	be used to transfer files under supported protocols. Using hping3,
	you can test firewall rules, perform (spoofed) port scanning, test
	network performance using different protocols, do path MTU
	discovery, perform traceroute-like actions under different
	protocols, fingerprint remote operating systems, audit TCP/IP
	stacks, etc. Tcl support is not included.
endef

define Package/hping3/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/hping3 $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,hping3))