mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-07 03:06:53 +08:00
3e96c851a7
OpenWrt/packages removed AUTORELEASE treewide. Remove it also in the
routing feed.
This is just copied from [0] with modification to the sed cmd because it
was not working for the routing feed:
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/routing; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's/\/Makefile$//';);
do
make package/$i/download
done
[0] - 0c10c224be
Signed-off-by: Nick Hainke <vincent@systemli.org>
66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
#
|
|
# Copyright (C) 2009-2018 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=prince
|
|
PKG_VERSION:=0.4
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/AdvancedNetworkingSystems/prince/archive/refs/tags/v$(PKG_VERSION).tar.gz?
|
|
PKG_HASH:=9e3ce87343f5ea1d66757f8c704b62ff47d5eb245a191cf1e6a9ec106c5da90e
|
|
|
|
PKG_MAINTAINER:=Gabriele Gemmi <gabriel@autistici.org>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
|
|
# out of source build
|
|
CMAKE_BINARY_SUBDIR:=build
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/prince
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Routing and Redirection
|
|
TITLE:=Prince
|
|
URL:=https://github.com/AdvancedNetworkingSystems/prince
|
|
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.
|
|
|
|
Prince fetches topology data from a Link State routing daemon (OONF, OLSR, OSPF, etc),
|
|
calculates the betweenness centrality using the topology and then computes the
|
|
the timers' optimal values using these data. At the end of the computation the timers are pushed back to the routing daemon.
|
|
Since v0.4 it supports both OONF and OLSRd.
|
|
endef
|
|
|
|
define Package/prince/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/prince $(1)/usr/bin/prince
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/libprince_oonf.so $(1)/usr/lib
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/build/libprince_olsr.so $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/prince.init $(1)/etc/init.d/prince
|
|
$(INSTALL_DATA) ./files/prince.conf $(1)/etc/prince.conf
|
|
endef
|
|
|
|
CFLAGS += $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
|
|
LDFLAGS += $(TARGET_LDFLAGS)
|
|
|
|
$(eval $(call BuildPackage,prince))
|