aboutsummaryrefslogtreecommitdiffstats
path: root/net/zebra-pj/Makefile
blob: ec39768896262f084d899104f475d23f3455ea11 (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
# New ports collection makefile for:    zebra
# Version required: SNAP 981222
# Date created:     So  31 Mai 1998 11:00:30 CEST
# Whom:         Andreas Klemm <andreas@klemm.gtn.com>
#
# $FreeBSD$
#

DISTNAME=   zebra-0.84
CATEGORIES= net
MASTER_SITES=   ftp://ftp.zebra.org/pub/zebra/
# you might need debugging, it's a developer release !
#CFLAGS+=   -g

MAINTAINER= andreas@FreeBSD.org

WRKSRC=     ${WRKDIR}/zebra-0.84a
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra

.if defined(USE_INET6)
PLIST=      ${PKGDIR}/PLIST.v6
.else
CONFIGURE_ARGS+=--disable-ospf6d --disable-ripngd
PLIST=      ${PKGDIR}/PLIST
.endif

post-install:
    @${ECHO} "===>     installing zebra startup file..."
    @${SED} -e "s=!!PREFIX!!=${PREFIX}=" \
        < ${FILESDIR}/zebractl.sh  \
        > ${PREFIX}/sbin/zebractl
    @${CHMOD} 555 ${PREFIX}/sbin/zebractl
    @${ECHO} "Make these entries in /etc/rc.conf to start zebra:"
    @${ECHO} "defaultrouter=\"NO\""
    @${ECHO} "router_enable=\"YES\""
    @${ECHO} "router=\"${PREFIX}/sbin/zebractl\""
    @${ECHO} "router_flags=\"start\""
    @${ECHO} "done."

.include <bsd.port.mk>