aboutsummaryrefslogtreecommitdiffstats
path: root/net/tcpsg
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-24 23:29:19 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-24 23:29:19 +0800
commit88ecd2576cc4934d6ad29354e15d7da97443733a (patch)
treeb9c04e569dd51d726b23186796a2e26e7d5151c1 /net/tcpsg
parent972dedc69854dcd044b305b5cd18e5cc02ed276d (diff)
downloadfreebsd-ports-gnome-88ecd2576cc4934d6ad29354e15d7da97443733a.tar.gz
freebsd-ports-gnome-88ecd2576cc4934d6ad29354e15d7da97443733a.tar.zst
freebsd-ports-gnome-88ecd2576cc4934d6ad29354e15d7da97443733a.zip
Support staging
Diffstat (limited to 'net/tcpsg')
-rw-r--r--net/tcpsg/Makefile15
-rw-r--r--net/tcpsg/files/patch-tcpsg.c6
2 files changed, 8 insertions, 13 deletions
diff --git a/net/tcpsg/Makefile b/net/tcpsg/Makefile
index 92be3b6cf7ae..0fe5b7160960 100644
--- a/net/tcpsg/Makefile
+++ b/net/tcpsg/Makefile
@@ -9,19 +9,14 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= mich@FreeBSD.org
COMMENT= A simple TCP port forwarder
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" ${WRKSRC}/tcpsg.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/tcpsg.conf ${PREFIX}/etc/
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
- ${INSTALL_DATA} ${WRKSRC}/tcpsg.ctl ${DOCSDIR}/tcpsg.ctl
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/tcpsg.conf ${STAGEDIR}${PREFIX}/etc
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README
+ ${INSTALL_DATA} ${WRKSRC}/tcpsg.ctl ${STAGEDIR}${DOCSDIR}/tcpsg.ctl
.include <bsd.port.mk>
diff --git a/net/tcpsg/files/patch-tcpsg.c b/net/tcpsg/files/patch-tcpsg.c
index 8c50333a83a4..775235decfcc 100644
--- a/net/tcpsg/files/patch-tcpsg.c
+++ b/net/tcpsg/files/patch-tcpsg.c
@@ -1,5 +1,5 @@
---- tcpsg.c.orig Wed Oct 30 13:14:39 2002
-+++ tcpsg.c Wed Oct 30 13:41:13 2002
+--- ./tcpsg.c.orig 2002-10-25 00:00:42.000000000 +0200
++++ ./tcpsg.c 2014-02-24 16:25:44.577054255 +0100
@@ -39,8 +39,8 @@
/* Network Headers */
@@ -15,7 +15,7 @@
{
int i,j;
- i=read_config("/etc/tcpsg.conf");
-+ i=read_config("%%PREFIX%%/etc/tcpsg.conf");
++ i=read_config("/usr/local/etc/tcpsg.conf");
if (i==0)
{
for (i=0;i<main_opt.num_servers;i++)