mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
Support staging
This commit is contained in:
parent
d43475694e
commit
926008d916
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=345868
@ -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>
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user