1998-05-31 11:25:51 +02: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 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-05-31 11:25:51 +02:00
|
|
|
#
|
|
|
|
|
2000-04-09 20:14:07 +02:00
|
|
|
PORTNAME= zebra
|
2001-09-01 13:26:04 +02:00
|
|
|
PORTVERSION= 0.92a
|
2001-12-12 19:16:05 +01:00
|
|
|
PORTREVISION= 1
|
2000-01-22 23:12:16 +01:00
|
|
|
CATEGORIES= net ipv6
|
2001-10-08 13:03:59 +02:00
|
|
|
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/ \
|
|
|
|
ftp://ftp.ripe.net/mirrors/sites/ftp.zebra.org/pub/zebra/ \
|
|
|
|
ftp://ftp.sunet.se/pub/network/zebra/ \
|
|
|
|
ftp://ftp.knowledge.com/pub/mirrors/zebra/ \
|
|
|
|
ftp://6bone.informatik.uni-leipzig.de/pub/ftp.zebra.org/pub/zebra/ \
|
|
|
|
ftp://ftp.crc.ca/pub/packages/network/zebra/ \
|
|
|
|
ftp://ftp.pop-pr.rnp.br/pub/GNU/ftp.zebra.org/zebra/
|
1998-05-31 11:25:51 +02:00
|
|
|
|
2001-12-13 11:50:36 +01:00
|
|
|
MAINTAINER= joe@tao.org.uk
|
1998-05-31 11:25:51 +02:00
|
|
|
|
2002-03-25 10:19:20 +01:00
|
|
|
USE_SUBMAKE= yes
|
1998-05-31 11:25:51 +02:00
|
|
|
GNU_CONFIGURE= yes
|
1999-01-07 07:28:36 +01:00
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc/zebra
|
2001-06-02 09:42:31 +02:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX=${WRKDIRPREFIX}
|
1998-05-31 11:25:51 +02:00
|
|
|
|
2000-10-03 15:14:28 +02:00
|
|
|
MAN1= vtysh.1
|
|
|
|
MAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
|
|
|
|
|
2001-01-11 22:45:05 +01:00
|
|
|
.if !defined(BATCH)
|
|
|
|
pre-configure:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2000-01-22 23:12:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 400014
|
2001-01-16 18:33:20 +01:00
|
|
|
PLIST:= ${WRKDIR}/PLIST
|
2000-01-22 23:12:16 +01:00
|
|
|
pre-install:
|
2000-10-09 02:26:12 +02:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist.v6 ${PKGDIR}/pkg-plist > ${PLIST}
|
2000-01-08 18:49:13 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ospf6d --disable-ripngd
|
|
|
|
.endif
|
|
|
|
|
1999-07-18 12:31:43 +02:00
|
|
|
post-install:
|
2001-03-22 23:31:17 +01:00
|
|
|
@( cd ${WRKSRC}/doc; rm -f zebra*info*; ${MAKE} zebra.info install )
|
1999-07-18 12:31:43 +02:00
|
|
|
@${ECHO} "===> installing zebra startup file..."
|
|
|
|
@${SED} -e "s=!!PREFIX!!=${PREFIX}=" \
|
1999-12-24 16:56:32 +01:00
|
|
|
< ${FILESDIR}/zebractl.sh \
|
|
|
|
> ${PREFIX}/sbin/zebractl
|
|
|
|
@${CHMOD} 555 ${PREFIX}/sbin/zebractl
|
1999-12-25 00:40:09 +01:00
|
|
|
@${ECHO} "Make these entries in /etc/rc.conf to start zebra:"
|
1999-12-24 16:56:32 +01:00
|
|
|
@${ECHO} "defaultrouter=\"NO\""
|
|
|
|
@${ECHO} "router_enable=\"YES\""
|
|
|
|
@${ECHO} "router=\"${PREFIX}/sbin/zebractl\""
|
|
|
|
@${ECHO} "router_flags=\"start\""
|
|
|
|
@${ECHO} "done."
|
1999-07-18 12:31:43 +02:00
|
|
|
|
2000-01-22 23:12:16 +01:00
|
|
|
.include <bsd.port.post.mk>
|