diff options
author | Christian Weisgerber <naddy@FreeBSD.org> | 2004-05-13 12:08:05 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@FreeBSD.org> | 2004-05-13 12:08:05 +0000 |
commit | 3b874fa3421f5f33f58066524b1c580eec40e514 (patch) | |
tree | 24306e855d4aed337e8c7da3507a01ff3b5ee881 /net/sixxs-heartbeatd | |
parent | 191d4302a6861547b36b5cd96f47a7a9a99dc47b (diff) | |
download | ports-3b874fa3421f5f33f58066524b1c580eec40e514.tar.gz ports-3b874fa3421f5f33f58066524b1c580eec40e514.zip |
Notes
Diffstat (limited to 'net/sixxs-heartbeatd')
-rw-r--r-- | net/sixxs-heartbeatd/Makefile | 15 | ||||
-rw-r--r-- | net/sixxs-heartbeatd/files/patch-client_heartbeat.conf | 11 |
2 files changed, 19 insertions, 7 deletions
diff --git a/net/sixxs-heartbeatd/Makefile b/net/sixxs-heartbeatd/Makefile index 263930a553cc..1a9beb8aba44 100644 --- a/net/sixxs-heartbeatd/Makefile +++ b/net/sixxs-heartbeatd/Makefile @@ -7,6 +7,7 @@ PORTNAME= sixxs-heartbeatd PORTVERSION= 20031026 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= http://www.sixxs.net/archive/sixxs/heartbeat/unix/ DISTNAME= heartbeat-unix-2003-10-26 @@ -23,14 +24,24 @@ pre-build: @${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \ -e 's:%%RC_SUBR%%:${RC_SUBR}:g' \ ${FILESDIR}/sixxs-heartbeatd.sh >${WRKDIR}/sixxs-heartbeatd.sh + @${SED} -e 's:%%GIFCONFIG%%:${GIFCONFIG}:' \ + ${WRKSRC}/client/heartbeat.conf >${WRKDIR}/heartbeat.conf do-install: @${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/client/heartbeat.conf ${EXAMPLESDIR} ${INSTALL_PROGRAM} ${WRKSRC}/sixxs-heartbeatd ${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/doc/draft-massar-v6ops-heartbeat-00.txt \ ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/heartbeat.conf ${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKDIR}/sixxs-heartbeatd.sh ${PREFIX}/etc/rc.d -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${OSVERSION} > 501100 +GIFCONFIG= netbsd +.else +GIFCONFIG= freebsd +.endif + +.include <bsd.port.post.mk> diff --git a/net/sixxs-heartbeatd/files/patch-client_heartbeat.conf b/net/sixxs-heartbeatd/files/patch-client_heartbeat.conf index 5721ca966fe0..d358efe01a1f 100644 --- a/net/sixxs-heartbeatd/files/patch-client_heartbeat.conf +++ b/net/sixxs-heartbeatd/files/patch-client_heartbeat.conf @@ -1,14 +1,15 @@ $FreeBSD$ ---- client/heartbeat.conf.orig Fri Apr 23 22:02:02 2004 -+++ client/heartbeat.conf Fri Apr 23 22:02:31 2004 -@@ -12,11 +12,11 @@ +--- client/heartbeat.conf.orig Sun Oct 26 14:43:39 2003 ++++ client/heartbeat.conf Thu May 13 13:19:32 2004 +@@ -12,11 +12,12 @@ # os 'linux' # Operating System (linux/freebsd/openbsd/netbsd/winxp) -os "linux" -+os "freebsd" ++# Use "freebsd" for FreeBSD 4.x, "netbsd" (sic) for FreeBSD 5.x ++os "%%GIFCONFIG%%" # Interface the tunnel should go over # used for detecting the local IPv4 endpoint @@ -17,7 +18,7 @@ $FreeBSD$ # IPv4 address of the POP (nlams01/nlams02/nlams04/demun01/iedub01/dkcop01) # This is also the address to where heartbeats are sent -@@ -39,7 +39,7 @@ +@@ -39,7 +40,7 @@ # Interface to be used for the tunnel # will be created on the OS's that need that |