2006-08-07 09:53:12 +00:00
|
|
|
#
|
2011-01-13 00:13:57 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-08-07 09:53:12 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=quagga
|
2010-10-15 21:43:27 +00:00
|
|
|
ifneq ($(CONFIG_QUAGGA_OLD),)
|
|
|
|
PKG_VERSION:=0.98.6
|
2011-07-26 21:46:59 +00:00
|
|
|
PKG_RELEASE:=10
|
2010-10-15 21:43:27 +00:00
|
|
|
PKG_MD5SUM:=b0d4132039953a0214256873b7d23d68
|
|
|
|
PATCH_DIR:=./patches-old
|
|
|
|
else
|
2011-09-29 23:44:31 +00:00
|
|
|
PKG_VERSION:=0.99.20
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=64cc29394eb8a4e24649d19dac868f64
|
2010-10-15 21:43:27 +00:00
|
|
|
endif
|
2006-08-07 09:53:12 +00:00
|
|
|
|
2010-11-01 13:58:39 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-08-07 09:53:12 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.quagga.net/download/ \
|
|
|
|
http://www.de.quagga.net/download/ \
|
|
|
|
http://www.uk.quagga.net/download/
|
2009-10-20 09:11:29 +00:00
|
|
|
PKG_CONFIG_DEPENDS:= \
|
2010-11-26 23:03:20 +00:00
|
|
|
CONFIG_QUAGGA_OLD \
|
2010-07-10 01:08:43 +00:00
|
|
|
CONFIG_IPV6 \
|
2010-11-26 23:05:47 +00:00
|
|
|
CONFIG_PACKAGE_quagga-libzebra \
|
|
|
|
CONFIG_PACKAGE_quagga-libospf \
|
|
|
|
CONFIG_PACKAGE_quagga-bgpd \
|
2010-11-09 09:59:31 +00:00
|
|
|
CONFIG_PACKAGE_quagga-isisd \
|
2010-11-26 23:05:47 +00:00
|
|
|
CONFIG_PACKAGE_quagga-ospf6d \
|
|
|
|
CONFIG_PACKAGE_quagga-ripd \
|
|
|
|
CONFIG_PACKAGE_quagga-ripngd \
|
|
|
|
CONFIG_PACKAGE_quagga-vtysh
|
2010-10-15 21:43:27 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2011-03-30 09:27:19 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-08-03 12:04:11 +00:00
|
|
|
PKG_INSTALL:=1
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2006-08-07 09:53:12 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-04-02 18:33:34 +00:00
|
|
|
define Package/quagga/Default
|
2006-08-07 09:53:12 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-07-13 20:29:27 +00:00
|
|
|
SUBMENU:=Routing and Redirection
|
2011-01-13 00:13:57 +00:00
|
|
|
DEPENDS:=quagga
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=The Quagga Software Routing Suite
|
|
|
|
URL:=http://www.quagga.net
|
2010-04-03 18:08:58 +00:00
|
|
|
MAINTAINER:=Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
|
2008-04-02 18:33:34 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga
|
|
|
|
$(call Package/quagga/Default)
|
2010-10-21 13:03:12 +00:00
|
|
|
DEPENDS:=+!QUAGGA_OLD:librt
|
2006-08-07 09:53:12 +00:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/quagga/description
|
2009-10-20 09:11:29 +00:00
|
|
|
A routing software package that provides TCP/IP based routing services
|
|
|
|
with routing protocols support such as RIPv1, RIPv2, RIPng, OSPFv2,
|
|
|
|
OSPFv3, BGP-4, and BGP-4+
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2010-10-15 21:43:27 +00:00
|
|
|
define Package/quagga/config
|
2010-11-26 23:03:20 +00:00
|
|
|
config QUAGGA_OLD
|
|
|
|
depends on (PACKAGE_quagga && BROKEN)
|
|
|
|
default n
|
|
|
|
bool "Use the old release version 0.98.6"
|
|
|
|
help
|
|
|
|
This option allows you to select the old version of Quagga to be built.
|
2010-10-15 21:43:27 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-07 09:53:12 +00:00
|
|
|
define Package/quagga-libzebra
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=zebra library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-libospf
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=OSPF library
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-bgpd
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2010-10-15 21:43:27 +00:00
|
|
|
DEPENDS+=+quagga-libzebra
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=BGPv4, BGPv4+, BGPv4- routing engine
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-isisd
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=IS-IS routing engine
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ospfd
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2010-10-15 21:43:27 +00:00
|
|
|
DEPENDS+=+quagga-libospf +quagga-libzebra
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=OSPFv2 routing engine
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ospf6d
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2010-10-15 21:43:27 +00:00
|
|
|
DEPENDS+=+quagga-libospf +quagga-libzebra @IPV6
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=OSPFv3 routing engine
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ripd
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2010-10-15 21:43:27 +00:00
|
|
|
DEPENDS+=+quagga-libzebra
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=RIP routing engine
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ripngd
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2010-11-26 23:11:28 +00:00
|
|
|
DEPENDS+=+quagga-libzebra @IPV6
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=RIPNG routing engine
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-vtysh
|
2008-04-02 18:33:34 +00:00
|
|
|
$(call Package/quagga/Default)
|
2010-10-15 21:43:27 +00:00
|
|
|
DEPENDS+=quagga-libzebra +libreadline +libncurses
|
2006-08-07 09:53:12 +00:00
|
|
|
TITLE:=integrated shell for Quagga routing software
|
|
|
|
endef
|
|
|
|
|
2010-03-16 23:27:22 +00:00
|
|
|
define Package/quagga/conffiles
|
|
|
|
/etc/quagga/zebra.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-bgpd/conffiles
|
|
|
|
/etc/quagga/bgpd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-isisd/conffiles
|
|
|
|
/etc/quagga/isisd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ospfd/conffiles
|
|
|
|
/etc/quagga/ospfd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ospf6d/conffiles
|
|
|
|
/etc/quagga/ospf6d.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ripd/conffiles
|
|
|
|
/etc/quagga/ripd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-ripngd/conffiles
|
|
|
|
/etc/quagga/ripngd.conf
|
|
|
|
endef
|
|
|
|
|
2010-11-26 23:08:18 +00:00
|
|
|
ifneq ($(SDK),)
|
|
|
|
CONFIG_PACKAGE_quagga-libzebra:=m
|
|
|
|
CONFIG_PACKAGE_quagga-libospf:=m
|
|
|
|
CONFIG_PACKAGE_quagga-bgpd:=m
|
|
|
|
CONFIG_PACKAGE_quagga-isisd:=m
|
|
|
|
CONFIG_PACKAGE_quagga-ospf6d:=m
|
|
|
|
CONFIG_PACKAGE_quagga-ripd:=m
|
|
|
|
CONFIG_PACKAGE_quagga-ripngd:=m
|
|
|
|
CONFIG_PACKAGE_quagga-vtysh:=m
|
|
|
|
endif
|
|
|
|
|
2009-10-20 09:11:29 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--localstatedir=/var/run/quagga \
|
|
|
|
--sysconfdir=/etc/quagga/ \
|
|
|
|
--enable-shared \
|
|
|
|
--disable-static \
|
2011-03-13 19:56:33 +00:00
|
|
|
--enable-user=network \
|
|
|
|
--enable-group=network \
|
2010-10-15 21:43:27 +00:00
|
|
|
--enable-pie=no \
|
2009-10-20 09:11:29 +00:00
|
|
|
--enable-multipath=8 \
|
2010-11-26 23:05:47 +00:00
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-libzebra,zebra) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-libospf,ospfd) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-bgpd,bgpd) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-isisd,isisd) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-ospf6d,ospf6d) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-ripd,ripd) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-ripngd,ripngd) \
|
|
|
|
$(call autoconf_bool,CONFIG_PACKAGE_quagga-vtysh,vtysh) \
|
2006-08-07 09:53:12 +00:00
|
|
|
|
2010-12-07 17:44:19 +00:00
|
|
|
MAKE_FLAGS += \
|
2011-01-13 00:13:57 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
|
2010-12-07 17:44:19 +00:00
|
|
|
|
2010-10-27 13:20:36 +00:00
|
|
|
define Build/Configure
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
|
2010-11-26 23:09:56 +00:00
|
|
|
autoconf \
|
2010-10-27 13:20:36 +00:00
|
|
|
);
|
|
|
|
$(call Build/Configure/Default)
|
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/zebra $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/watchquagga $(1)/usr/sbin/
|
2006-08-07 09:53:12 +00:00
|
|
|
# avoid /etc being set to 0750
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/zebra.conf
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_BIN) ./files/quagga $(1)/usr/sbin/quagga.init
|
|
|
|
$(INSTALL_BIN) ./files/quagga.init $(1)/etc/init.d/quagga
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga-bgpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(1)/usr/sbin/
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/bgpd.conf
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-isisd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/isisd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/isisd.conf
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga-ospfd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(1)/usr/sbin/
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/ospfd.conf
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga-ospf6d/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ospf6d $(1)/usr/sbin/
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/ospf6d.conf
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga-ripd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ripd $(1)/usr/sbin/
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/ripd.conf
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga-ripngd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(1)/usr/sbin/
|
2009-10-20 09:11:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/quagga
|
|
|
|
chmod 0750 $(1)/etc/quagga
|
2010-03-16 23:27:17 +00:00
|
|
|
$(INSTALL_CONF) ./files/quagga.conf $(1)/etc/quagga/ripngd.conf
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
2009-07-26 10:35:28 +00:00
|
|
|
define Package/quagga-vtysh/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vtysh $(1)/usr/bin/
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-libospf/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-08-07 09:53:12 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/quagga-libzebra/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-10-20 09:11:29 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzebra.so.* $(1)/usr/lib/
|
2006-08-07 09:53:12 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,quagga))
|
|
|
|
$(eval $(call BuildPackage,quagga-libzebra))
|
|
|
|
$(eval $(call BuildPackage,quagga-libospf))
|
|
|
|
$(eval $(call BuildPackage,quagga-bgpd))
|
|
|
|
$(eval $(call BuildPackage,quagga-isisd))
|
|
|
|
$(eval $(call BuildPackage,quagga-ospfd))
|
|
|
|
$(eval $(call BuildPackage,quagga-ospf6d))
|
|
|
|
$(eval $(call BuildPackage,quagga-ripd))
|
|
|
|
$(eval $(call BuildPackage,quagga-ripngd))
|
|
|
|
$(eval $(call BuildPackage,quagga-vtysh))
|