summaryrefslogtreecommitdiff
path: root/net/pwnat/Makefile
blob: c0bd9a82b5fdd760c121f40d71cf0fb0922f0509 (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
PORTNAME=	pwnat
PORTVERSION=	g20171222
CATEGORIES=	net

MAINTAINER=	egypcio@FreeBSD.org
COMMENT=	NAT punching tool based on udptunnel

LICENSE=	GPLv3

ONLY_FOR_ARCHS=		amd64 i386 powerpc64 powerpc64le
ONLY_FOR_ARCHS_REASON=	Fails to patch while running in embedded systems

USES=		gmake
USE_RC_SUBR=	${PORTNAME}
USE_GITHUB=	yes
GH_ACCOUNT=	samyk
GH_TAGNAME=	5de412c

PLIST_FILES=	bin/${PORTNAME}

post-patch:
	${REINPLACE_CMD} -e 's/CC=.*/CC=${CC}/g' \
		${WRKSRC}/Makefile
	${REINPLACE_CMD} -e 's/CFLAGS=.*/CFLAGS=${CFLAGS}/g' \
		${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin
	${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>