luci-app-olsrd2: upgrade uci-defaults for ucitrack handling to use json
[feed/routing.git] / bird2 / Makefile
1 #
2 # Copyright (C) 2009-2017 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=bird2
10 PKG_VERSION:=2.14
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird
15 PKG_HASH:=b0b9f6f8566541b9be4af1f0cac675c5a3785601a55667a7ec3d7de29735a786
16
17 PKG_MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
18 PKG_LICENSE:=GPL-2.0-or-later
19
20 PKG_BUILD_DEPENDS:=ncurses readline
21 PKG_BUILD_DIR:=$(BUILD_DIR)/bird-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
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.
30
31 endef
32
33 define Package/bird2
34 TITLE:=The BIRD Internet Routing Daemon (v2)
35 URL:=http://bird.network.cz/
36 SECTION:=net
37 CATEGORY:=Network
38 SUBMENU:=Routing and Redirection
39 DEPENDS:=+libpthread
40 CONFLICTS:=bird1-ipv4 bird1-ipv6 bird4 bird6
41 endef
42
43 define Package/bird2c
44 TITLE:=The BIRD command-line client (v2)
45 URL:=http://bird.network.cz/
46 SECTION:=net
47 CATEGORY:=Network
48 SUBMENU:=Routing and Redirection
49 DEPENDS:=+bird2 +libreadline +libncurses
50 CONFLICTS:=bird1c-ipv4 bird1c-ipv6 birdc4 birdc6
51 endef
52
53 define Package/bird2cl
54 TITLE:=The BIRD lightweight command-line client (v2)
55 URL:=http://bird.network.cz/
56 SECTION:=net
57 CATEGORY:=Network
58 SUBMENU:=Routing and Redirection
59 DEPENDS:=+bird2
60 CONFLICTS:=bird1cl-ipv4 bird1cl-ipv6 birdcl4 birdcl6
61 endef
62
63 define Package/bird2/description
64 $(call Package/bird2/Default/description)
65
66 BIRD supports OSPFv2, RIPv2, Babel and BGP protocols for IPv4 and
67 OSPFv3, RIPng, Babel and BGP protocols for IPv6.
68
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
73 configuration syntax.
74
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.
77 endef
78
79 define Package/bird2c/description
80 $(call Package/bird2/Default/description)
81
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.
86
87 Unless you can't afford dependency on ncurses and readline, you
88 should install BIRD command-line client together with BIRD.
89 endef
90
91 define Package/bird2cl/description
92 $(call Package/bird2/Default/description)
93
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.
98 endef
99
100 CONFIGURE_ARGS += --disable-libssh
101
102 define Package/bird2/conffiles
103 /etc/bird.conf
104 /etc/bird4.conf
105 /etc/bird6.conf
106 endef
107
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
115 endef
116
117 define Package/bird2c/install
118 $(INSTALL_DIR) $(1)/usr/sbin
119 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdc $(1)/usr/sbin/
120 endef
121
122 define Package/bird2cl/install
123 $(INSTALL_DIR) $(1)/usr/sbin
124 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdcl $(1)/usr/sbin/
125 endef
126
127 $(eval $(call BuildPackage,bird2))
128 $(eval $(call BuildPackage,bird2c))
129 $(eval $(call BuildPackage,bird2cl))