blob: 3ab2ceba8527019d40775906f1b338ea2fc938bc (
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
|
# $NetBSD: options.mk,v 1.6 2012/06/13 14:45:19 gdt Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.quagga
PKG_SUPPORTED_OPTIONS= inet6
PKG_SUPPORTED_OPTIONS+= quagga-ospf-opaque-lsa
PKG_SUPPORTED_OPTIONS+= quagga-vtysh
PKG_SUGGESTED_OPTIONS= inet6
PKG_SUGGESTED_OPTIONS+= quagga-ospf-opaque-lsa
PKG_SUGGESTED_OPTIONS+= quagga-vtysh
.include "../../mk/bsd.options.mk"
###
### IPv6 support
###
.if !empty(PKG_OPTIONS:Minet6)
PLIST_CAT+= ${PKGDIR}/PLIST.v6
RCD_SCRIPTS+= ospf6d ripngd
. for _file_ in ospf6d.conf ripngd.conf
CONF_FILES_PERMS+= ${PREFIX}/share/examples/quagga/log_syslog.conf \
${PKG_SYSCONFDIR}/${_file_} quagga quagga 0600
. endfor
.else
CONFIGURE_ARGS+= --disable-ospf6d
CONFIGURE_ARGS+= --disable-ripngd
.endif
###
### Include 'vtysh' program.
###
.if !empty(PKG_OPTIONS:Mquagga-vtysh)
USE_GNU_READLINE= # uses rl_pending_input
. include "../../devel/readline/buildlink3.mk"
CONFIGURE_ARGS+= --enable-vtysh
PLIST_CAT+= ${PKGDIR}/PLIST.vtysh
.else
CONFIGURE_ARGS+= --disable-vtysh
.endif
###
### Include Opaque LSA support in OSPF (RFC2370).
###
.if !empty(PKG_OPTIONS:Mquagga-ospf-opaque-lsa)
# opaque-lsa is now the upstream default.
PLIST_CAT+= ${PKGDIR}/PLIST.opaquelsa
.else
CONFIGURE_ARGS+= --disable-opaque-lsa
.endif
|