2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=0.99.22.4
13 PKG_MD5SUM
:=03ef24a448be47beba80efa2152f8a28
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_URL
:=http
://download.savannah.gnu.org
/releases
/quagga
/
17 PKG_CONFIG_DEPENDS
:= \
19 CONFIG_PACKAGE_quagga-watchquagga \
20 CONFIG_PACKAGE_quagga-zebra \
21 CONFIG_PACKAGE_quagga-libzebra \
22 CONFIG_PACKAGE_quagga-libospf \
23 CONFIG_PACKAGE_quagga-bgpd \
24 CONFIG_PACKAGE_quagga-isisd \
25 CONFIG_PACKAGE_quagga-ospf6d \
26 CONFIG_PACKAGE_quagga-ripd \
27 CONFIG_PACKAGE_quagga-ripngd \
28 CONFIG_PACKAGE_quagga-babeld \
29 CONFIG_PACKAGE_quagga-vtysh
35 include $(INCLUDE_DIR
)/package.mk
37 define Package
/quagga
/Default
40 SUBMENU
:=Routing and Redirection
42 TITLE
:=The Quagga Software Routing Suite
43 URL
:=http
://www.quagga.net
44 MAINTAINER
:=Vasilis Tsiligiannis
<b_tsiligiannis@silverton.gr
>
48 $(call Package
/quagga
/Default
)
53 define Package
/quagga
/description
54 A routing software package that provides TCP
/IP based routing services
55 with routing protocols support such
as RIPv1
, RIPv2
, RIPng
, OSPFv2
,
56 OSPFv3
, BGP-4
, and BGP-4
+
59 define Package
/quagga-watchquagga
60 $(call Package
/quagga
/Default
)
61 TITLE
:=Quagga watchdog
62 DEPENDS
+=+quagga-libzebra
63 DEFAULT
:=y if PACKAGE_quagga
66 define Package
/quagga-zebra
67 $(call Package
/quagga
/Default
)
69 DEPENDS
+=+quagga-libzebra
70 DEFAULT
:=y if PACKAGE_quagga
73 define Package
/quagga-libzebra
74 $(call Package
/quagga
/Default
)
78 define Package
/quagga-libospf
79 $(call Package
/quagga
/Default
)
83 define Package
/quagga-bgpd
84 $(call Package
/quagga
/Default
)
85 DEPENDS
+=+quagga-libzebra
86 TITLE
:=BGPv4
, BGPv4
+, BGPv4- routing engine
89 define Package
/quagga-isisd
90 $(call Package
/quagga
/Default
)
91 DEPENDS
+=+quagga-libzebra
92 TITLE
:=IS-IS routing engine
95 define Package
/quagga-ospfd
96 $(call Package
/quagga
/Default
)
97 DEPENDS
+=+quagga-libospf
+quagga-libzebra
98 TITLE
:=OSPFv2 routing engine
101 define Package
/quagga-ospf6d
102 $(call Package
/quagga
/Default
)
103 DEPENDS
+=+quagga-libospf
+quagga-libzebra @IPV6
104 TITLE
:=OSPFv3 routing engine
107 define Package
/quagga-ripd
108 $(call Package
/quagga
/Default
)
109 DEPENDS
+=+quagga-libzebra
110 TITLE
:=RIP routing engine
113 define Package
/quagga-ripngd
114 $(call Package
/quagga
/Default
)
115 DEPENDS
+=+quagga-libzebra @IPV6
116 TITLE
:=RIPNG routing engine
119 define Package
/quagga-babeld
120 $(call Package
/quagga
/Default
)
121 DEPENDS
+=+quagga-libzebra @IPV6
122 TITLE
:=Babel routing engine
125 define Package
/quagga-vtysh
126 $(call Package
/quagga
/Default
)
127 DEPENDS
+=+quagga-libzebra
+libreadline
+libncurses
128 TITLE
:=integrated
shell for Quagga routing software
131 define Package
/quagga-zebra
/conffiles
132 /etc
/quagga
/zebra.conf
135 define Package
/quagga-bgpd
/conffiles
136 /etc
/quagga
/bgpd.conf
139 define Package
/quagga-isisd
/conffiles
140 /etc
/quagga
/isisd.conf
143 define Package
/quagga-ospfd
/conffiles
144 /etc
/quagga
/ospfd.conf
147 define Package
/quagga-ospf6d
/conffiles
148 /etc
/quagga
/ospf6d.conf
151 define Package
/quagga-ripd
/conffiles
152 /etc
/quagga
/ripd.conf
155 define Package
/quagga-ripngd
/conffiles
156 /etc
/quagga
/ripngd.conf
159 define Package
/quagga-babeld
/conffiles
160 /etc
/quagga
/babeld.conf
164 CONFIG_PACKAGE_quagga-libzebra
:=m
165 CONFIG_PACKAGE_quagga-libospf
:=m
166 CONFIG_PACKAGE_quagga-watchquagga
:=m
167 CONFIG_PACKAGE_quagga-zebra
:=m
168 CONFIG_PACKAGE_quagga-bgpd
:=m
169 CONFIG_PACKAGE_quagga-isisd
:=m
170 CONFIG_PACKAGE_quagga-ospf6d
:=m
171 CONFIG_PACKAGE_quagga-ripd
:=m
172 CONFIG_PACKAGE_quagga-ripngd
:=m
173 CONFIG_PACKAGE_quagga-babeld
:=m
174 CONFIG_PACKAGE_quagga-vtysh
:=m
178 --localstatedir
=/var
/run
/quagga \
179 --sysconfdir
=/etc
/quagga
/ \
182 --enable-user
=network \
183 --enable-group
=network \
185 --enable-multipath
=8 \
186 --disable-ospfclient \
187 --disable-capabilities \
189 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-libzebra
,zebra
) \
190 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-libospf
,ospfd
) \
191 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-bgpd
,bgpd
) \
192 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-isisd
,isisd
) \
193 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-ospf6d
,ospf6d
) \
194 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-ripd
,ripd
) \
195 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-ripngd
,ripngd
) \
196 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-babeld
,babeld
) \
197 $(call autoconf_bool
,CONFIG_PACKAGE_quagga-vtysh
,vtysh
) \
200 CFLAGS
="$(TARGET_CFLAGS) -std=gnu99"
202 define Package
/quagga
/install
203 $(INSTALL_DIR
) $(1)/usr
/sbin
204 $(INSTALL_BIN
) .
/files
/quagga
$(1)/usr
/sbin
/quagga.init
205 $(INSTALL_DIR
) $(1)/etc
/init.d
206 $(INSTALL_BIN
) .
/files
/quagga.init
$(1)/etc
/init.d
/quagga
209 define Package
/quagga-watchquagga
/install
210 $(INSTALL_DIR
) $(1)/usr
/sbin
211 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/watchquagga
$(1)/usr
/sbin
/
214 define Package
/quagga-zebra
/install
215 $(INSTALL_DIR
) $(1)/usr
/sbin
216 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/zebra
$(1)/usr
/sbin
/
217 $(INSTALL_DIR
) $(1)/etc
/quagga
218 chmod
0750 $(1)/etc
/quagga
219 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/zebra.conf
222 define Package
/quagga-bgpd
/install
223 $(INSTALL_DIR
) $(1)/usr
/sbin
224 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/bgpd
$(1)/usr
/sbin
/
225 $(INSTALL_DIR
) $(1)/etc
/quagga
226 chmod
0750 $(1)/etc
/quagga
227 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/bgpd.conf
230 define Package
/quagga-isisd
/install
231 $(INSTALL_DIR
) $(1)/usr
/sbin
232 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/isisd
$(1)/usr
/sbin
/
233 $(INSTALL_DIR
) $(1)/etc
/quagga
234 chmod
0750 $(1)/etc
/quagga
235 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/isisd.conf
238 define Package
/quagga-ospfd
/install
239 $(INSTALL_DIR
) $(1)/usr
/sbin
240 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ospfd
$(1)/usr
/sbin
/
241 $(INSTALL_DIR
) $(1)/etc
/quagga
242 chmod
0750 $(1)/etc
/quagga
243 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/ospfd.conf
246 define Package
/quagga-ospf6d
/install
247 $(INSTALL_DIR
) $(1)/usr
/sbin
248 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ospf6d
$(1)/usr
/sbin
/
249 $(INSTALL_DIR
) $(1)/etc
/quagga
250 chmod
0750 $(1)/etc
/quagga
251 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/ospf6d.conf
254 define Package
/quagga-ripd
/install
255 $(INSTALL_DIR
) $(1)/usr
/sbin
256 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ripd
$(1)/usr
/sbin
/
257 $(INSTALL_DIR
) $(1)/etc
/quagga
258 chmod
0750 $(1)/etc
/quagga
259 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/ripd.conf
262 define Package
/quagga-ripngd
/install
263 $(INSTALL_DIR
) $(1)/usr
/sbin
264 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ripngd
$(1)/usr
/sbin
/
265 $(INSTALL_DIR
) $(1)/etc
/quagga
266 chmod
0750 $(1)/etc
/quagga
267 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/ripngd.conf
270 define Package
/quagga-babeld
/install
271 $(INSTALL_DIR
) $(1)/usr
/sbin
272 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/babeld
$(1)/usr
/sbin
/
273 $(INSTALL_DIR
) $(1)/etc
/quagga
274 chmod
0750 $(1)/etc
/quagga
275 $(INSTALL_CONF
) .
/files
/quagga.conf
$(1)/etc
/quagga
/babeld.conf
278 define Package
/quagga-vtysh
/install
279 $(INSTALL_DIR
) $(1)/usr
/bin
280 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vtysh
$(1)/usr
/bin
/
283 define Package
/quagga-libospf
/install
284 $(INSTALL_DIR
) $(1)/usr
/lib
285 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libospf.so.
* $(1)/usr
/lib
/
288 define Package
/quagga-libzebra
/install
289 $(INSTALL_DIR
) $(1)/usr
/lib
290 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libzebra.so.
* $(1)/usr
/lib
/
293 $(eval
$(call BuildPackage
,quagga
))
294 $(eval
$(call BuildPackage
,quagga-libzebra
))
295 $(eval
$(call BuildPackage
,quagga-libospf
))
296 $(eval
$(call BuildPackage
,quagga-watchquagga
))
297 $(eval
$(call BuildPackage
,quagga-zebra
))
298 $(eval
$(call BuildPackage
,quagga-bgpd
))
299 $(eval
$(call BuildPackage
,quagga-isisd
))
300 $(eval
$(call BuildPackage
,quagga-ospfd
))
301 $(eval
$(call BuildPackage
,quagga-ospf6d
))
302 $(eval
$(call BuildPackage
,quagga-ripd
))
303 $(eval
$(call BuildPackage
,quagga-ripngd
))
304 $(eval
$(call BuildPackage
,quagga-babeld
))
305 $(eval
$(call BuildPackage
,quagga-vtysh
))