mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
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]
This commit is contained in:
parent
034ab3a1ae
commit
3f77d0bfb1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264808
@ -196,6 +196,7 @@
|
||||
SUBDIR += gnu-dico
|
||||
SUBDIR += gnu-radius
|
||||
SUBDIR += gofish
|
||||
SUBDIR += gogoc
|
||||
SUBDIR += googlecl
|
||||
SUBDIR += googolplex
|
||||
SUBDIR += gopher
|
||||
|
49
net/gogoc/Makefile
Normal file
49
net/gogoc/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# New ports collection makefile for: gogoc
|
||||
# Date created: 17 June 2010
|
||||
# Whom: Tomaž Muraus <kami@k5-storitve.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= gogoc
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= http://gogo6.com/downloads/
|
||||
DISTNAME= gogoc-1_2-RELEASE
|
||||
|
||||
MAINTAINER= kami@k5-storitve.net
|
||||
COMMENT= GogoCLIENT, connect to Freenet6 tunnel
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_RC_SUBR= gogoc
|
||||
USE_OPENSSL= yes
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
MAN5= gogoc.conf.5
|
||||
MAN8= gogoc.8
|
||||
|
||||
PORTDOCS= README CLIENT-LICENSE.TXT GUI-LICENSE.TXT
|
||||
|
||||
SUB_FILES= gogoc
|
||||
SUB_LIST= LOCALBASE=${LOCALBASE}
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}/gogoc-tsp/ && \
|
||||
${GMAKE} platform=freebsd installdir=${PREFIX} install
|
||||
${RM} ${PREFIX}/bin/gogoc.conf*
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/gogoc-tsp/bin/gogoc.conf.sample ${EXAMPLESDIR}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
.for file in ${PORTDOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
@if [ ! -f ${PREFIX}/etc/gogoc.conf ]; then \
|
||||
${TOUCH} ${PREFIX}/etc/gogoc.conf ; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/gogoc/distinfo
Normal file
2
net/gogoc/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (gogoc-1_2-RELEASE.tar.gz) = a0ef45c0bd1fc9964dc8ac059b7d78c12674bf67ef641740554e166fa99a2f49
|
||||
SIZE (gogoc-1_2-RELEASE.tar.gz) = 249286
|
31
net/gogoc/files/gogoc.in
Normal file
31
net/gogoc/files/gogoc.in
Normal file
@ -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"
|
||||
|
190
net/gogoc/files/patch-env
Normal file
190
net/gogoc/files/patch-env
Normal file
@ -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
|
||||
|
||||
|
9
net/gogoc/pkg-descr
Normal file
9
net/gogoc/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
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
|
7
net/gogoc/pkg-plist
Normal file
7
net/gogoc/pkg-plist
Normal file
@ -0,0 +1,7 @@
|
||||
bin/gogoc
|
||||
%%ETCDIR%%.conf
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gogoc.conf.sample
|
||||
template/README
|
||||
template/freebsd.sh
|
||||
@dirrm template
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
Loading…
Reference in New Issue
Block a user