summaryrefslogtreecommitdiff
path: root/net/rtg/Makefile
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2010-08-04 10:30:14 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2010-08-04 10:30:14 +0000
commitc027c76d6f8aef8d8998a91411b1ebb976614854 (patch)
tree93a0e8b3620f133726635b46dcba52816f3543b0 /net/rtg/Makefile
parent1b47901e7935a938edfc1b13ba9812cac1ab76b8 (diff)
Notes
Diffstat (limited to 'net/rtg/Makefile')
-rw-r--r--net/rtg/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/rtg/Makefile b/net/rtg/Makefile
index 27eb83e6486e..dcf06af303f2 100644
--- a/net/rtg/Makefile
+++ b/net/rtg/Makefile
@@ -7,7 +7,7 @@
PORTNAME= rtg
PORTVERSION= 0.7.4
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= net
MASTER_SITES= SF
@@ -27,7 +27,7 @@ CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/${PORTNAME} \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 800040
+.if ( ${OSVERSION} >= 800040 )
CFLAGS+= -fstack-protector
LDFLAGS+= -fstack-protector
.endif
@@ -35,4 +35,11 @@ LDFLAGS+= -fstack-protector
pre-configure:
@${REINPLACE_CMD} -e 's,-pthread,${PTHREAD_LIBS},g' ${WRKSRC}/configure
+post-patch:
+ @${MV} ${WRKSRC}/etc/rtg.conf ${WRKSRC}/etc/rtg.conf.sample
+ @${MV} ${WRKSRC}/etc/routers ${WRKSRC}/etc/routers.sample
+
+post-install:
+ @${ECHO} "To enable the web interface, copy ${PREFIX}/bin/rtgplot to your site cgi-bin as rtgplot.cgi"
+
.include <bsd.port.post.mk>