Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+6
View File
@@ -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.
+49
View File
@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.13 2013/04/13 07:55:05 ghen Exp $
DISTNAME= aiccu_20070115
PKGNAME= ${DISTNAME:S/_/-/:S/.//g}
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.sixxs.net/archive/sixxs/aiccu/unix/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.sixxs.net/tools/aiccu/
COMMENT= Automatic IPv6 Connectivity Client Utility
USE_TOOLS+= gmake
USE_FEATURES+= inet6
CHECK_PORTABILITY_SKIP+=debian/*
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,'
EXAMPLESDIR= ${PREFIX}/share/examples/aiccu
DOCDIR= ${PREFIX}/share/doc/aiccu
CONF_FILES= ${EXAMPLESDIR}/aiccu.conf ${PKG_SYSCONFDIR}/aiccu.conf
CONF_FILES_MODE= 0600
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man1 share/examples/aiccu
INSTALLATION_DIRS+= share/doc/aiccu
RCD_SCRIPTS= aiccu
.include "options.mk"
# 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 ${DESTDIR}${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/doc/aiccu.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA} ${WRKSRC}/doc/aiccu.conf ${DESTDIR}${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/LICENSE ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/COPYRIGHT ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/HOWTO ${DESTDIR}${DOCDIR}
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+9
View File
@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 18:09:20 joerg Exp $
man/man1/aiccu.1
sbin/aiccu
share/doc/aiccu/COPYRIGHT
share/doc/aiccu/HOWTO
share/doc/aiccu/LICENSE
share/doc/aiccu/README
share/examples/aiccu/aiccu.conf
share/examples/rc.d/aiccu
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.6 2007/01/18 14:42:17 ghen Exp $
SHA1 (aiccu_20070115.tar.gz) = 7b3c51bfe291c777e74b2688e9339b4fb72e6a39
RMD160 (aiccu_20070115.tar.gz) = 9415899c98c1f7e84b9711017b82a3a0ea2ae9de
Size (aiccu_20070115.tar.gz) = 70056 bytes
SHA1 (patch-ab_tunsip) = dce6b3b1a99acb0e966772b362d3e9e3a76044e2
SHA1 (patch-aa) = 373c66c6a7b6a18ad9ab453f4fddf61634e8ad04
SHA1 (patch-ac) = 105a1845883211a1c101e224c826ffcc630386fd
+19
View File
@@ -0,0 +1,19 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: aiccu.sh,v 1.2 2011/04/24 13:47:45 shattered 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"
+12
View File
@@ -0,0 +1,12 @@
# $NetBSD: options.mk,v 1.3 2011/04/15 08:15:53 obache Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.aiccu
PKG_SUPPORTED_OPTIONS= gnutls
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mgnutls)
.include "../../security/gnutls/buildlink3.mk"
CFLAGS+= -D AICCU_GNUTLS
LDFLAGS+= -lgnutls
.endif
+60
View File
@@ -0,0 +1,60 @@
$NetBSD: patch-aa,v 1.5 2007/01/18 14:42:17 ghen Exp $
--- unix-console/Makefile.orig 2007-01-15 12:04:27.000000000 +0100
+++ unix-console/Makefile
@@ -26,25 +26,12 @@ CWARNS += -W -Wall -Wshadow -Wpointer-ar
#CFLAGS += $(CWARNS) -D_GNU_SOURCE -D_DEBUG -g3 -O0
CFLAGS += $(CWARNS) -D_GNU_SOURCE
-CC = @gcc
+CC = cc
RM = rm
-# Add -O3 when nothing is specified yet
-ifeq ($(shell echo $(CFLAGS) | grep -c "\-O"),0)
-CFLAGS += -O3
-endif
-
# This is a console client
CFLAGS += -D AICCU_CONSOLE
-# GnuTLS Support ?
-# Used by TIC to secure that communication
-# Currently defaultly builds only on Linux, but other platforms might easily also support it
-ifeq ($(shell uname | grep -c "Linux"),1)
-CFLAGS += -D AICCU_GNUTLS
-LDFLAGS += -lgnutls
-endif
-
# Linux
ifeq ($(shell uname | grep -c "Linux"),1)
CFLAGS += -D_LINUX -D HAS_IFHEAD -D AICCU_TYPE="\"linux\""
@@ -72,7 +59,7 @@ endif
# DragonFlyBSD
ifeq ($(shell uname | grep -c "DragonFly"),1)
-CFLAGS += -D_DFBSD -D NEED_IFHEAD -D AICCU_TYPE="\"dragonfly\""
+CFLAGS += -D_DFBSD -DNEED_IFHEAD -DAICCU_TYPE="\"dragonfly\""
SRCS += ../common/aiccu_freebsd4.c
OBJS += ../common/aiccu_freebsd4.o
CFLAGS += -pthread
@@ -80,15 +67,15 @@ endif
# NetBSD
ifeq ($(shell uname | grep -c "NetBSD"),1)
-CFLAGS += -D_NETBSD -D AICCU_TYPE="\"kame\""
+CFLAGS += -D_NETBSD -DAICCU_TYPE="\"kame\""
# Check if net/if_tun.h has TUNSIFHEAD and enable support for it
-ifneq ($(shell grep -c TUNSIFHEAD /usr/include/net/if_tun.h 2>/dev/null),1)
+ifneq ($(shell grep -c TUNSIFHEAD /usr/include/net/if_tun.h 2>/dev/null),0)
# Supports TUNSIFHEAD -> AYIYA/l2tp available
-CFLAGS += -D NEED_IFHEAD
+CFLAGS += -DNEED_IFHEAD
else
# Doesn't support TUNSIFHEAD -> No AYIYA/l2tp available
-CFLAGS += -D NO_IFHEAD
+CFLAGS += -DNO_IFHEAD
endif
SRCS += ../common/aiccu_kame.c
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.3 2007/01/18 14:42:17 ghen Exp $
--- doc/aiccu.conf.orig 2007-01-07 18:42:29.000000000 +0100
+++ doc/aiccu.conf
@@ -12,7 +12,7 @@
# ipv6_interface is the name of the interface that will be used as a tunnel interface.
# On *BSD the ipv6_interface should be set to gifX (eg gif0) for proto-41 tunnels
# or tunX (eg tun0) for AYIYA tunnels.
-ipv6_interface sixxs
+ipv6_interface gif0
# The tunnel_id to use (default: none)
# (only required when there are multiple tunnels in the list)