alfred: Support interface IDs with more than two digits
[feed/routing.git] / poprouting / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=prince
4 PKG_VERSION:=v0.3.1
5 PKG_RELEASE:=2
6
7 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
8 PKG_USE_MIPS16:=0
9 PKG_SOURCE_PROTO:=git
10 PKG_SOURCE:=prince-$(PKG_VERSION).tar.gz
11 PKG_SOURCE_URL:=https://github.com/gabri94/poprouting.git
12 PKG_SOURCE_VERSION:=v0.3.1
13 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/prince
17 SECTION:=net
18 CATEGORY:=Network
19 SUBMENU:=Routing and Redirection
20 MAINTAINER:=Gabriele Gemmi <gabriel@autistici.org>
21 TITLE:=PopRouting daemon
22 URL:=https://github.com/gabri94/poprouting
23 DEPENDS:= +libjson-c +libpthread
24 endef
25
26 define Package/prince/description
27 Prince is an open source implementation of the PopRouting Algorithm.
28 It has been developed as a Google Summer of Code Project in collaboration with Freifunk and the University of Trento.
29
30 It work by fetching topology data from a Link State routing demon(OONF, OLSR, OSPF, etc),
31 calculating the betweenness centrality using the topology, then using these data
32 the timer's value are optimized. Finally the timers are pushed back to the routing demon.
33 Currently it only supports OLSRd2 (aka OONF).
34 endef
35
36 CFLAGS += $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
37 LDFLAGS += $(TARGET_LDFLAGS)
38
39 define Package/prince/install
40 $(INSTALL_DIR) $(1)/usr/lib
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/output/prince $(1)/usr/sbin/
43 $(INSTALL_DATA) $(PKG_BUILD_DIR)/output/libprince_oonf_c.so $(1)/usr/lib/
44 endef
45
46
47 $(eval $(call BuildPackage,prince))