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
:=631d2b58aebdbd651aaa3c68c3756c02ebfe5b1e60d307771ea909eeaa5b1066
16 PKG_BUILD_DEPENDS
:=ncurses readline
17 PKG_MAINTAINER
:=Toke Høiland-Jørgensen
<toke@toke.dk
>
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/bird-
$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/bird2
/Default
/description
25 BIRD is an internet routing daemon which manages TCP
/IP routing tables
26 with support of modern routing protocols
, easy to use configuration
27 interface and powerful route filtering language. It is lightweight and
28 efficient and therefore appropriate for small embedded routers.
33 TITLE
:=The BIRD Internet Routing Daemon
(v2
)
34 URL
:=http
://bird.network.cz
/
37 SUBMENU
:=Routing and Redirection
39 CONFLICTS
:=bird1-ipv4 bird1-ipv6 bird4 bird6
43 TITLE
:=The BIRD command-line client
(v2
)
44 URL
:=http
://bird.network.cz
/
47 SUBMENU
:=Routing and Redirection
48 DEPENDS
:=+bird2
+libreadline
+libncurses
49 CONFLICTS
:=bird1c-ipv4 bird1c-ipv6 birdc4 birdc6
52 define Package
/bird2cl
53 TITLE
:=The BIRD lightweight command-line client
(v2
)
54 URL
:=http
://bird.network.cz
/
57 SUBMENU
:=Routing and Redirection
59 CONFLICTS
:=bird1cl-ipv4 bird1cl-ipv6 birdcl4 birdcl6
62 define Package
/bird2
/description
63 $(call Package
/bird2
/Default
/description
)
65 BIRD supports OSPFv2
, RIPv2
, Babel and BGP protocols for IPv4 and
66 OSPFv3
, RIPng
, Babel and BGP protocols for IPv6.
68 In BGP
, BIRD supports communities
, multiprotocol extensions
, MD5
69 authentication
, 32bit AS numbers and could act
as a route server or a
70 route reflector. BIRD also supports multiple RIBs
, multiple kernel
71 routing tables and redistribution between the protocols with a powerful
74 This is the
2.0 branch of Bird which integrates support for IPv4 and IPv6
75 into a single branch
, and also adds support for the Babel routing protocol.
78 define Package
/bird2c
/description
79 $(call Package
/bird2
/Default
/description
)
81 This is a BIRD command-line client. It is used to send commands to BIRD
,
82 commands can perform simple actions such
as enabling
/disabling of
83 protocols
, telling BIRD to show various information
, telling it to show
84 a routing table filtered by a
filter, or asking BIRD to reconfigure.
86 Unless you can
't afford dependency on ncurses and readline, you
87 should install BIRD command-line client together with BIRD.
90 define Package/bird2cl/description
91 $(call Package/bird2/Default/description)
93 This is a BIRD lightweight command-line client. It is used to send commands
94 to BIRD, commands can perform simple actions such as enabling/disabling of
95 protocols, telling BIRD to show various information, telling it to show
96 a routing table filtered by a filter, or asking BIRD to reconfigure.
99 CONFIGURE_ARGS += --with-linux-headers="$(LINUX_DIR)" --disable-libssh
101 define Package/bird2/conffiles
107 define Package/bird2/install
108 $(INSTALL_DIR) $(1)/usr/sbin
109 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bird $(1)/usr/sbin/
110 $(INSTALL_DIR) $(1)/etc
111 $(INSTALL_DATA) ./files/bird.conf $(1)/etc/
112 $(INSTALL_DIR) $(1)/etc/init.d
113 $(INSTALL_BIN) ./files/bird.init $(1)/etc/init.d/bird
116 define Package/bird2c/install
117 $(INSTALL_DIR) $(1)/usr/sbin
118 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdc $(1)/usr/sbin/
121 define Package/bird2cl/install
122 $(INSTALL_DIR) $(1)/usr/sbin
123 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdcl $(1)/usr/sbin/
126 $(eval $(call BuildPackage,bird2))
127 $(eval $(call BuildPackage,bird2c))
128 $(eval $(call BuildPackage,bird2cl))