diff options
author | Rene Ladan <rene@FreeBSD.org> | 2010-11-19 19:44:49 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2010-11-19 19:44:49 +0000 |
commit | 3f77d0bfb109742b85245fdd9cb21e87fd34e835 (patch) | |
tree | 5f00927c2ba0bbe888f1681bf77eb53adb01a13f /net/gogoc/files | |
parent | - Update to 0.62.02 (diff) |
gogoc is gogoCLIENT, which is needed to connect to Freenet6 tunnel.
Freenet6 Tunnel is an IPv6 access service which enables thousands of people
from all over the world to experience the best solution for a smooth and
incremental deployment of IPv6. Freenet6 Tunnel users can get IPv6 connectivity
from anywhere, including from behind any NAT device or from outside of their
home network.
WWW: http://gogonet.gogo6.com/page/freenet6-services
Two similar PRs were sent for the port, take the first one with some
modifications from the second one. Tomaz will be the maintainer.
patch-env by rene@
PR: ports/147944, ports/149682
Submitted by: Tomaz Muraus [kami 5-storitve.net] , Andrey [drurus gmail.com]
Diffstat (limited to 'net/gogoc/files')
-rw-r--r-- | net/gogoc/files/gogoc.in | 31 | ||||
-rw-r--r-- | net/gogoc/files/patch-env | 190 |
2 files changed, 221 insertions, 0 deletions
diff --git a/net/gogoc/files/gogoc.in b/net/gogoc/files/gogoc.in new file mode 100644 index 000000000000..14ebd3897313 --- /dev/null +++ b/net/gogoc/files/gogoc.in @@ -0,0 +1,31 @@ +#!/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=${name}_enable + +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 new file mode 100644 index 000000000000..fa769e653f81 --- /dev/null +++ b/net/gogoc/files/patch-env @@ -0,0 +1,190 @@ +--- 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 + + |