1998-05-31 09:25:51 +00:00
|
|
|
# New ports collection makefile for: zebra
|
|
|
|
# Date created: So 31 Mai 1998 11:00:30 CEST
|
|
|
|
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1998-05-31 09:25:51 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= zebra
|
2000-10-23 20:41:33 +00:00
|
|
|
PORTVERSION= 0.89a
|
2000-01-22 22:12:16 +00:00
|
|
|
CATEGORIES= net ipv6
|
1998-05-31 09:25:51 +00:00
|
|
|
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
1999-01-07 06:28:36 +00:00
|
|
|
# you might need debugging, it's a developer release !
|
1999-07-18 11:42:26 +00:00
|
|
|
#CFLAGS+= -g
|
1998-05-31 09:25:51 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= andreas@FreeBSD.org
|
1998-05-31 09:25:51 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
1999-01-07 06:28:36 +00:00
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra
|
1998-05-31 09:25:51 +00:00
|
|
|
|
2000-10-03 13:14:28 +00:00
|
|
|
MAN1= vtysh.1
|
|
|
|
MAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
|
|
|
|
|
2000-01-22 22:12:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
PLIST:= ${WRKDIR}/PLIST
|
|
|
|
pre-install:
|
2000-10-09 00:26:12 +00:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist.v6 ${PKGDIR}/pkg-plist > ${PLIST}
|
2000-01-08 17:49:13 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ospf6d --disable-ripngd
|
|
|
|
.endif
|
|
|
|
|
1999-07-18 10:31:43 +00:00
|
|
|
post-install:
|
|
|
|
@${ECHO} "===> installing zebra startup file..."
|
|
|
|
@${SED} -e "s=!!PREFIX!!=${PREFIX}=" \
|
1999-12-24 15:56:32 +00:00
|
|
|
< ${FILESDIR}/zebractl.sh \
|
|
|
|
> ${PREFIX}/sbin/zebractl
|
|
|
|
@${CHMOD} 555 ${PREFIX}/sbin/zebractl
|
1999-12-24 23:40:09 +00:00
|
|
|
@${ECHO} "Make these entries in /etc/rc.conf to start zebra:"
|
1999-12-24 15:56:32 +00:00
|
|
|
@${ECHO} "defaultrouter=\"NO\""
|
|
|
|
@${ECHO} "router_enable=\"YES\""
|
|
|
|
@${ECHO} "router=\"${PREFIX}/sbin/zebractl\""
|
|
|
|
@${ECHO} "router_flags=\"start\""
|
|
|
|
@${ECHO} "done."
|
1999-07-18 10:31:43 +00:00
|
|
|
|
2000-01-22 22:12:16 +00:00
|
|
|
.include <bsd.port.post.mk>
|