aboutsummaryrefslogtreecommitdiffstats
path: root/net/haproxy-devel/Makefile
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-06-08 18:31:00 +0800
committerclement <clement@FreeBSD.org>2004-06-08 18:31:00 +0800
commitbfe07e556129a056a4bdb4b80613d666c28ab533 (patch)
treecc3dfc527594129cda1438df55f6ac5c42a9dd29 /net/haproxy-devel/Makefile
parentf414a15ee02d9de6047cb263c099266446f341e2 (diff)
downloadfreebsd-ports-gnome-bfe07e556129a056a4bdb4b80613d666c28ab533.tar.gz
freebsd-ports-gnome-bfe07e556129a056a4bdb4b80613d666c28ab533.tar.zst
freebsd-ports-gnome-bfe07e556129a056a4bdb4b80613d666c28ab533.zip
- 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-devel/Makefile')
-rw-r--r--net/haproxy-devel/Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/net/haproxy-devel/Makefile b/net/haproxy-devel/Makefile
index c1b494546213..76d0fbdf5a0c 100644
--- a/net/haproxy-devel/Makefile
+++ b/net/haproxy-devel/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>