2005-06-01 22:07:59 +02:00
|
|
|
# $NetBSD: Makefile,v 1.67 2005/06/01 20:08:01 jlam Exp $
|
1999-06-07 07:21:33 +02:00
|
|
|
# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
|
1999-06-07 07:18:46 +02:00
|
|
|
#
|
|
|
|
|
2003-12-29 22:59:01 +01:00
|
|
|
DISTNAME= zebra-0.94
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 2
|
1999-06-07 07:18:46 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
|
2001-08-19 13:45:52 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
1999-06-07 07:18:46 +02:00
|
|
|
|
|
|
|
MAINTAINER= itojun@itojun.org
|
|
|
|
HOMEPAGE= http://www.zebra.org/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Free multithreaded routing daemon software
|
1999-06-07 07:18:46 +02:00
|
|
|
|
2000-10-13 17:13:54 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-06-21 04:27:12 +02:00
|
|
|
GNU_CONFIGURE= # defined
|
2002-03-18 21:41:43 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= zebra
|
2003-12-29 22:59:01 +01:00
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
EGDIR= ${PREFIX}/share/examples/zebra
|
|
|
|
CONF_FILES= ${EGDIR}/bgpd.conf.sample ${PKG_SYSCONFDIR}/bgpd.conf \
|
|
|
|
${EGDIR}/ospfd.conf.sample ${PKG_SYSCONFDIR}/ospfd.conf \
|
|
|
|
${EGDIR}/ripd.conf.sample ${PKG_SYSCONFDIR}/ripd.conf \
|
|
|
|
${EGDIR}/zebra.conf.sample ${PKG_SYSCONFDIR}/zebra.conf
|
2002-03-18 21:41:43 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2003-12-29 22:59:01 +01:00
|
|
|
CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR}
|
|
|
|
# with optimization, the timer/scheduler (esp. for MRT dump rotation) appears
|
|
|
|
# to have problems.
|
|
|
|
CFLAGS= -O0
|
2001-06-26 13:34:16 +02:00
|
|
|
# you might need debugging, it's a developer release !
|
|
|
|
#CFLAGS+= -g
|
2001-06-21 04:27:12 +02:00
|
|
|
|
2003-08-13 09:27:06 +02:00
|
|
|
CONFLICTS+= quagga-[0-9]*
|
|
|
|
|
2001-05-28 23:02:28 +02:00
|
|
|
PLIST_SRC= # empty
|
|
|
|
|
2003-08-04 16:45:26 +02:00
|
|
|
INFO_FILES= zebra.info
|
|
|
|
|
2003-12-29 22:59:01 +01:00
|
|
|
BUILD_DEFS+= USE_ZEBRA_VTYSH
|
|
|
|
|
2000-08-27 10:32:55 +02:00
|
|
|
.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
|
2001-06-21 04:27:12 +02:00
|
|
|
USE_GNU_READLINE= # uses rl_pending_input
|
2004-04-25 09:49:56 +02:00
|
|
|
. include "../../devel/readline/buildlink3.mk"
|
2001-05-28 23:02:28 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.vtysh
|
2003-12-29 22:59:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-vtysh
|
|
|
|
CONF_FILES+= ${EGDIR}/vtysh.conf.sample ${PKG_SYSCONFDIR}/vtysh.conf
|
2000-08-27 10:32:55 +02:00
|
|
|
.else
|
2001-05-28 23:02:28 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-vtysh
|
2000-08-27 10:32:55 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-01 22:07:59 +02:00
|
|
|
USE_TOOLS+= automake gmake
|
2003-12-29 22:59:01 +01:00
|
|
|
USE_MAKEINFO= # defined
|
2004-04-25 09:49:56 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
1999-07-07 11:14:15 +02:00
|
|
|
|
2001-05-28 23:02:28 +02:00
|
|
|
BUILD_DEFS+= USE_INET6
|
1999-08-18 11:24:08 +02:00
|
|
|
|
2003-12-29 22:59:01 +01:00
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == "YES"
|
2001-05-28 23:02:28 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.v6
|
2003-12-29 22:59:01 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
CONF_FILES+= ${EGDIR}/ospf6d.conf.sample ${PKG_SYSCONFDIR}/ospf6d.conf \
|
|
|
|
${EGDIR}/ripngd.conf.sample ${PKG_SYSCONFDIR}/ripngd.conf
|
1999-07-08 12:48:00 +02:00
|
|
|
.else
|
2003-12-29 22:59:01 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
2001-05-28 23:02:28 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ospf6d
|
|
|
|
CONFIGURE_ARGS+= --disable-ripngd
|
1999-07-07 10:54:55 +02:00
|
|
|
.endif
|
1999-06-07 07:18:46 +02:00
|
|
|
|
2001-05-28 23:02:28 +02:00
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
|
2001-06-12 22:33:00 +02:00
|
|
|
LIBS+= ${LDFLAGS}
|
2000-01-17 06:06:15 +01:00
|
|
|
|
2001-06-10 02:08:41 +02:00
|
|
|
pre-configure:
|
2005-06-01 22:07:59 +02:00
|
|
|
cd ${WRKSRC} && autoreconf --force
|
|
|
|
# cd ${WRKSRC} && automake
|
2000-08-24 03:25:36 +02:00
|
|
|
|
2000-01-17 06:06:15 +01:00
|
|
|
#post-build:
|
2001-05-28 23:02:28 +02:00
|
|
|
# cd ${WRKSRC}/doc ; \
|
|
|
|
# ${TOUCH} zebra.texi ; \
|
2002-02-18 16:14:00 +01:00
|
|
|
# ${MAKEINFO} --no-split zebra.texi
|
1999-11-19 03:47:00 +01:00
|
|
|
|
2000-08-24 03:25:36 +02:00
|
|
|
post-install:
|
2001-05-28 23:02:28 +02:00
|
|
|
@${CHMOD} a+r ${PREFIX}/share/examples/zebra/*
|
2000-08-24 03:25:36 +02:00
|
|
|
|
1999-06-07 07:18:46 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|