openwrt-routing/poprouting/Makefile

48 lines
1.5 KiB
Makefile
Raw Normal View History

2017-01-25 21:48:06 +01:00
include $(TOPDIR)/rules.mk
PKG_NAME:=prince
2017-03-04 17:17:22 +01:00
PKG_VERSION:=v0.3.1
PKG_RELEASE:=2
2017-01-25 21:48:06 +01:00
2017-03-02 18:06:11 +01:00
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
2017-01-25 21:48:06 +01:00
PKG_USE_MIPS16:=0
PKG_SOURCE_PROTO:=git
PKG_SOURCE:=prince-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/gabri94/poprouting.git
2017-03-04 17:17:22 +01:00
PKG_SOURCE_VERSION:=v0.3.1
2017-03-02 18:06:11 +01:00
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
2017-01-25 21:48:06 +01:00
include $(INCLUDE_DIR)/package.mk
2017-01-25 21:50:27 +01:00
2017-01-25 21:48:06 +01:00
define Package/prince
SECTION:=net
CATEGORY:=Network
SUBMENU:=Routing and Redirection
MAINTAINER:=Gabriele Gemmi <gabriel@autistici.org>
TITLE:=PopRouting daemon
URL:=https://github.com/gabri94/poprouting
DEPENDS:= +libjson-c +libpthread
2017-01-25 21:48:06 +01:00
endef
2017-01-25 21:50:27 +01:00
define Package/prince/description
2017-01-25 21:48:06 +01:00
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.
2017-01-26 01:21:17 +01:00
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.
2017-01-25 21:48:06 +01:00
Currently it only supports OLSRd2 (aka OONF).
endef
CFLAGS += $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
LDFLAGS += $(TARGET_LDFLAGS)
2017-01-25 23:33:28 +01:00
define Package/prince/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/sbin
2017-03-01 09:23:48 +01:00
$(INSTALL_BIN) $(PKG_BUILD_DIR)/output/prince $(1)/usr/sbin/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/output/libprince_oonf_c.so $(1)/usr/lib/
2017-01-25 23:33:28 +01:00
endef
2017-01-25 21:48:06 +01:00
$(eval $(call BuildPackage,prince))