blob: 53b9c81ad40724f4c74c49ebbd48905657137321 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# $NetBSD: Makefile,v 1.60 2003/12/29 21:59:01 heas 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.94
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://ftp.zebra.org/pub/zebra/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= itojun@itojun.org
HOMEPAGE= http://www.zebra.org/
COMMENT= Free multithreaded routing daemon software
.include "../../mk/bsd.prefs.mk"
AUTOMAKE_REQD= 1.8
USE_BUILDLINK2= # defined
GNU_CONFIGURE= # defined
PKG_SYSCONFSUBDIR?= zebra
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
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --infodir=${PREFIX}/${INFO_DIR}
# with optimization, the timer/scheduler (esp. for MRT dump rotation) appears
# to have problems.
CFLAGS= -O0
# you might need debugging, it's a developer release !
#CFLAGS+= -g
CONFLICTS+= quagga-[0-9]*
PLIST_SRC= # empty
INFO_FILES= zebra.info
BUILD_DEFS+= USE_ZEBRA_VTYSH
.if defined(USE_ZEBRA_VTYSH) && ${USE_ZEBRA_VTYSH} == "YES"
USE_GNU_READLINE= # uses rl_pending_input
. include "../../devel/readline/buildlink2.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_GMAKE= # defined
USE_MAKEINFO= # defined
.include "../../devel/readline/buildlink2.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} --no-split zebra.texi
post-install:
@${CHMOD} a+r ${PREFIX}/share/examples/zebra/*
.include "../../mk/automake.mk"
.include "../../mk/bsd.pkg.mk"
|