bird: New version. Added lightweight client.

This commit is contained in:
Martin Strbacka 2014-07-16 15:48:03 +02:00
parent 6e0239002d
commit ed68a700bc

View file

@ -7,12 +7,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=bird PKG_NAME:=bird
PKG_VERSION:=1.4.3 PKG_VERSION:=1.4.4
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird
PKG_MD5SUM:=eb7e00b9c1d102ddfcbc19d9cb168511 PKG_MD5SUM:=4ec3a9165928a541326ec9de316da974
PKG_BUILD_DEPENDS:=libncurses libreadline PKG_BUILD_DEPENDS:=libncurses libreadline
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -29,6 +29,11 @@ define Package/birdc/Default
DEPENDS:= +libreadline +libncurses DEPENDS:= +libreadline +libncurses
endef endef
define Package/birdcl/Default
TITLE:=The BIRD lightweight command-line client
URL:=http://bird.network.cz/
endef
define Package/bird/Default/description1 define Package/bird/Default/description1
BIRD is an internet routing daemon which manages TCP/IP routing tables BIRD is an internet routing daemon which manages TCP/IP routing tables
with support of modern routing protocols, easy to use configuration with support of modern routing protocols, easy to use configuration
@ -57,6 +62,14 @@ should install BIRD command-line client together with BIRD.
endef endef
define Package/bird/Default/description4
This is a BIRD lightweight command-line client. It is used to send commands to BIRD,
commands can perform simple actions such as enabling/disabling of
protocols, telling BIRD to show various information, telling it to show
a routing table filtered by a filter, or asking BIRD to reconfigure.
endef
define Package/bird4 define Package/bird4
$(call Package/bird/Default) $(call Package/bird/Default)
SECTION:=net SECTION:=net
@ -74,6 +87,15 @@ $(call Package/birdc/Default)
DEPENDS+= +bird4 DEPENDS+= +bird4
endef endef
define Package/birdcl4
$(call Package/birdcl/Default)
SECTION:=net
CATEGORY:=Network
SUBMENU:=Routing and Redirection
TITLE+= (IPv4)
DEPENDS+= +bird4
endef
define Package/bird6 define Package/bird6
$(call Package/bird/Default) $(call Package/bird/Default)
SECTION:=net SECTION:=net
@ -91,6 +113,15 @@ $(call Package/birdc/Default)
DEPENDS+= +bird6 DEPENDS+= +bird6
endef endef
define Package/birdcl6
$(call Package/birdcl/Default)
SECTION:=net
CATEGORY:=Network
SUBMENU:=Routing and Redirection
TITLE+= (IPv6)
DEPENDS+= +bird6
endef
define Package/bird4/description define Package/bird4/description
$(call Package/bird/Default/description1) $(call Package/bird/Default/description1)
This is IPv4 version of BIRD, it supports OSPFv2, RIPv2 and BGP This is IPv4 version of BIRD, it supports OSPFv2, RIPv2 and BGP
@ -104,6 +135,11 @@ $(call Package/bird/Default/description1)
$(call Package/bird/Default/description3) $(call Package/bird/Default/description3)
endef endef
define Package/birdcl4/description
$(call Package/bird/Default/description1)
$(call Package/bird/Default/description4)
endef
define Package/bird6/description define Package/bird6/description
$(call Package/bird/Default/description1) $(call Package/bird/Default/description1)
This is IPv6 version of BIRD, it supports OSPFv3, RIPng and BGP This is IPv6 version of BIRD, it supports OSPFv3, RIPng and BGP
@ -117,6 +153,11 @@ $(call Package/bird/Default/description1)
$(call Package/bird/Default/description3) $(call Package/bird/Default/description3)
endef endef
define Package/birdcl6/description
$(call Package/bird/Default/description1)
$(call Package/bird/Default/description4)
endef
CONFIGURE_ARGS += --with-linux-headers="$(LINUX_DIR)" CONFIGURE_ARGS += --with-linux-headers="$(LINUX_DIR)"
define Build/Template define Build/Template
@ -124,7 +165,7 @@ define Build/Template
$(STAMP_BUILT)-$(2): $(STAMP_PREPARED) $(STAMP_BUILT)-$(2): $(STAMP_PREPARED)
$(call Build/Configure/Default,$(3)) $(call Build/Configure/Default,$(3))
$(call Build/Compile/Default,) $(call Build/Compile/Default,)
( cd $(PKG_BUILD_DIR); mv -f bird bird$(2); mv -f birdc birdc$(2) ) ( cd $(PKG_BUILD_DIR); mv -f bird bird$(2); mv -f birdc birdc$(2); mv -f birdcl birdcl$(2) )
-$(MAKE) -C $(PKG_BUILD_DIR) clean -$(MAKE) -C $(PKG_BUILD_DIR) clean
touch $$@ touch $$@
@ -149,6 +190,11 @@ define Package/birdc$(2)/install
$(INSTALL_BIN) $$(PKG_BUILD_DIR)/birdc$(2) $$(1)/usr/sbin/ $(INSTALL_BIN) $$(PKG_BUILD_DIR)/birdc$(2) $$(1)/usr/sbin/
endef endef
define Package/birdcl$(2)/install
$(INSTALL_DIR) $$(1)/usr/sbin
$(INSTALL_BIN) $$(PKG_BUILD_DIR)/birdcl$(2) $$(1)/usr/sbin/
endef
endef endef
@ -157,5 +203,7 @@ $(eval $(call Build/Template,bird6,6, --enable-ipv6))
$(eval $(call BuildPackage,bird4)) $(eval $(call BuildPackage,bird4))
$(eval $(call BuildPackage,birdc4)) $(eval $(call BuildPackage,birdc4))
$(eval $(call BuildPackage,birdcl4))
$(eval $(call BuildPackage,bird6)) $(eval $(call BuildPackage,bird6))
$(eval $(call BuildPackage,birdc6)) $(eval $(call BuildPackage,birdc6))
$(eval $(call BuildPackage,birdcl6))