New makefile for prince v0.3
[feed/routing.git] / poprouting / Makefile
index a2911acf070a74bc1e22b5fed4fad9f04c8e06ea..cb43487b0892d1cebd9916364e8c81716b17b92f 100644 (file)
@@ -1,16 +1,16 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=prince
-PKG_VERSION:=v0.2
-PKG_RELEASE:=2
+PKG_VERSION:=v0.3
+PKG_RELEASE:=3
 
 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
+PKG_SOURCE_VERSION:=346e59afefe5c46ddd6377a814da40254f64d26d
+PKG_SOURCE_SUBDIR:=prince-v0.3
 include $(INCLUDE_DIR)/package.mk
 
 define Package/prince
@@ -20,7 +20,7 @@ define Package/prince
        Mantainer :=Gabriele Gemmi <gabriel@autistici.org>
        TITLE :=PopRouting daemon
        URL :=https://github.com/gabri94/poprouting
-       MENU :=1
+       MENU :=0
        DEPENDS := +libjson-c +libpthread
 endef
 
@@ -28,10 +28,18 @@ 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 fetches topology data from a Link State routing deamon(OONF, OLSR, OSPF, etc),
-uses the betweenness centrality to optimize the timer's value and pushes back the optimized timer.
+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_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/output/prince $(1)/usr/sbin/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/output/libprince_oonf_c.so $(1)/usr/lib/
+endef
+
 
 $(eval $(call BuildPackage,prince))