741aecb607
and replace with appropriate references to PKGINFODIR instead. * Properly account for split info files during installation. * Move info file listings directly into the package PLISTs. This fixes info-file-related PLIST problems.
80 lines
2.1 KiB
Makefile
80 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.75 2006/03/20 18:15:38 jlam Exp $
|
|
# Based on KAME Id: Makefile,v 1.1.2.1.2.1.10.2 1999/01/05 11:03:50 itojun Exp
|
|
|
|
DISTNAME= zebra-0.95
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
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/
|
|
|
|
MAINTAINER= itojun@itojun.org
|
|
HOMEPAGE= http://www.zebra.org/
|
|
COMMENT= Free multithreaded routing daemon software
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
PKG_SYSCONFSUBDIR?= zebra
|
|
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
|
|
# with optimization, the timer/scheduler (esp. for MRT dump rotation) appears
|
|
# to have problems.
|
|
CFLAGS+= -O0
|
|
|
|
CONFLICTS+= quagga-[0-9]*
|
|
|
|
PLIST_SRC= # empty
|
|
INFO_FILES= # PLIST
|
|
|
|
BUILD_DEFS+= USE_ZEBRA_VTYSH
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
|
|
USE_GNU_READLINE= # uses rl_pending_input
|
|
. include "../../devel/readline/buildlink3.mk"
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.vtysh
|
|
CONFIGURE_ARGS+= --enable-vtysh
|
|
CONF_FILES+= ${EGDIR}/vtysh.conf.sample ${PKG_SYSCONFDIR}/vtysh.conf
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-vtysh
|
|
.endif
|
|
|
|
USE_TOOLS+= automake gmake makeinfo
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
BUILD_DEFS+= USE_INET6
|
|
|
|
.if defined(USE_INET6) && ${USE_INET6} == "YES"
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.v6
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
CONF_FILES+= ${EGDIR}/ospf6d.conf.sample ${PKG_SYSCONFDIR}/ospf6d.conf \
|
|
${EGDIR}/ripngd.conf.sample ${PKG_SYSCONFDIR}/ripngd.conf
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
CONFIGURE_ARGS+= --disable-ospf6d
|
|
CONFIGURE_ARGS+= --disable-ripngd
|
|
.endif
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
LIBS+= ${LDFLAGS}
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoreconf --force
|
|
# cd ${WRKSRC} && automake
|
|
|
|
#post-build:
|
|
# cd ${WRKSRC}/doc ; \
|
|
# ${TOUCH} zebra.texi ; \
|
|
# makeinfo zebra.texi
|
|
|
|
post-install:
|
|
@${CHMOD} a+r ${PREFIX}/share/examples/zebra/*
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|