summaryrefslogtreecommitdiffstats
path: root/net/tspc2
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-07-13 12:15:46 +0000
committerpav <pav@FreeBSD.org>2005-07-13 12:15:46 +0000
commitca12b065eedc763d740fc0e1e602aaaff8d10a2a (patch)
treef0deb0b5fd513e1f059d02c955922900e87f1d64 /net/tspc2
parent5734f87839364d08bc2af6119567dd1a119dbf13 (diff)
downloadFreeBSD-ports-ca12b065eedc763d740fc0e1e602aaaff8d10a2a.zip
FreeBSD-ports-ca12b065eedc763d740fc0e1e602aaaff8d10a2a.tar.gz
- Make PREFIX clean
PR: ports/83379 Submitted by: Linas Valiukas <shirshegsm@gmail.com> (maintainer)
Diffstat (limited to 'net/tspc2')
-rw-r--r--net/tspc2/Makefile6
-rw-r--r--net/tspc2/files/patch-conf-tspc.conf.in2
-rw-r--r--net/tspc2/files/patch-platform-freebsd-tsp_local.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/net/tspc2/Makefile b/net/tspc2/Makefile
index 9b3a1fb..8fa206a 100644
--- a/net/tspc2/Makefile
+++ b/net/tspc2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tspc2
PORTVERSION= 2.1.1
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.hexago.com/files/
DISTNAME= tspc-${PORTVERSION}-src
@@ -19,7 +20,12 @@ WRKSRC= ${WRKDIR}/tspc2
MAN5= tspc.conf.5
MAN8= tspc.8
USE_RC_SUBR= tspc2.sh
+USE_REINPLACE= yes
MAKE_ARGS= target=freebsd installdir=${PREFIX}
+post-patch:
+ @${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' ${WRKSRC}/conf/tspc.conf.in
+ @${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' ${WRKSRC}/platform/freebsd/tsp_local.c
+
.include <bsd.port.mk>
diff --git a/net/tspc2/files/patch-conf-tspc.conf.in b/net/tspc2/files/patch-conf-tspc.conf.in
index 583d21d..a862329 100644
--- a/net/tspc2/files/patch-conf-tspc.conf.in
+++ b/net/tspc2/files/patch-conf-tspc.conf.in
@@ -5,7 +5,7 @@
# from $tsp_dir/template
#
-tsp_dir=@tsp_dir@
-+tsp_dir=/usr/local/share/tspc2
++tsp_dir=PREFIX/share/tspc2
#
# authentication method:
diff --git a/net/tspc2/files/patch-platform-freebsd-tsp_local.c b/net/tspc2/files/patch-platform-freebsd-tsp_local.c
index a2b9a32..383ed1f 100644
--- a/net/tspc2/files/patch-platform-freebsd-tsp_local.c
+++ b/net/tspc2/files/patch-platform-freebsd-tsp_local.c
@@ -6,14 +6,14 @@
-char *FileName = "tspc.conf";
-char *LogFile = "tspc.log";
-+char *FileName = "/usr/local/etc/tspc.conf";
++char *FileName = "PREFIX/etc/tspc.conf";
+char *LogFile = "/var/log/tspc.log";
char *LogFileName = NULL;
char *ScriptInterpretor = "/bin/sh";
char *ScriptExtension = "sh";
char *ScriptDir = NULL;
-char *TspHomeDir = "/usr/local/etc/tsp";
-+char *TspHomeDir = "/usr/local/share/tspc2";
++char *TspHomeDir = "PREFIX/share/tspc2";
char DirSeparator = '/';
int Verbose = 0;
OpenPOWER on IntegriCloud