summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastian Bittorf <bb@npl.de>2017-01-27 10:26:14 +0100
committerGitHub <noreply@github.com>2017-01-27 10:26:14 +0100
commitc4d975fc18af8b1ab78566708a81323d5c7fda8f (patch)
treed26ab3d018937044b95813e1632e437a7b8f7e00
parent1975a41c2cc4ba0e612e7c617d9515b2f3e1e6b1 (diff)
parent7737ef11efb4b6e35bfc27797924daf882ea85fc (diff)
Merge pull request #265 from gabri94/for-15.05
For 15.05
-rw-r--r--poprouting/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/poprouting/Makefile b/poprouting/Makefile
new file mode 100644
index 0000000..6a88905
--- /dev/null
+++ b/poprouting/Makefile
@@ -0,0 +1,46 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=prince
+PKG_VERSION:=v0.2
+PKG_RELEASE:=2
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/prince-$(PKG_VERSION)
+PKG_USE_MIPS16:=0
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE:=prince-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/gabri94/poprouting.git
+PKG_SOURCE_VERSION:=v0.2
+PKG_SOURCE_SUBDIR:=prince-v0.2
+include $(INCLUDE_DIR)/package.mk
+
+define Package/prince
+ SECTION :=net
+ CATEGORY :=Network
+ SUBMENU :=Routing and Redirection
+ Mantainer :=Gabriele Gemmi <gabriel@autistici.org>
+ TITLE :=PopRouting daemon
+ URL :=https://github.com/gabri94/poprouting
+ MENU :=0
+ DEPENDS := +libjson-c +libpthread
+endef
+
+define Package/prince/description
+Prince is an open source implementation of the PopRouting Algorithm.
+It has been developed as a Google Summer of Code Project in collaboration with Freifunk and the University of Trento.
+
+It work by fetching topology data from a Link State routing demon(OONF, OLSR, OSPF, etc),
+calculating the betweenness centrality using the topology, then using these data
+the timer's value are optimized. Finally the timers are pushed back to the routing demon.
+Currently it only supports OLSRd2 (aka OONF).
+endef
+
+define Package/prince/install
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/graph-parser_c/build/lib/libgraphcparser.so $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/prince/build/prince_c $(1)/usr/sbin/
+ $(INSTALL_DATA) $(PKG_BUILD_DIR)/prince/build/libprince_oonf.so $(1)/usr/lib/
+endef
+
+
+$(eval $(call BuildPackage,prince))