source: packages/net/babel/Makefile @ 22310

Last change on this file since 22310 was 22310, checked in by kerneis, 6 years ago

[packages] babel: use uci_get_state

Signed-off-by: Gabriel Kerneis <kerneis@…>

  • Property svn:copyright set to Copyright (C) 2007 OpenWrt.org
File size: 1.7 KB
Line 
1#
2# Copyright (C) 2007-2009 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=babeld
11PKG_VERSION:=1.0.1
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
16PKG_MD5SUM:=b46b7f62bf8c213d5faffbe81c424e76
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/babeld
21  SECTION:=net
22  CATEGORY:=Network
23  TITLE:=A loop-free distance-vector routing protocol
24  URL:=http://www.pps.jussieu.fr/~jch/software/babel/
25  MAINTAINER:=Gabriel Kerneis <kerneis@pps.jussieu.fr>
26  DEPENDS:=+kmod-ipv6 +librt
27endef
28
29define Package/babeld/description
30 Babel is a loop-avoiding distance-vector routing protocol roughly based
31 on DSDV and AODV, but with provisions for link cost estimation and
32 redistribution of routes from other routing protocols.
33 While it is optimised for wireless mesh networks, Babel will also work
34 efficiently on wired networks. It will generate between 1.2 and 2.4 times
35 the amount of routing traffic that RIPng would generate, while
36 never counting to infinity.
37endef
38
39define Package/babeld/conffiles
40/etc/babeld.conf
41/etc/config/babeld
42endef
43
44MAKE_FLAGS+= \
45        CFLAGS="$(TARGET_CFLAGS)" \
46
47define Package/babeld/install
48        $(INSTALL_DIR) $(1)/usr/sbin
49        $(INSTALL_BIN) $(PKG_BUILD_DIR)/babeld $(1)/usr/sbin/
50        $(INSTALL_DIR) $(1)/etc
51        $(INSTALL_CONF) ./files/babeld.conf $(1)/etc/
52        $(INSTALL_DIR) $(1)/etc/config
53        $(INSTALL_CONF) ./files/babeld.config $(1)/etc/config/babeld
54        $(INSTALL_DIR) $(1)/etc/init.d
55        $(INSTALL_BIN) ./files/babeld.init $(1)/etc/init.d/babeld
56endef
57
58$(eval $(call BuildPackage,babeld))
Note: See TracBrowser for help on using the repository browser.