From 89926d825be9bf387e39de8eb3d2e49dfb43bdea Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 25 Jan 2017 21:48:06 +0100 Subject: [PATCH 1/5] addedd poprouting makefile --- poprouting/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 poprouting/Makefile diff --git a/poprouting/Makefile b/poprouting/Makefile new file mode 100644 index 0000000..5df8cfe --- /dev/null +++ b/poprouting/Makefile @@ -0,0 +1,35 @@ +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 + TITLE :=PopRouting daemon + MENU :=0 + DEPENDS := +libjson-c +libpthread +endef + +define Package/poprouting/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. +Currently it only supports OLSRd2 (aka OONF). +endef + + +$(eval $(call BuildPackage,poprouting)) From 864b8aebaae07e6ca9f29da7374c43bec8c64d5e Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 25 Jan 2017 21:50:27 +0100 Subject: [PATCH 2/5] fixup! addedd poprouting makefile --- poprouting/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poprouting/Makefile b/poprouting/Makefile index 5df8cfe..bf9c3a9 100644 --- a/poprouting/Makefile +++ b/poprouting/Makefile @@ -12,17 +12,18 @@ 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 TITLE :=PopRouting daemon - MENU :=0 + MENU :=1 DEPENDS := +libjson-c +libpthread endef -define Package/poprouting/description +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. From 7927519d2e6de09cc412a314ae99e9c0c885d8d0 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 25 Jan 2017 21:58:08 +0100 Subject: [PATCH 3/5] fixup! fixup! addedd poprouting makefile --- poprouting/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poprouting/Makefile b/poprouting/Makefile index bf9c3a9..a2911ac 100644 --- a/poprouting/Makefile +++ b/poprouting/Makefile @@ -19,6 +19,7 @@ define Package/prince SUBMENU :=Routing and Redirection Mantainer :=Gabriele Gemmi TITLE :=PopRouting daemon + URL :=https://github.com/gabri94/poprouting MENU :=1 DEPENDS := +libjson-c +libpthread endef @@ -33,4 +34,4 @@ Currently it only supports OLSRd2 (aka OONF). endef -$(eval $(call BuildPackage,poprouting)) +$(eval $(call BuildPackage,prince)) From d787ff40a8ad7c02788d07a37f3b13531cd09249 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 25 Jan 2017 23:33:28 +0100 Subject: [PATCH 4/5] added install --- poprouting/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/poprouting/Makefile b/poprouting/Makefile index a2911ac..dd1f454 100644 --- a/poprouting/Makefile +++ b/poprouting/Makefile @@ -20,7 +20,7 @@ define Package/prince Mantainer :=Gabriele Gemmi TITLE :=PopRouting daemon URL :=https://github.com/gabri94/poprouting - MENU :=1 + MENU :=0 DEPENDS := +libjson-c +libpthread endef @@ -33,5 +33,13 @@ uses the betweenness centrality to optimize the timer's value and pushes back th 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)) From 48af2015e652ed04241bbb11a62df00d83864d85 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 26 Jan 2017 01:21:17 +0100 Subject: [PATCH 5/5] Changed description --- poprouting/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poprouting/Makefile b/poprouting/Makefile index dd1f454..6a88905 100644 --- a/poprouting/Makefile +++ b/poprouting/Makefile @@ -28,8 +28,9 @@ 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