diff options
author | ghen <ghen@pkgsrc.org> | 2005-12-29 14:53:52 +0000 |
---|---|---|
committer | ghen <ghen@pkgsrc.org> | 2005-12-29 14:53:52 +0000 |
commit | e6c109b4dc9c5206331a81a988c6cae9f543b7e5 (patch) | |
tree | fea89c2ddcf4640df2f804f1231a6dbb60b105db /net/aiccu | |
parent | fc16dc362af4cbe79760eb57fce0d2a673e6e398 (diff) | |
download | pkgsrc-e6c109b4dc9c5206331a81a988c6cae9f543b7e5.tar.gz |
Import net/aiccu, ok'ed by wiz.
AICCU (Automatic IPv6 Connectivity Client Utility) makes it easy for users to
get IPv6 connectivity via SixXs. After having requested an account, tunnel and
optionally a subnet, AICCU can be used to automatically configure the tunnel.
AICCU supports TIC (Tunnel Information & Control protocol), which it uses for
retrieving the tunnel configuration information, AYIYA, which allows tunnels to
be created even behind firewalls and NATs.
Diffstat (limited to 'net/aiccu')
-rw-r--r-- | net/aiccu/DESCR | 6 | ||||
-rw-r--r-- | net/aiccu/Makefile | 45 | ||||
-rw-r--r-- | net/aiccu/PLIST | 10 | ||||
-rw-r--r-- | net/aiccu/distinfo | 8 | ||||
-rw-r--r-- | net/aiccu/files/aiccu.sh | 19 | ||||
-rw-r--r-- | net/aiccu/patches/patch-aa | 33 | ||||
-rw-r--r-- | net/aiccu/patches/patch-ab | 18 | ||||
-rw-r--r-- | net/aiccu/patches/patch-ac | 13 |
8 files changed, 152 insertions, 0 deletions
diff --git a/net/aiccu/DESCR b/net/aiccu/DESCR new file mode 100644 index 00000000000..840cbf7317e --- /dev/null +++ b/net/aiccu/DESCR @@ -0,0 +1,6 @@ +AICCU (Automatic IPv6 Connectivity Client Utility) makes it easy for users to +get IPv6 connectivity via SixXs. After having requested an account, tunnel and +optionally a subnet, AICCU can be used to automatically configure the tunnel. +AICCU supports TIC (Tunnel Information & Control protocol), which it uses for +retrieving the tunnel configuration information, AYIYA, which allows tunnels to +be created even behind firewalls and NATs. diff --git a/net/aiccu/Makefile b/net/aiccu/Makefile new file mode 100644 index 00000000000..c7f5ba26ddd --- /dev/null +++ b/net/aiccu/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ + +DISTNAME= aiccu_2005.01.31 +PKGNAME= ${DISTNAME:S/_/-/:S/.//g} +CATEGORIES= net +MASTER_SITES= http://www.sixxs.net/archive/sixxs/aiccu/unix/ + +MAINTAINER= ghen@NetBSD.org +COMMENT= Automatic IPv6 Connectivity Client Utility +HOMEPAGE= http://www.sixxs.net/tools/aiccu/ + +BUILD_DIRS= unix-console + +USE_TOOLS+= gmake + +SUBST_CLASSES+= sysconfdir +SUBST_STAGE.sysconfdir= post-patch +SUBST_FILES.sysconfdir= common/aiccu.h +SUBST_SED.sysconfdir= -e 's,/etc/aiccu.conf,${PKG_SYSCONFDIR}/aiccu.conf,' + +USE_PKGINSTALL= yes +EXAMPLESDIR= ${PREFIX}/share/examples/aiccu +DOCDIR= ${PREFIX}/share/doc/aiccu +CONF_FILES= ${EXAMPLESDIR}/aiccu.conf ${PKG_SYSCONFDIR}/aiccu.conf +CONF_FILES_MODE= 0600 + +RCD_SCRIPTS= aiccu + +# the distfile untars as ${WRKDIR}/aiccu/ but this would conflict with the +# rc.d script that gets copied to the same name ${WRKDIR}/${RCD_SCRIPTS} +post-extract: + ${MV} ${WRKDIR}/aiccu ${WRKDIR}/${DISTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/unix-console/aiccu ${PREFIX}/sbin/ + ${INSTALL_MAN} ${WRKSRC}/doc/aiccu.1 ${PREFIX}/${PKGMANDIR}/man1/ + ${INSTALL_DATA_DIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/aiccu.conf ${EXAMPLESDIR}/ + ${INSTALL_DATA_DIR} ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/LICENSE ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/HOWTO ${DOCDIR} + +.include "../../mk/pthread.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/aiccu/PLIST b/net/aiccu/PLIST new file mode 100644 index 00000000000..f63533feb9c --- /dev/null +++ b/net/aiccu/PLIST @@ -0,0 +1,10 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ +man/man1/aiccu.1 +sbin/aiccu +share/doc/aiccu/HOWTO +share/doc/aiccu/LICENSE +share/doc/aiccu/README +share/examples/aiccu/aiccu.conf +share/examples/rc.d/aiccu +@dirrm share/examples/aiccu +@dirrm share/doc/aiccu diff --git a/net/aiccu/distinfo b/net/aiccu/distinfo new file mode 100644 index 00000000000..8db00ab357e --- /dev/null +++ b/net/aiccu/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ + +SHA1 (aiccu_2005.01.31.tar.gz) = 2d3e9e1844e7e2b2ae144b00974a9d1022b45396 +RMD160 (aiccu_2005.01.31.tar.gz) = 48f9508bb62984acc8cde8419765c5003a7200f4 +Size (aiccu_2005.01.31.tar.gz) = 45672 bytes +SHA1 (patch-aa) = 0fcff412c044961724d227bdfdd91f81b1b0c059 +SHA1 (patch-ab) = f1c48fd4698ee203ac3c2d7685b0b853abb4e54b +SHA1 (patch-ac) = 8c35c669e05e9100489126ad8d0ebd164d5ad09a diff --git a/net/aiccu/files/aiccu.sh b/net/aiccu/files/aiccu.sh new file mode 100644 index 00000000000..512a8e5de5d --- /dev/null +++ b/net/aiccu/files/aiccu.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $NetBSD: aiccu.sh,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ +# + +# PROVIDE: aiccu +# REQUIRE: NETWORKING + +$_rc_subr_loaded . /etc/rc.subr + +name="aiccu" +rcvar=${name} +command="@PREFIX@/sbin/${name}" +required_files="@PKG_SYSCONFDIR@/${name}.conf" +command_args="start" +stop_command="${command} stop" + +load_rc_config $name +run_rc_command "$1" diff --git a/net/aiccu/patches/patch-aa b/net/aiccu/patches/patch-aa new file mode 100644 index 00000000000..d5ece27184e --- /dev/null +++ b/net/aiccu/patches/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ + +--- unix-console/Makefile.orig 2005-01-31 19:59:30.000000000 +0100 ++++ unix-console/Makefile +@@ -15,11 +15,11 @@ INCS = ../common/aiccu.h ../common/hash_ + OBJS = main.o ../common/aiccu.o ../common/hash_md5.o ../common/hash_sha1.o ../common/common.o ../common/heartbeat.o ../common/tic.o ../common/ayiya.o ../common/aiccu_test.o + CWARNS = -pedantic -W -Wall -Wshadow -Wcast-align + #CFLAGS += $(CWARNS) -D_GNU_SOURCE -D_DEBUG -g3 -O0 +-CFLAGS += $(CWARNS) -D_GNU_SOURCE -O3 ++CFLAGS += $(CWARNS) -D_GNU_SOURCE + CC = gcc + RM = rm + +-CFLAGS += -D AICCU_CONSOLE ++CFLAGS += -DAICCU_CONSOLE + + # Linux + ifeq ($(shell uname | grep -c "Linux"),1) +@@ -49,6 +49,14 @@ CFLAGS += -pthread + endif + endif + ++# DragonFly ++ifeq ($(shell uname | grep -c "DragonFly"),1) ++CFLAGS += -D AICCU_TYPE="\"freebsd4\"" ++SRCS += ../common/aiccu_freebsd4.c ++OBJS += ../common/aiccu_freebsd4.o ++CFLAGS += -pthread ++endif ++ + # NetBSD + ifeq ($(shell uname | grep -c "NetBSD"),1) + CFLAGS += -D AICCU_TYPE="\"kame\"" diff --git a/net/aiccu/patches/patch-ab b/net/aiccu/patches/patch-ab new file mode 100644 index 00000000000..cd8cba17dc2 --- /dev/null +++ b/net/aiccu/patches/patch-ab @@ -0,0 +1,18 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ + +Patch from https://noc.sixxs.net/forum/?msg=setup-219655 +This will be included in the next aiccu release. + +--- common/common.h.orig 2005-01-31 21:32:50.000000000 +0100 ++++ common/common.h +@@ -24,6 +24,10 @@ + #endif + #define __STRICT_ANSI__ + ++#ifdef __NetBSD__ ++#define _NETBSD_SOURCE ++#endif ++ + #include <stdio.h> + #include <errno.h> + #include <stdarg.h> diff --git a/net/aiccu/patches/patch-ac b/net/aiccu/patches/patch-ac new file mode 100644 index 00000000000..67e6aa63d81 --- /dev/null +++ b/net/aiccu/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/12/29 14:53:52 ghen Exp $ + +--- doc/aiccu.conf.orig 2005-01-09 17:15:19.000000000 +0100 ++++ doc/aiccu.conf +@@ -6,7 +6,7 @@ + + # Interface names to use + ipv4_interface eth0 +-ipv6_interface sixxs ++ipv6_interface gif0 + + # The tunnel_id to use + # (only required when there are multiple tunnels in the list) |