Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2004 18:36:27 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-ports@freebsd.org
Subject:   net/sixxs-heartbeatd: call for testers
Message-ID:  <c6m97b$2v8j$1@kemoauc.mips.inka.de>

next in thread | raw e-mail | index | archive | help
This is directed at users of the SixXS IPv6 tunnel broker and the
associated "heartbeat" client.  If you don't know what I'm talking
about, skip this message.

I've wrapped the heartbeat client in a port (based on the OpenBSD
one).  Please test and report problems.

----------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sixxs-heartbeatd
#	sixxs-heartbeatd/Makefile
#	sixxs-heartbeatd/distinfo
#	sixxs-heartbeatd/pkg-descr
#	sixxs-heartbeatd/files
#	sixxs-heartbeatd/files/Makefile
#	sixxs-heartbeatd/files/patch-client_heartbeat-client.c
#	sixxs-heartbeatd/files/patch-client_heartbeat.conf
#	sixxs-heartbeatd/files/sixxs-heartbeatd.sh
#	sixxs-heartbeatd/pkg-plist
#
echo c - sixxs-heartbeatd
mkdir -p sixxs-heartbeatd > /dev/null 2>&1
echo x - sixxs-heartbeatd/Makefile
sed 's/^X//' >sixxs-heartbeatd/Makefile << 'END-of-sixxs-heartbeatd/Makefile'
X# New ports collection makefile for:   sixxs-heartbeatd
X# Date created:                2004-04-23
X# Whom:                        Christian Weisgerber <naddy@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sixxs-heartbeatd
XPORTVERSION=	20031026
XCATEGORIES=	net ipv6
XMASTER_SITES=	http://www.sixxs.net/archive/sixxs/heartbeat/unix/
XDISTNAME=	heartbeat-unix-2003-10-26
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	naddy@FreeBSD.org
XCOMMENT=	SixXS IPv6 tunnel broker heartbeat client
X
XUSE_RC_SUBR=	yes
XWRKSRC=		${WRKDIR}/heartbeat
X
Xpre-build:
X	@${CP} ${FILESDIR}/Makefile ${WRKSRC}
X	@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
X		-e 's:%%RC_SUBR%%:${RC_SUBR}:g' \
X		${FILESDIR}/sixxs-heartbeatd.sh >${WRKDIR}/sixxs-heartbeatd.sh
X
Xdo-install:
X	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
X	${INSTALL_DATA} ${WRKSRC}/client/heartbeat.conf ${EXAMPLESDIR}
X	${INSTALL_PROGRAM} ${WRKSRC}/sixxs-heartbeatd ${PREFIX}/sbin
X	${INSTALL_DATA} ${WRKSRC}/doc/draft-massar-v6ops-heartbeat-00.txt \
X		${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR}
X	${INSTALL_SCRIPT} ${WRKDIR}/sixxs-heartbeatd.sh ${PREFIX}/etc/rc.d
X
X.include <bsd.port.mk>
END-of-sixxs-heartbeatd/Makefile
echo x - sixxs-heartbeatd/distinfo
sed 's/^X//' >sixxs-heartbeatd/distinfo << 'END-of-sixxs-heartbeatd/distinfo'
XMD5 (heartbeat-unix-2003-10-26.tgz) = acd8354e0cfdf20a215d86abc44e2fdb
XSIZE (heartbeat-unix-2003-10-26.tgz) = 23786
END-of-sixxs-heartbeatd/distinfo
echo x - sixxs-heartbeatd/pkg-descr
sed 's/^X//' >sixxs-heartbeatd/pkg-descr << 'END-of-sixxs-heartbeatd/pkg-descr'
XThis is the heartbeart client for the public dynamic-IPv4
XIPv6 tunnel beta test from the SixXS tunnel service provider.
X
XWWW: http://www.sixxs.net/tools/heartbeat/
END-of-sixxs-heartbeatd/pkg-descr
echo c - sixxs-heartbeatd/files
mkdir -p sixxs-heartbeatd/files > /dev/null 2>&1
echo x - sixxs-heartbeatd/files/Makefile
sed 's/^X//' >sixxs-heartbeatd/files/Makefile << 'END-of-sixxs-heartbeatd/files/Makefile'
X# $FreeBSD$
X
X.PATH:	client common
X
XPROG=	sixxs-heartbeatd
XSRCS=	heartbeat-client.c hb.c common.c
X
XDPADD=	${LIBMD}
XLDADD=	-lmd
X
XNOMAN=	yes
X
X.include <bsd.prog.mk>
END-of-sixxs-heartbeatd/files/Makefile
echo x - sixxs-heartbeatd/files/patch-client_heartbeat-client.c
sed 's/^X//' >sixxs-heartbeatd/files/patch-client_heartbeat-client.c << 'END-of-sixxs-heartbeatd/files/patch-client_heartbeat-client.c'
X
X$FreeBSD$
X
X--- client/heartbeat-client.c.orig	Fri Apr 23 22:00:57 2004
X+++ client/heartbeat-client.c	Fri Apr 23 22:01:14 2004
X@@ -277,7 +277,7 @@
X 	if (argc != 2)
X 	{
X 		fprintf(stderr,
X-			"heartbeat-client <configfile>\n");
X+			"sixxs-heartbeatd <configfile>\n");
X 		return -1;
X 	}
X 
END-of-sixxs-heartbeatd/files/patch-client_heartbeat-client.c
echo x - sixxs-heartbeatd/files/patch-client_heartbeat.conf
sed 's/^X//' >sixxs-heartbeatd/files/patch-client_heartbeat.conf << 'END-of-sixxs-heartbeatd/files/patch-client_heartbeat.conf'
X
X$FreeBSD$
X
X--- client/heartbeat.conf.orig	Fri Apr 23 22:02:02 2004
X+++ client/heartbeat.conf	Fri Apr 23 22:02:31 2004
X@@ -12,11 +12,11 @@
X # os 'linux'
X 
X # Operating System (linux/freebsd/openbsd/netbsd/winxp)
X-os "linux"
X+os "freebsd"
X 
X # Interface the tunnel should go over
X # used for detecting the local IPv4 endpoint
X-ipv4_interface "eth0"
X+ipv4_interface "tun0"
X 
X # IPv4 address of the POP (nlams01/nlams02/nlams04/demun01/iedub01/dkcop01)
X # This is also the address to where heartbeats are sent
X@@ -39,7 +39,7 @@
X 
X # Interface to be used for the tunnel
X # will be created on the OS's that need that
X-ipv6_interface "sixxs"
X+ipv6_interface "gif0"
X 
X # The local and remote sides of the tunnel
X ipv6_pop "2001:db8::1"
END-of-sixxs-heartbeatd/files/patch-client_heartbeat.conf
echo x - sixxs-heartbeatd/files/sixxs-heartbeatd.sh
sed 's/^X//' >sixxs-heartbeatd/files/sixxs-heartbeatd.sh << 'END-of-sixxs-heartbeatd/files/sixxs-heartbeatd.sh'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: sixxs-heartbeatd
X# REQUIRE: NETWORKING
X# KEYWORD: FreeBSD
X
X#
X# Add the following lines to /etc/rc.conf to enable sixxs-heartbeatd:
X#
X#sixxs_heartbeatd_enable="YES"
X#
X
X. %%RC_SUBR%%
X
Xname=sixxs_heartbeatd
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/sixxs-heartbeatd
Xcommand_args=%%PREFIX%%/etc/heartbeat.conf
Xrequired_files=%%PREFIX%%/etc/heartbeat.conf
X
X# set default
Xsixxs_heartbeatd_enable=${sixxs_heartbeatd_enable:-"NO"}
X
Xload_rc_config ${name}
Xrun_rc_command "$1"
END-of-sixxs-heartbeatd/files/sixxs-heartbeatd.sh
echo x - sixxs-heartbeatd/pkg-plist
sed 's/^X//' >sixxs-heartbeatd/pkg-plist << 'END-of-sixxs-heartbeatd/pkg-plist'
X@comment $FreeBSD$
Xetc/rc.d/sixxs-heartbeatd.sh
Xsbin/sixxs-heartbeatd
Xshare/doc/sixxs-heartbeatd/README
Xshare/doc/sixxs-heartbeatd/draft-massar-v6ops-heartbeat-00.txt
Xshare/examples/sixxs-heartbeatd/heartbeat.conf
X@dirrm share/examples/sixxs-heartbeatd
X@dirrm share/doc/sixxs-heartbeatd
END-of-sixxs-heartbeatd/pkg-plist
exit

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6m97b$2v8j$1>