diff options
Diffstat (limited to 'net/quagga/options.mk')
-rw-r--r-- | net/quagga/options.mk | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/net/quagga/options.mk b/net/quagga/options.mk new file mode 100644 index 00000000000..f26e360c030 --- /dev/null +++ b/net/quagga/options.mk @@ -0,0 +1,47 @@ +# $NetBSD: options.mk,v 1.1 2007/09/07 22:07:31 jlam 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= quagga-ospf-opaque-lsa quagga-vtysh + +PKG_OPTIONS_LEGACY_VARS+= USE_ZEBRA_OSPF_OPAQUELSA:quagga-ospf-opaque-lsa +PKG_OPTIONS_LEGACY_VARS+= USE_ZEBRA_VTYSH: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 + +### +### ??? +### +.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 + +### +### ??? +### +.if !empty(PKG_OPTIONS:Mquagga-ospf-opaque-lsa) +CONFIGURE_ARGS+= --enable-opaque-lsa +PLIST_CAT+= ${PKGDIR}/PLIST.opaquelsa +.endif |