summaryrefslogtreecommitdiff
path: root/net/hping/Makefile
blob: a60662cc436dd0d5423ba15234e802fcd07e42cb (plain) (blame)
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
# Created by: Roman Shterenzon <roman@xpert.com>

PORTNAME=	hping
PORTVERSION=	2.0.0r3
PORTREVISION=	2
PORTEPOCH=	1
CATEGORIES=	net security
MASTER_SITES=	http://www.hping.org/ \
		http://200ok.org/distfiles/hping/
DISTNAME=	hping2.0.0-rc3

MAINTAINER=	ecu@200ok.org
COMMENT=	Network auditing tool

DEPRECATED=	Deprecated upstream, please consider using net/hping3 instead
EXPIRATION_DATE=2022-03-31

CONFLICTS=	hping-devel

WRKSRC=		${WRKDIR}/hping2-rc3

BROKEN_aarch64=	fails to build: cannot find the byte order for this architecture, fix bytesex.h
BROKEN_riscv64=	fails to build: cannot find the byte order for this architecture, fix bytesex.h

USES=		gmake
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--force-libpcap

PLIST_FILES=	sbin/hping man/man8/hping.8.gz
PORTDOCS=	AS-BACKDOOR HPING2-HOWTO.txt HPING2-IS-OPEN \
		MORE-FUN-WITH-IPID SPOOFED_SCAN.txt APD.txt

OPTIONS_DEFINE=	DOCS

EXTRA_PATCHES=	${FILESDIR}/extra-patch-sendip.c

post-patch:
	@${REINPLACE_CMD} -e '/^struct ars_layer_info ars_linfo/d' \
		${WRKSRC}/ars.h
	@${REINPLACE_CMD} -e '/^volatile struct delaytable_element/d' \
		${WRKSRC}/hping2.h

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${STAGEDIR}${PREFIX}/sbin/hping
	${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 \
		${STAGEDIR}${MANPREFIX}/man/man8/hping.8
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>