aboutsummaryrefslogtreecommitdiff
path: root/net/zebra/Makefile
diff options
context:
space:
mode:
authorMunechika SUMIKAWA <sumikawa@FreeBSD.org>2012-11-12 03:03:03 +0000
committerMunechika SUMIKAWA <sumikawa@FreeBSD.org>2012-11-12 03:03:03 +0000
commitd7081fc410b6b95187fc52e344382934b6e19fc8 (patch)
tree95fd7c4e09fcf29003eba916cad7fc6eb88502d0 /net/zebra/Makefile
parente91b181ec0a1b63841394ba0eda98f3b0f75bd9c (diff)
- Use arguments for different zebra services. Default is "-d"
- Update to use OPTIONSNG - Rename LIBPAM to PAM (shared description) - Drop my maintainership PR: ports/170678 Submitted by: jgh Feature safe: yes
Notes
Notes: svn path=/head/; revision=307324
Diffstat (limited to 'net/zebra/Makefile')
-rw-r--r--net/zebra/Makefile60
1 files changed, 38 insertions, 22 deletions
diff --git a/net/zebra/Makefile b/net/zebra/Makefile
index 29eae6750cdf..414c136f095d 100644
--- a/net/zebra/Makefile
+++ b/net/zebra/Makefile
@@ -21,67 +21,83 @@ COMMENT= Free RIPv1, RIPv2, OSPFv2, BGP4 route software (server/reflector)
CONFLICTS= openbgpd-[0-9]* quagga-[0-9]* quagga-re-[0-9]* openospfd-[0-9]*
SUB_FILES= pkg-message zebractl
+SUB_LIST= BGPDARGS=${BGPDARGS} \
+ OSPFDARGS=${OSPFDARGS} \
+ OSPF6DARGS=${OSPFDARGS} \
+ RIPDARGS=${RIPDARGS} \
+ RIPNGDARGS=${RIPNGDARGS} \
+ ZEBRAARGS=${ZEBRAARGS}
USE_SUBMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/zebra
SCRIPTS_ENV= WRKDIRPREFIX=${WRKDIRPREFIX}
-OPTIONS= IPV6 "enable IPv6 support" on \
- LIBPAM "enable PAM authentication for vtysh" off \
- OSPFNSSA "turn on undergoing NSSA feature" off \
- SNMP "enable SNMP support" off \
- TCPZEBRA "enable TCP/IP socket connection" off \
- BGPD "enable BGPD" on \
- OSPF6D "enable OSPF6D" on \
- OSPFD "enable OSPFD" on \
- RIPD "enable RIPD" on \
- RIPNGD "enable RIPNGD" on \
- VTYSH "enable VTYSH" on
+OPTIONS_DEFINE= IPV6 PAM OSPFNSSA SNMP TCPZEBRA BGPD OSPF6D OSPFD RIPD RIPNGD VTYSH
+
+PAM_DESC= PAM authentication for vtysh
+OSPFNSSA_DESC= undergoing NSSA feature
+TCPZEBRA_DESC= TCP/IP socket connection
+BGPD_DESC= BGPD support
+OSPF6D_DESC= OSPF6D support
+OSPFD_DESC= OSPFD support
+RIPD_DESC= RIPD support
+RIPNGD_DESC= RIPNGD support
+VTYSH_DESC= VTYSH support
+
+OPTIONS_DEFAULT= IPV6 BGPD OSPF6D OSPFD RIPD RIPNGD VTYSH
+NO_OPTIONS_SORT= yes
MAN1= vtysh.1
MAN8= bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8
INFO= zebra
+BGPDARGS?= -d
+OSPFDARGS?= -d
+OSPF6DARGS?= -d
+RIPDARGS?= -d
+RIPNGDARGS?= -d
+ZEBRAARGS?= -d
+
.include <bsd.port.options.mk>
-.if defined (WITHOUT_IPV6)
+.if empty(PORT_OPTIONS:MIPV6)
CONFIGURE_ARGS+=--disable-ipv6
WITHOUT_OSPF6D= yes
WITHOUT_RIPNGD= yes
.endif
-.if defined (WITH_LIBPAM)
+.if ${PORT_OPTIONS:MPAM}
CONFIGURE_ARGS+=--with-libpam
.endif
-.if defined (WITH_OSPFNSSA)
+.if ${PORT_OPTIONS:MOSPFNSSA}
CONFIGURE_ARGS+=--enable-nssa
.endif
-.if defined (WITH_SNMP)
+.if ${PORT_OPTIONS:MSNMP}
CONFIGURE_ARGS+=--enable-snmp
LIB_DEPENDS+=snmp.4:${PORTSDIR}/net-mgmt/net-snmp4:install
.endif
-.if defined (WITH_TCPZEBRA)
+.if ${PORT_OPTIONS:MTCPZEBRA}
CONFIGURE_ARGS+=--enable-tcp-zebra
.endif
-.if !defined(WITHOUT_BGPD)
+.if ${PORT_OPTIONS:MBGPD}
PLIST_SUB+= BGPD=""
.else
CONFIGURE_ARGS+=--disable-bgpd
PLIST_SUB+= BGPD="@comment "
.endif
-.if !defined(WITHOUT_OSPF6D)
+.if ${PORT_OPTIONS:MOSPF6D}
PLIST_SUB+= OSPF6D=""
.else
CONFIGURE_ARGS+=--disable-ospf6d
PLIST_SUB+= OSPF6D="@comment "
.endif
-.if !defined(WITHOUT_OSPFD)
+.if ${PORT_OPTIONS:MOSPFD}
PLIST_SUB+= OSPF6D=""
PLIST_SUB+= OSPFD=""
.else
@@ -89,21 +105,21 @@ CONFIGURE_ARGS+=--disable-ospfd
PLIST_SUB+= OSPFD="@comment "
.endif
-.if !defined(WITHOUT_RIPD)
+.if ${PORT_OPTIONS:MRIPD}
PLIST_SUB+= RIPD=""
.else
CONFIGURE_ARGS+=--disable-ripd
PLIST_SUB+= RIPD="@comment "
.endif
-.if !defined(WITHOUT_RIPNGD)
+.if ${PORT_OPTIONS:MRIPNGD}
PLIST_SUB+= RIPNGD=""
.else
CONFIGURE_ARGS+=--disable-ripngd
PLIST_SUB+= RIPNGD="@comment "
.endif
-.if !defined(WITHOUT_VTYSH)
+.if ${PORT_OPTIONS:MVTYSH)
PLIST_SUB+= VTYSH=""
CONFIGURE_ARGS+=--enable-vtysh
.else