fixed +PKG_RELEASE
[lede-routing/.git] / poprouting / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=prince
4 PKG_VERSION:=v0.3.1
5 PKG_RELEASE:=1
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         Mantainer :=Gabriele Gemmi <gabriel@autistici.org>
21         TITLE :=PopRouting daemon
22         URL :=https://github.com/gabri94/poprouting
23         MENU :=0
24         DEPENDS := +libjson-c +libpthread
25 endef
26
27 define Package/prince/description
28 Prince is an open source implementation of the PopRouting Algorithm.
29 It has been developed as a Google Summer of Code Project in collaboration with Freifunk and the University of Trento.
30
31 It work by fetching topology data from a Link State routing demon(OONF, OLSR, OSPF, etc),
32 calculating the betweenness centrality using the topology, then using these data
33 the timer's value are optimized. Finally the timers are pushed back to the routing demon.
34 Currently it only supports OLSRd2 (aka OONF).
35 endef
36
37 define Package/prince/install
38         $(INSTALL_DIR) $(1)/usr/lib
39         $(INSTALL_DIR) $(1)/usr/sbin
40         $(INSTALL_BIN) $(PKG_BUILD_DIR)/output/prince $(1)/usr/sbin/
41         $(INSTALL_DATA) $(PKG_BUILD_DIR)/output/libprince_oonf_c.so $(1)/usr/lib/
42 endef
43
44
45 $(eval $(call BuildPackage,prince))