summaryrefslogtreecommitdiffstats
path: root/net/haproxy/Makefile
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-06-08 10:31:00 +0000
committerclement <clement@FreeBSD.org>2004-06-08 10:31:00 +0000
commitbfe07e556129a056a4bdb4b80613d666c28ab533 (patch)
treecc3dfc527594129cda1438df55f6ac5c42a9dd29 /net/haproxy/Makefile
parentf414a15ee02d9de6047cb263c099266446f341e2 (diff)
downloadFreeBSD-ports-bfe07e556129a056a4bdb4b80613d666c28ab533.zip
FreeBSD-ports-bfe07e556129a056a4bdb4b80613d666c28ab533.tar.gz
- Update to 1.1.28
- RCng'ify startup script - small plist fix if NOPORTDOCS is defined - Add an entry in UPDATING - move configuration example to ${EXAMPLESDIR}.
Diffstat (limited to 'net/haproxy/Makefile')
-rw-r--r--net/haproxy/Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/net/haproxy/Makefile b/net/haproxy/Makefile
index c1b4945..76d0fbd 100644
--- a/net/haproxy/Makefile
+++ b/net/haproxy/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= haproxy
-PORTVERSION= 1.1.27
+PORTVERSION= 1.1.28
CATEGORIES= net www
MASTER_SITES= http://w.ods.org/tools/haproxy/src/ \
http://w.ods.org/tools/haproxy/src/old/
@@ -15,6 +15,8 @@ MAINTAINER= clement@FreeBSD.org
COMMENT= High-performance and highly-robust TCP/HTTP load balancer
USE_REINPLACE= yes
+USE_RC_SUBR= yes
+RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
STATS_INTERVAL?= 0
CFLAGS+= -DSTATTIME=${STATS_INTERVAL}
@@ -41,19 +43,27 @@ pre-fetch:
post-patch:
@${REINPLACE_CMD} -e 's!localtime(!localtime((time_t *)!' ${WRKSRC}/haproxy.c
+ @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
+ ${FILESDIR}/haproxy.sh > ${WRKDIR}/haproxy.sh
do-build:
- cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} ${PORTNAME}.c -o ${PORTNAME}
+ @cd ${WRKSRC} && \
+ ${CC} ${CFLAGS} ${LDFLAGS} ${PORTNAME}.c -o ${PORTNAME}
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/haproxy ${PREFIX}/sbin
- @${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg \
- ${PREFIX}/etc/haproxy.cfg.sample
- @${INSTALL_SCRIPT} ${FILESDIR}/haproxy.sh \
- ${PREFIX}/etc/rc.d/haproxy.sh.sample
+ @${INSTALL_SCRIPT} ${WRKDIR}/haproxy.sh \
+ ${PREFIX}/etc/rc.d/haproxy.sh
+
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/examples/haproxy.cfg \
+ ${EXAMPLESDIR}/haproxy.cfg
.endif
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
OpenPOWER on IntegriCloud