aboutsummaryrefslogtreecommitdiff
path: root/net/gogoc/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/gogoc/files')
-rw-r--r--net/gogoc/files/gogoc.in32
-rw-r--r--net/gogoc/files/patch-env190
-rw-r--r--net/gogoc/files/patch-freebsd.sh10
-rw-r--r--net/gogoc/files/patch-icmp_echo_engine.c11
4 files changed, 0 insertions, 243 deletions
diff --git a/net/gogoc/files/gogoc.in b/net/gogoc/files/gogoc.in
deleted file mode 100644
index c78bb5fe283b..000000000000
--- a/net/gogoc/files/gogoc.in
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: gogoc
-# REQUIRE: NETWORK
-#
-# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
-# to enable this service:
-#
-# gogoc_enable (bool): Set to NO by default.
-# Set it to YES to enable gogoc.
-#
-# Additional configurable variables:
-# gogoc_config (path): Set to %%LOCALBASE%%/etc/gogoc.conf
-# by default.
-
-. /etc/rc.subr
-
-name="gogoc"
-rcvar=gogoc_enable
-sig_stop="HUP"
-
-command=%%LOCALBASE%%/bin/${name}
-
-load_rc_config $name
-
-: ${gogoc_enable="NO"}
-: ${gogoc_config="%%LOCALBASE%%/etc/gogoc.conf"}
-
-command_args="-f $gogoc_config"
-
-run_rc_command "$1"
-
diff --git a/net/gogoc/files/patch-env b/net/gogoc/files/patch-env
deleted file mode 100644
index fa769e653f81..000000000000
--- a/net/gogoc/files/patch-env
+++ /dev/null
@@ -1,190 +0,0 @@
---- gogoc-pal/Makefile.orig 2010-03-07 17:38:30.000000000 +0100
-+++ gogoc-pal/Makefile 2010-11-19 19:40:21.000000000 +0100
-@@ -27,11 +27,10 @@
- PLATFORM :=$(shell [ -z "$(platform)" ] && uname | tr "[A-Z]" "[a-z]" || echo "$(platform)" )
-
- SUPPORTED_PLATFORMS=linux netbsd freebsd openbsd darwin sunos gogocpe
--CC=gcc
-+CC?=gcc
--
-
- # Export these variables to sub-makes.
--export PLATFORM PLATFORM_DIR OBJS_DIR DEFS_DIR OUT_INC_DIR CC DEBUG
-+export PLATFORM PLATFORM_DIR OBJS_DIR DEFS_DIR OUT_INC_DIR DEBUG
-
-
- #
---- gogoc-tsp/src/lib/Makefile.orig 2009-11-20 17:53:36.000000000 +0100
-+++ gogoc-tsp/src/lib/Makefile 2010-11-19 19:42:39.000000000 +0100
-@@ -14,11 +14,11 @@
-
-
- ifdef DEBUG
--CFLAGS=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
-+CFLAGS+=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
- else
--CFLAGS=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
-+CFLAGS+=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
- endif
--CC=gcc
-+CC?=gcc
-
- OBJS=$(OBJS_DIR)/base64.o \
- $(OBJS_DIR)/cli.o \
---- gogoc-tsp/src/net/Makefile.orig 2009-11-20 17:53:38.000000000 +0100
-+++ gogoc-tsp/src/net/Makefile 2010-11-19 19:43:55.000000000 +0100
-@@ -14,11 +14,11 @@
-
-
- ifdef DEBUG
--CFLAGS=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
-+CFLAGS+=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
- else
--CFLAGS=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
-+CFLAGS+=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
- endif
--CC=gcc
-+CC?=gcc
-
- OBJS=$(OBJS_DIR)/net.o \
- $(OBJS_DIR)/net_rudp.o \
---- gogoc-tsp/src/tsp/Makefile.orig 2009-11-20 17:53:40.000000000 +0100
-+++ gogoc-tsp/src/tsp/Makefile 2010-11-19 19:50:22.000000000 +0100
-@@ -14,11 +14,11 @@
-
-
- ifdef DEBUG
--CFLAGS=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
-+CFLAGS+=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
- else
--CFLAGS=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
-+CFLAGS+=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
- endif
--CC=gcc
-+CC?=gcc
-
- OBJS=$(OBJS_DIR)/tsp_auth.o \
- $(OBJS_DIR)/tsp_cap.o \
---- gogoc-tsp/src/xml/Makefile.orig 2009-11-20 17:53:42.000000000 +0100
-+++ gogoc-tsp/src/xml/Makefile 2010-11-19 19:51:14.000000000 +0100
-@@ -14,11 +14,11 @@
-
-
- ifdef DEBUG
--CFLAGS=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
-+CFLAGS+=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
- else
--CFLAGS=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
-+CFLAGS+=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
- endif
--CC=gcc
-+CC?=gcc
-
- OBJS=$(OBJS_DIR)/xmlparse.o \
- $(OBJS_DIR)/xml_req.o \
---- gogoc-tsp/platform/freebsd/Makefile.orig 2009-11-20 17:53:23.000000000 +0100
-+++ gogoc-tsp/platform/freebsd/Makefile 2010-11-19 19:53:22.000000000 +0100
-@@ -13,13 +13,13 @@
- -include platform.mak
-
- ifdef DEBUG
--CFLAGS=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
--LDFLAGS=-g $(LD_LIB_PATHS) $(LD_LIBRARIES) -lcrypto -lpthread -lstdc++
-+CFLAGS+=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT -DDEBUG
-+LDFLAGS+=-g $(LD_LIB_PATHS) $(LD_LIBRARIES) -lcrypto -pthread -lstdc++
- else
--CFLAGS=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
--LDFLAGS=$(LD_LIB_PATHS) $(LD_LIBRARIES) -lcrypto -lpthread -lstdc++
-+CFLAGS+=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -D_REENTRANT
-+LDFLAGS+=$(LD_LIB_PATHS) $(LD_LIBRARIES) -lcrypto -pthread -lstdc++
- endif
--CC=gcc
-+CC?=gcc
-
- OBJS=$(OBJS_DIR)/tsp_local.o \
- $(OBJS_DIR)/tsp_tun.o
---- gogoc-tsp/platform/unix-common/Makefile.orig 2009-11-20 17:53:30.000000000 +0100
-+++ gogoc-tsp/platform/unix-common/Makefile 2010-11-19 19:53:49.000000000 +0100
-@@ -13,11 +13,11 @@
- -include $(PLATFORM_DIR)/$(PLATFORM)/platform.mak
-
- ifdef DEBUG
--CFLAGS=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -DDEBUG
-+CFLAGS+=-g -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS) -DDEBUG
- else
--CFLAGS=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS)
-+CFLAGS+=-O2 -Wall $(CC_INC_PATHS) $(PLATFORM_CFLAGS)
- endif
--CC=gcc
-+CC?=gcc
-
- OS_UNAME=os_uname.h
- OBJS=$(OBJS_DIR)/unix-main.o
---- gogoc-config/Makefile.orig 2009-11-20 17:30:23.000000000 +0100
-+++ gogoc-config/Makefile 2010-11-19 20:06:16.000000000 +0100
-@@ -23,20 +23,20 @@
- GOGOCPALLIB_DIR=$(GOGOCPAL)/out_lib
- GOGOCPALLIB=gogocpal
-
--CC=gcc
-+CC?=gcc
--CXX=g++
-+CXX?=g++
--LD=g++
-+LD?=g++
--RANLIB=ranlib
-+RANLIB?=ranlib
--AR=ar
-+AR?=ar
-
- ifdef DEBUG
--CXXFLAGS=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
--CFLAGS=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
--LDFLAGS=-g -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocconfig -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
-+CXXFLAGS+=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
-+CFLAGS+=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
-+LDFLAGS+=-g -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocconfig -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
- else
--CXXFLAGS=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
--CFLAGS=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
--LDFLAGS=-O2 -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocconfig -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
-+CXXFLAGS+=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
-+CFLAGS+=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
-+LDFLAGS+=-O2 -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocconfig -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
- endif
-
-
---- gogoc-messaging/Makefile.orig 2009-11-20 17:34:50.000000000 +0100
-+++ gogoc-messaging/Makefile 2010-11-19 20:11:29.000000000 +0100
-@@ -21,20 +21,20 @@
- GOGOCPALLIB_DIR=$(GOGOCPAL)/out_lib
- GOGOCPALLIB=gogocpal
-
--CC=gcc
-+CC?=gcc
--CXX=g++
-+CXX?=g++
--LD=g++
-+LD?=g++
--RANLIB=ranlib
-+RANLIB?=ranlib
--AR=ar
-+AR?=ar
-
- ifdef DEBUG
--CXXFLAGS=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
--CFLAGS=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
--LDFLAGS=-g -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocmessaging -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
-+CXXFLAGS+=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
-+CFLAGS+=-g -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
-+LDFLAGS+=-g -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocmessaging -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
- else
--CXXFLAGS=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
--CFLAGS=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
--LDFLAGS=-O2 -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocmessaging -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
-+CXXFLAGS+=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CXXFLAGS)
-+CFLAGS+=-O2 -I. -I$(GOGOCPALINC_DIR) -I$(GOGOCPALDEFS_DIR) -Wall -D_REENTRANT -DNDEBUG $(HACCESS_DEFINES) $(EXTRA_CFLAGS)
-+LDFLAGS+=-O2 -L$(LIB_DIR) -L$(GOGOCPALLIB_DIR) -lgogocmessaging -l$(GOGOCPALLIB) $(EXTRA_LDFLAGS)
- endif
-
-
diff --git a/net/gogoc/files/patch-freebsd.sh b/net/gogoc/files/patch-freebsd.sh
deleted file mode 100644
index e8b5b987af34..000000000000
--- a/net/gogoc/files/patch-freebsd.sh
+++ /dev/null
@@ -1,10 +0,0 @@
---- gogoc-tsp/template/freebsd.sh~ 2016-07-28 01:31:15.964503000 +0800
-+++ gogoc-tsp/template/freebsd.sh 2016-07-28 01:33:41.691541000 +0800
-@@ -212,6 +212,7 @@
- #
- # Configured tunnel config (IPv6)
-
-+ Exec $ifconfig $TSP_TUNNEL_INTERFACE inet6 -ifdisabled
- Exec $ifconfig $TSP_TUNNEL_INTERFACE inet6 $TSP_CLIENT_ADDRESS_IPV6 $TSP_SERVER_ADDRESS_IPV6 prefixlen $TSP_TUNNEL_PREFIXLEN alias
- Exec $ifconfig $TSP_TUNNEL_INTERFACE mtu 1280
- #
diff --git a/net/gogoc/files/patch-icmp_echo_engine.c b/net/gogoc/files/patch-icmp_echo_engine.c
deleted file mode 100644
index c43043f317bd..000000000000
--- a/net/gogoc/files/patch-icmp_echo_engine.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- gogoc-tsp/src/net/icmp_echo_engine.c~ 2016-07-22 15:16:32.382995000 +0800
-+++ gogoc-tsp/src/net/icmp_echo_engine.c 2016-07-22 15:16:44.244691000 +0800
-@@ -238,7 +238,7 @@
- p_engine->clbk_recv = recv_clbk;
-
- // Initialize engine socket variables.
-- p_engine->icmp_echo_id = pal_getpid();
-+ p_engine->icmp_echo_id = pal_getpid() % 65536;
- p_engine->icmp_saf = af;
- switch( p_engine->icmp_saf )
- {