2007-06-28 23:55:00 +08:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# quagga suite
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-04-02 02:51:29 +08:00
|
|
|
|
2012-04-26 22:26:33 +08:00
|
|
|
QUAGGA_VERSION = 0.99.20.1
|
2011-04-02 02:51:29 +08:00
|
|
|
QUAGGA_SITE = http://www.quagga.net/download
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_DEPENDENCIES = host-gawk
|
2010-10-01 03:50:04 +08:00
|
|
|
QUAGGA_CONF_OPT = --program-transform-name='' --enable-netlink
|
2009-10-04 03:47:18 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_ZEBRA),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-zebra
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-zebra
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_BGPD),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-bgpd
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-bgpd
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_RIPD),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-ripd
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-ripd
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_RIPNGD),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-ripngd
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-ripngd
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_OSPFD),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-ospfd
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-ospfd
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_OSPF6D),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-ospf6d
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-ospf6d
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_WATCHQUAGGA),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-watchquagga
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-watchquagga
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_ISISD),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-isisd
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-isisd
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_BGP_ANNOUNCE),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-bgp-announce
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-bgp-announce
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_SNMP),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-snmp
|
2009-10-04 03:47:18 +08:00
|
|
|
QUAGGA_DEPENDENCIES+=netsnmp
|
2011-02-22 03:25:06 +08:00
|
|
|
# SNMP support tries -lcrypto by default, disable it if we ain't got openssl
|
|
|
|
ifneq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
QUAGGA_CONF_OPT+=--without-crypto
|
|
|
|
endif
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-snmp
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2007-06-28 23:55:00 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_TCP_ZEBRA),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-tcp-zebra
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-tcp-zebra
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
2010-06-16 19:47:14 +08:00
|
|
|
|
2010-10-01 03:50:04 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_QUAGGA_OPAQUE_LSA),y)
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--enable-opaque-lsa
|
2007-06-28 23:55:00 +08:00
|
|
|
else
|
2010-06-16 19:47:14 +08:00
|
|
|
QUAGGA_CONF_OPT+=--disable-opaque-lsa
|
2007-06-28 23:55:00 +08:00
|
|
|
endif
|
|
|
|
|
2011-09-30 03:57:43 +08:00
|
|
|
$(eval $(call AUTOTARGETS))
|