aboutsummaryrefslogtreecommitdiffstats
path: root/net/sixxs-heartbeatd/Makefile
blob: 0a3c6d0288eceeb4db835eabc08690bdaa8b83db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:   sixxs-heartbeatd
# Date created:                2004-04-23
# Whom:                        Christian Weisgerber <naddy@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   sixxs-heartbeatd
PORTVERSION=    20031026
PORTREVISION=   2
CATEGORIES= net ipv6
MASTER_SITES=   http://www.sixxs.net/archive/sixxs/heartbeat/unix/
DISTNAME=   heartbeat-unix-2003-10-26
EXTRACT_SUFX=   .tgz

MAINTAINER= naddy@FreeBSD.org
COMMENT=    SixXS IPv6 tunnel broker heartbeat client

USE_RC_SUBR=    yes
WRKSRC=     ${WRKDIR}/heartbeat

pre-build:
    @${CP} ${FILESDIR}/Makefile ${WRKSRC}
    @${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_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.pre.mk>

.if ${OSVERSION} > 501100
GIFCONFIG=  netbsd
.else
GIFCONFIG=  freebsd
.endif

.include <bsd.port.post.mk>