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

(-)gogoc/Makefile (-6 / +5 lines)
Lines 3-14 Link Here
3
3
4
PORTNAME=	gogoc
4
PORTNAME=	gogoc
5
PORTVERSION=	1.2
5
PORTVERSION=	1.2
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	net ipv6
7
CATEGORIES=	net ipv6
8
MASTER_SITES=	http://gogo6.com/downloads/
8
MASTER_SITES=	http://ghsng.tongi.org/files/
9
DISTNAME=	gogoc-1_2-RELEASE
9
DISTNAME=	gogoc-1_2-RELEASE
10
10
11
MAINTAINER=	kami@k5-storitve.net
11
MAINTAINER=	clive@tongi.org
12
COMMENT=	GogoCLIENT, connect to Freenet6 tunnel
12
COMMENT=	GogoCLIENT, connect to Freenet6 tunnel
13
13
14
USES=		gmake ssl
14
USES=		gmake ssl
Lines 25-33 Link Here
25
25
26
.include <bsd.port.options.mk>
26
.include <bsd.port.options.mk>
27
27
28
.if ${SSL_DEFAULT} == base
28
.if ${OSVERSION} >= 1200085
29
BROKEN_FreeBSD_12=	incomplete definition of type 'struct dsa_st'
29
CFLAGS+=	-DNO_OPENSSL
30
BROKEN_FreeBSD_13=	incomplete definition of type 'struct dsa_st'
31
.endif
30
.endif
32
31
33
do-install:
32
do-install:
(-)gogoc/files/patch-freebsd.sh (-3 / +34 lines)
Lines 1-6 Link Here
1
--- gogoc-tsp/template/freebsd.sh~	2016-07-28 01:31:15.964503000 +0800
1
--- gogoc-tsp/template/freebsd.sh~	2010-03-08 03:31:17.000000000 +0800
2
+++ gogoc-tsp/template/freebsd.sh	2016-07-28 01:33:41.691541000 +0800
2
+++ gogoc-tsp/template/freebsd.sh	2019-09-26 19:02:20.914958000 +0800
3
@@ -212,6 +212,7 @@
3
@@ -76,6 +76,7 @@
4
 ifconfig=/sbin/ifconfig
5
 route=/sbin/route
6
 rtadvd=/usr/sbin/rtadvd
7
+rtadvctl=/usr/sbin/rtadvctl
8
 sysctl=/sbin/sysctl
9
 # find the release rel=4 for freebsd4.X, =5 for freebsd5.X
10
 rel=`/usr/bin/uname -r | cut -f1 -d"."`
11
@@ -125,11 +126,13 @@
12
       ExecNoCheck $route delete -inet6 $TSP_PREFIX:: -prefixlen $TSP_PREFIXLEN -interface lo0
13
     fi
14
 
15
+    # Kill router advertisement daemon gracefully (shutdown command)
16
+    $rtadvctl shutdown
17
+    # 10 seconds enough for shutdown gracefully
18
+    sleep 10
19
+
20
     # Remove static IPv6 address
21
     ExecNoCheck $ifconfig $TSP_HOME_INTERFACE inet6 $TSP_PREFIX::1 delete
22
-
23
-    # Kill router advertisement daemon gracefully (SIGTERM)
24
-    KillProcess rtadvd
25
   fi
26
 
27
   # Delete any routes
28
@@ -207,11 +210,13 @@
29
       do 
30
         Exec $ifconfig $TSP_TUNNEL_INTERFACE inet6 $ipv6address delete
31
       done
32
+      sleep $(($($sysctl -n net.inet6.ip6.dad_count) + 1))
33
       Exec $ifconfig $TSP_TUNNEL_INTERFACE up
34
       fi
4
       #
35
       #
5
       # Configured tunnel config (IPv6) 
36
       # Configured tunnel config (IPv6) 
6
 	
37
 	
(-)gogoc/files/patch-gogoc.conf.in (+29 lines)
Line 0 Link Here
1
--- gogoc-tsp/conf/gogoc.conf.in~	2018-12-05 16:16:00.916968000 +0800
2
+++ gogoc-tsp/conf/gogoc.conf.in	2018-12-05 16:16:23.103639000 +0800
3
@@ -224,7 +224,7 @@
4
 #
5
 #   broker_list=<file_name>
6
 #  
7
-broker_list=tsp-broker-list.txt
8
+broker_list=/var/run/tsp-broker-list.txt
9
 
10
 #
11
 # Last Server Used File Name:
12
@@ -234,7 +234,7 @@
13
 #
14
 #   last_server=<file_name>
15
 #
16
-last_server=tsp-last-server.txt
17
+last_server=/var/run/tsp-last-server.txt
18
 
19
 #
20
 # Always Use Last Known Working Server:
21
@@ -294,7 +294,7 @@
22
 #
23
 #   log_filename=<file_name>
24
 #
25
-log_filename=gogoc.log
26
+log_filename=/var/log/gogoc.log
27
 
28
 #
29
 # Log File Rotation:

Return to bug 240878