2 # Copyright (C) 2009-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=bird-
$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=ftp
://bird.network.cz
/pub
/bird
15 PKG_HASH
:=8d895e3e311880e9efb888b4386cbec2f7e18bfb8334e8d4c8ca7c4341092638
17 PKG_MAINTAINER
:=Toke Høiland-Jørgensen
<toke@toke.dk
>
18 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_BUILD_DEPENDS
:=ncurses readline
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/bird-
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/bird2
/Default
/description
26 BIRD is an internet routing daemon which manages TCP
/IP routing tables
27 with support of modern routing protocols
, easy to use configuration
28 interface and powerful route filtering language. It is lightweight and
29 efficient and therefore appropriate for small embedded routers.
34 TITLE
:=The BIRD Internet Routing Daemon
(v2
)
35 URL
:=http
://bird.network.cz
/
38 SUBMENU
:=Routing and Redirection
40 CONFLICTS
:=bird1-ipv4 bird1-ipv6 bird4 bird6
44 TITLE
:=The BIRD command-line client
(v2
)
45 URL
:=http
://bird.network.cz
/
48 SUBMENU
:=Routing and Redirection
49 DEPENDS
:=+bird2
+libreadline
+libncurses
50 CONFLICTS
:=bird1c-ipv4 bird1c-ipv6 birdc4 birdc6
53 define Package
/bird2cl
54 TITLE
:=The BIRD lightweight command-line client
(v2
)
55 URL
:=http
://bird.network.cz
/
58 SUBMENU
:=Routing and Redirection
60 CONFLICTS
:=bird1cl-ipv4 bird1cl-ipv6 birdcl4 birdcl6
63 define Package
/bird2
/description
64 $(call Package
/bird2
/Default
/description
)
66 BIRD supports OSPFv2
, RIPv2
, Babel and BGP protocols for IPv4 and
67 OSPFv3
, RIPng
, Babel and BGP protocols for IPv6.
69 In BGP
, BIRD supports communities
, multiprotocol extensions
, MD5
70 authentication
, 32bit AS numbers and could act
as a route server or a
71 route reflector. BIRD also supports multiple RIBs
, multiple kernel
72 routing tables and redistribution between the protocols with a powerful
75 This is the
2.0 branch of Bird which integrates support for IPv4 and IPv6
76 into a single branch
, and also adds support for the Babel routing protocol.
79 define Package
/bird2c
/description
80 $(call Package
/bird2
/Default
/description
)
82 This is a BIRD command-line client. It is used to send commands to BIRD
,
83 commands can perform simple actions such
as enabling
/disabling of
84 protocols
, telling BIRD to show various information
, telling it to show
85 a routing table filtered by a
filter, or asking BIRD to reconfigure.
87 Unless you can
't afford dependency on ncurses and readline, you
88 should install BIRD command-line client together with BIRD.
91 define Package/bird2cl/description
92 $(call Package/bird2/Default/description)
94 This is a BIRD lightweight command-line client. It is used to send commands
95 to BIRD, commands can perform simple actions such as enabling/disabling of
96 protocols, telling BIRD to show various information, telling it to show
97 a routing table filtered by a filter, or asking BIRD to reconfigure.
100 CONFIGURE_ARGS += --disable-libssh
102 define Package/bird2/conffiles
108 define Package/bird2/install
109 $(INSTALL_DIR) $(1)/usr/sbin
110 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bird $(1)/usr/sbin/
111 $(INSTALL_DIR) $(1)/etc
112 $(INSTALL_DATA) ./files/bird.conf $(1)/etc/
113 $(INSTALL_DIR) $(1)/etc/init.d
114 $(INSTALL_BIN) ./files/bird.init $(1)/etc/init.d/bird
117 define Package/bird2c/install
118 $(INSTALL_DIR) $(1)/usr/sbin
119 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdc $(1)/usr/sbin/
122 define Package/bird2cl/install
123 $(INSTALL_DIR) $(1)/usr/sbin
124 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdcl $(1)/usr/sbin/
127 $(eval $(call BuildPackage,bird2))
128 $(eval $(call BuildPackage,bird2c))
129 $(eval $(call BuildPackage,bird2cl))