1998-05-31 05:25:51 -04: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 10:24:37 -04:00
|
|
|
# $FreeBSD$
|
1998-05-31 05:25:51 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 14:14:07 -04:00
|
|
|
PORTNAME= zebra
|
2000-08-18 10:33:08 -04:00
|
|
|
PORTVERSION= 0.88
|
2000-01-22 17:12:16 -05:00
|
|
|
CATEGORIES= net ipv6
|
1998-05-31 05:25:51 -04:00
|
|
|
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
1999-01-07 01:28:36 -05:00
|
|
|
# you might need debugging, it's a developer release !
|
1999-07-18 07:42:26 -04:00
|
|
|
#CFLAGS+= -g
|
1998-05-31 05:25:51 -04:00
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER= andreas@FreeBSD.org
|
1998-05-31 05:25:51 -04:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
1999-01-07 01:28:36 -05:00
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra
|
1998-05-31 05:25:51 -04:00
|
|
|
|
2000-01-22 17:12:16 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
|
|
|
PLIST:= ${WRKDIR}/PLIST
|
|
|
|
pre-install:
|
|
|
|
@${CAT} ${PKGDIR}/PLIST.v6 > ${PLIST}
|
|
|
|
@${CAT} ${PKGDIR}/PLIST >> ${PLIST}
|
2000-01-08 12:49:13 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ospf6d --disable-ripngd
|
|
|
|
.endif
|
|
|
|
|
1999-07-18 06:31:43 -04:00
|
|
|
post-install:
|
|
|
|
@${ECHO} "===> installing zebra startup file..."
|
|
|
|
@${SED} -e "s=!!PREFIX!!=${PREFIX}=" \
|
1999-12-24 10:56:32 -05:00
|
|
|
< ${FILESDIR}/zebractl.sh \
|
|
|
|
> ${PREFIX}/sbin/zebractl
|
|
|
|
@${CHMOD} 555 ${PREFIX}/sbin/zebractl
|
1999-12-24 18:40:09 -05:00
|
|
|
@${ECHO} "Make these entries in /etc/rc.conf to start zebra:"
|
1999-12-24 10:56:32 -05:00
|
|
|
@${ECHO} "defaultrouter=\"NO\""
|
|
|
|
@${ECHO} "router_enable=\"YES\""
|
|
|
|
@${ECHO} "router=\"${PREFIX}/sbin/zebractl\""
|
|
|
|
@${ECHO} "router_flags=\"start\""
|
|
|
|
@${ECHO} "done."
|
1999-07-18 06:31:43 -04:00
|
|
|
|
2000-01-22 17:12:16 -05:00
|
|
|
.include <bsd.port.post.mk>
|