[OLSRd] Bump OLSRd version to 0.9.7
[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.0.2
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:=035f91d6f568f8ed438a0814235ac4c5c79147cd2acf201322c307732883480f
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)
19
20 PKG_LICENSE:=GPL-2.0
21
22 include $(INCLUDE_DIR)/package.mk
23
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.
29
30 endef
31
32 define Package/bird2
33 TITLE:=The BIRD Internet Routing Daemon (v2)
34 URL:=http://bird.network.cz/
35 SECTION:=net
36 CATEGORY:=Network
37 SUBMENU:=Routing and Redirection
38 DEPENDS:=+libpthread
39 CONFLICTS:=bird1-ipv4 bird1-ipv6 bird4 bird6
40 endef
41
42 define Package/bird2c
43 TITLE:=The BIRD command-line client (v2)
44 URL:=http://bird.network.cz/
45 SECTION:=net
46 CATEGORY:=Network
47 SUBMENU:=Routing and Redirection
48 DEPENDS:=+bird2 +libreadline +libncurses
49 CONFLICTS:=bird1c-ipv4 bird1c-ipv6 birdc4 birdc6
50 endef
51
52 define Package/bird2cl
53 TITLE:=The BIRD lightweight command-line client (v2)
54 URL:=http://bird.network.cz/
55 SECTION:=net
56 CATEGORY:=Network
57 SUBMENU:=Routing and Redirection
58 DEPENDS:=+bird2
59 CONFLICTS:=bird1cl-ipv4 bird1cl-ipv6 birdcl4 birdcl6
60 endef
61
62 define Package/bird2/description
63 $(call Package/bird2/Default/description)
64
65 BIRD supports OSPFv2, RIPv2, Babel and BGP protocols for IPv4 and
66 OSPFv3, RIPng, Babel and BGP protocols for IPv6.
67
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
72 configuration syntax.
73
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.
76 endef
77
78 define Package/bird2c/description
79 $(call Package/bird2/Default/description)
80
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.
85
86 Unless you can't afford dependency on ncurses and readline, you
87 should install BIRD command-line client together with BIRD.
88 endef
89
90 define Package/bird2cl/description
91 $(call Package/bird2/Default/description)
92
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.
97 endef
98
99 CONFIGURE_ARGS += --with-linux-headers="$(LINUX_DIR)" --disable-libssh
100
101 define Package/bird2/conffiles
102 /etc/bird.conf
103 /etc/bird4.conf
104 /etc/bird6.conf
105 endef
106
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
114 endef
115
116 define Package/bird2c/install
117 $(INSTALL_DIR) $(1)/usr/sbin
118 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdc $(1)/usr/sbin/
119 endef
120
121 define Package/bird2cl/install
122 $(INSTALL_DIR) $(1)/usr/sbin
123 $(INSTALL_BIN) $(PKG_BUILD_DIR)/birdcl $(1)/usr/sbin/
124 endef
125
126 $(eval $(call BuildPackage,bird2))
127 $(eval $(call BuildPackage,bird2c))
128 $(eval $(call BuildPackage,bird2cl))