2013-04-04 13:56:25 +02:00
|
|
|
# Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# The full GNU General Public License is included in this distribution in
|
|
|
|
# the file called "COPYING".
|
|
|
|
#
|
|
|
|
# Contibutors:
|
|
|
|
# Axel Neumann, Simó Albert i Beltran, Pau Escrich
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
PKG_NAME:=bmx6
|
2022-02-25 17:56:25 +01:00
|
|
|
PKG_VERSION:=0.1-alpha
|
treewide: remove AUTORELEASE
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] - https://github.com/openwrt/packages/commit/0c10c224be81f9221dabfab449855ab6718d2a0c
Signed-off-by: Nick Hainke <vincent@systemli.org>
2023-04-26 11:40:36 +02:00
|
|
|
PKG_RELEASE:=1
|
2013-04-04 13:56:25 +02:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-07-12 16:50:47 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/bmx-routing/bmx6.git
|
2022-02-25 17:56:25 +01:00
|
|
|
PKG_SOURCE_DATE:=2020-06-08
|
|
|
|
PKG_SOURCE_VERSION:=65cb0d542f16a4b4689f5ad2542c9f24215a6616
|
|
|
|
PKG_MIRROR_HASH:=45501cfe9f82e08e8082147f90b94ba5b6bd11771a9140412bfbf5523a796177
|
2013-04-04 13:56:25 +02:00
|
|
|
|
2022-02-25 17:56:25 +01:00
|
|
|
PKG_MAINTAINER:=Axel Neumann <neumann@cgws.de>
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2013-04-04 13:56:25 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
MAKE_ARGS += \
|
|
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) -I. -I$(STAGING_DIR)/usr/include -DNO_DEBUG_ALL -DNO_DEBUG_DUMP" \
|
|
|
|
EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib " \
|
2015-06-16 15:19:15 +02:00
|
|
|
GIT_REV="$(PKG_REV)" \
|
2013-04-04 13:56:25 +02:00
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
INSTALL_DIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
STRIP="/bin/false" \
|
|
|
|
build_all
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6/Default
|
2013-04-04 13:56:25 +02:00
|
|
|
SECTION:=net
|
2013-04-16 14:59:32 +02:00
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Routing and Redirection
|
2013-04-17 15:10:56 +02:00
|
|
|
TITLE:=BMX6 layer 3 routing daemon
|
2022-02-25 17:56:25 +01:00
|
|
|
URL:=https://bmx6.net/projects/bmx6
|
2013-06-08 16:57:24 +02:00
|
|
|
DEPENDS:=+kmod-ip6-tunnel +kmod-iptunnel6 +kmod-tun
|
2013-04-04 13:56:25 +02:00
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6/description
|
|
|
|
BMX6 layer 3 routing daemon supporting IPv4, IPv6, and IPv4 over IPv6
|
2013-04-04 13:56:25 +02:00
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6
|
|
|
|
$(call Package/bmx6/Default)
|
2013-04-04 13:56:25 +02:00
|
|
|
MENU:=1
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-uci-config
|
|
|
|
$(call Package/bmx6/Default)
|
|
|
|
DEPENDS:=bmx6 +libuci
|
2013-04-04 13:56:25 +02:00
|
|
|
TITLE:=configuration plugin based on uci (recommended!)
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-json
|
|
|
|
$(call Package/bmx6/Default)
|
2015-04-01 00:14:30 +02:00
|
|
|
DEPENDS:=bmx6 +libjson-c
|
|
|
|
TITLE:=json plugin based on json-c
|
2013-04-04 13:56:25 +02:00
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-sms
|
|
|
|
$(call Package/bmx6/Default)
|
|
|
|
DEPENDS:=bmx6
|
2013-04-04 13:56:25 +02:00
|
|
|
TITLE:=sms plugin
|
|
|
|
endef
|
|
|
|
|
2014-03-08 21:35:54 +01:00
|
|
|
#define Package/bmx6-quagga
|
|
|
|
# $(call Package/bmx6/Default)
|
|
|
|
# DEPENDS:=bmx6 +qmp-quagga @BROKEN
|
|
|
|
# TITLE:=bmx6 quagga plugin to redistribute/export routes (needs manet/bmx6 patched quagga 0.99.21)
|
|
|
|
#endef
|
2013-04-04 13:56:25 +02:00
|
|
|
|
2013-10-02 15:47:51 +02:00
|
|
|
define Package/bmx6-table
|
|
|
|
$(call Package/bmx6/Default)
|
|
|
|
DEPENDS:=bmx6
|
|
|
|
TITLE:=bmx6 table plugin to automatic announce routing-table routes via ip6ip tunnels
|
|
|
|
endef
|
|
|
|
|
2013-04-04 13:56:25 +02:00
|
|
|
define Build/Configure
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS)
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6/install
|
2013-04-04 13:56:25 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/config $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bmx6 $(1)/usr/sbin/bmx6
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-uci-config/conffiles
|
2013-04-04 13:56:25 +02:00
|
|
|
/etc/config/bmx6
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-uci-config/install
|
2013-04-04 13:56:25 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib $(1)/etc/config $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_uci_config/bmx6_config.so $(1)/usr/lib/bmx6_config.so
|
|
|
|
$(INSTALL_BIN) ./files/etc/init.d/bmx6 $(1)/etc/init.d/bmx6
|
|
|
|
$(INSTALL_DATA) ./files/etc/config/bmx6 $(1)/etc/config/bmx6
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-json/install
|
2013-04-04 13:56:25 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_json/bmx6_json.so $(1)/usr/lib/bmx6_json.so
|
|
|
|
endef
|
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
define Package/bmx6-sms/install
|
2013-04-04 13:56:25 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_sms/bmx6_sms.so $(1)/usr/lib/bmx6_sms.so
|
|
|
|
endef
|
|
|
|
|
2013-10-02 15:47:51 +02:00
|
|
|
define Package/bmx6-table/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_table/bmx6_table.so $(1)/usr/lib/bmx6_table.so
|
|
|
|
endef
|
|
|
|
|
2014-03-08 21:35:54 +01:00
|
|
|
#define Package/bmx6-quagga/install
|
|
|
|
# $(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
# $(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmx6_quagga/bmx6_quagga.so $(1)/usr/lib/bmx6_quagga.so
|
|
|
|
#endef
|
2013-04-04 13:56:25 +02:00
|
|
|
|
2013-04-16 14:56:59 +02:00
|
|
|
$(eval $(call BuildPackage,bmx6))
|
|
|
|
$(eval $(call BuildPackage,bmx6-uci-config))
|
|
|
|
$(eval $(call BuildPackage,bmx6-json))
|
|
|
|
$(eval $(call BuildPackage,bmx6-sms))
|
2014-03-08 21:35:54 +01:00
|
|
|
#$(eval $(call BuildPackage,bmx6-quagga))
|
2013-10-02 15:47:51 +02:00
|
|
|
$(eval $(call BuildPackage,bmx6-table))
|