View | Details | Raw Unified | Return to bug 83379
Collapse All | Expand All

(-)tspc2/Makefile (+6 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	tspc2
8
PORTNAME=	tspc2
9
PORTVERSION=	2.1.1
9
PORTVERSION=	2.1.1
10
PORTREVISION=	1
10
CATEGORIES=	net ipv6
11
CATEGORIES=	net ipv6
11
MASTER_SITES=	http://www.hexago.com/files/
12
MASTER_SITES=	http://www.hexago.com/files/
12
DISTNAME=	tspc-${PORTVERSION}-src
13
DISTNAME=	tspc-${PORTVERSION}-src
Lines 19-25 Link Here
19
MAN5=		tspc.conf.5
20
MAN5=		tspc.conf.5
20
MAN8=		tspc.8
21
MAN8=		tspc.8
21
USE_RC_SUBR=	tspc2.sh
22
USE_RC_SUBR=	tspc2.sh
23
USE_REINPLACE=	yes
22
24
23
MAKE_ARGS=	target=freebsd installdir=${PREFIX}
25
MAKE_ARGS=	target=freebsd installdir=${PREFIX}
26
27
post-patch:
28
	@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' ${WRKSRC}/conf/tspc.conf.in
29
	@${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|g' ${WRKSRC}/platform/freebsd/tsp_local.c
24
30
25
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)tspc2/files/patch-conf-tspc.conf.in (-1 / +1 lines)
Lines 5-11 Link Here
5
 #  from $tsp_dir/template
5
 #  from $tsp_dir/template
6
 #
6
 #
7
-tsp_dir=@tsp_dir@
7
-tsp_dir=@tsp_dir@
8
+tsp_dir=/usr/local/share/tspc2
8
+tsp_dir=PREFIX/share/tspc2
9
 
9
 
10
 #
10
 #
11
 # authentication method:
11
 # authentication method:
(-)tspc2/files/patch-platform-freebsd-tsp_local.c (-2 / +2 lines)
Lines 6-19 Link Here
6
 
6
 
7
-char *FileName  = "tspc.conf";
7
-char *FileName  = "tspc.conf";
8
-char *LogFile   = "tspc.log";
8
-char *LogFile   = "tspc.log";
9
+char *FileName  = "/usr/local/etc/tspc.conf";
9
+char *FileName  = "PREFIX/etc/tspc.conf";
10
+char *LogFile   = "/var/log/tspc.log";
10
+char *LogFile   = "/var/log/tspc.log";
11
 char *LogFileName = NULL;
11
 char *LogFileName = NULL;
12
 char *ScriptInterpretor = "/bin/sh";
12
 char *ScriptInterpretor = "/bin/sh";
13
 char *ScriptExtension = "sh";
13
 char *ScriptExtension = "sh";
14
 char *ScriptDir = NULL;
14
 char *ScriptDir = NULL;
15
-char *TspHomeDir = "/usr/local/etc/tsp";
15
-char *TspHomeDir = "/usr/local/etc/tsp";
16
+char *TspHomeDir = "/usr/local/share/tspc2";
16
+char *TspHomeDir = "PREFIX/share/tspc2";
17
 char DirSeparator = '/';
17
 char DirSeparator = '/';
18
 
18
 
19
 int Verbose = 0;
19
 int Verbose = 0;

Return to bug 83379