summaryrefslogtreecommitdiff
path: root/net/tcpproxy/Makefile
blob: a79b048098315a25fa83ff617107397ad52e053a (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
PORTNAME=	tcpproxy
PORTVERSION=	1.2
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://www.spreadspace.org/tcpproxy/releases/ \
		http://alex.bmg.gv.at/programs/

MAINTAINER=	alex@hugo.bmg.gv.at
COMMENT=	Simple TCP connection proxy for IPv4 and IPv6
WWW=		https://www.spreadspace.org/tcpproxy/

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/../LICENSE

BUILD_DEPENDS=	ragel:devel/ragel

USES=		gmake
HAS_CONFIGURE=	yes

USERS=	_tcpproxy
GROUPS=	_tcpproxy

USE_RC_SUBR=	tcpproxy

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}/src

PLIST_FILES=	bin/tcpproxy etc/tcpproxy_sample.conf \
		share/man/man8/tcpproxy.8.gz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/tcpproxy ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA}  ${WRKDIR}/${PORTNAME}-${PORTVERSION}/contrib/example.conf ${STAGEDIR}${PREFIX}/etc/tcpproxy_sample.conf
	${INSTALL_MAN} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc/tcpproxy.8 ${STAGEDIR}${PREFIX}/share/man/man8

.include <bsd.port.mk>