X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=poprouting%2FMakefile;h=6bede93212ed07b6abe38b29e0783a39175d6477;hb=77a88d5d0b21d516f10aa47fe5ee787211a6e177;hp=bf9c3a92981acf07b86d9082ecbe1f14eadb91a2;hpb=2fa9b0cec95e08f5a7fd8c5a25dd6708e67cbe83;p=lede-routing%2F.git diff --git a/poprouting/Makefile b/poprouting/Makefile index bf9c3a9..6bede93 100644 --- a/poprouting/Makefile +++ b/poprouting/Makefile @@ -1,36 +1,47 @@ include $(TOPDIR)/rules.mk PKG_NAME:=prince -PKG_VERSION:=v0.2 +PKG_VERSION:=v0.3.1 PKG_RELEASE:=2 -PKG_BUILD_DIR:=$(BUILD_DIR)/prince-$(PKG_VERSION) +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(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:=v0.3.1 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION) include $(INCLUDE_DIR)/package.mk define Package/prince - SECTION :=net - CATEGORY :=Network - SUBMENU :=Routing and Redirection - Mantainer :=Gabriele Gemmi - TITLE :=PopRouting daemon - MENU :=1 - DEPENDS := +libjson-c +libpthread + SECTION:=net + CATEGORY:=Network + SUBMENU:=Routing and Redirection + MAINTAINER:=Gabriele Gemmi + TITLE:=PopRouting daemon + URL:=https://github.com/gabri94/poprouting + 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 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 +CFLAGS += $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) +LDFLAGS += $(TARGET_LDFLAGS) -$(eval $(call BuildPackage,poprouting)) +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))