aboutsummaryrefslogtreecommitdiff
path: root/net/balance/Makefile
blob: 43bea1a767baba1cebc6e2405f50a3324b7217d4 (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
# New ports collection makefile for:	balance
# Date created:				Wed 6 Dec 2000
# Whom:					Joseph Scott <joseph@randomnetworks.com>
#
# $FreeBSD$
#

PORTNAME=	balance
PORTVERSION=	3.11
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR=	balance

MAINTAINER=	joseph@randomnetworks.com
COMMENT=	Simple but powerful generic tcp proxy with round robin features

ALL_TARGET=	balance
USE_REINPLACE=	yes

USE_RC_SUBR=	yes

MAN1=	balance.1

post-patch:
	${REINPLACE_CMD} -e 's|^CFLAGS|#CFLAGS|g ; \
		s|^CC|#CC|g' ${WRKSRC}/Makefile

post-build:
	@${SED} -e 's,%%RC_SUBR%%,${RC_SUBR},g' -e 's,%%PREFIX%%,${PREFIX},g' \
		${FILESDIR}/${PORTNAME}.sh >${WRKDIR}/${PORTNAME}.sh

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/balance ${PREFIX}/bin
	@${INSTALL_MAN} ${WRKSRC}/balance.1 ${PREFIX}/man/man1
	@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d/${PORTNAME}.sh

.include <bsd.port.mk>