2014-11-05 07:17:53 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 Openwrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=bcp38
|
2016-06-12 21:09:05 +08:00
|
|
|
PKG_VERSION:=5
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
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/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-22 00:32:27 +08:00
|
|
|
PKG_RELEASE:=11
|
2024-01-31 04:27:53 +08:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-11-05 07:17:53 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/bcp38
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Routing and Redirection
|
|
|
|
TITLE:=BCP38 compliance
|
|
|
|
URL:=https://github.com/dtaht/ceropackages-3.10
|
|
|
|
MAINTAINER:=Toke Høiland-Jørgensen <toke@toke.dk>
|
2019-01-28 14:38:44 +08:00
|
|
|
PKGARCH:=all
|
2014-11-05 07:17:53 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcp38/description
|
2017-01-09 02:50:50 +08:00
|
|
|
bcp38 implements IETF BCP38 for home routers.
|
|
|
|
See https://tools.ietf.org/html/bcp38.
|
|
|
|
|
2022-11-15 23:26:38 +08:00
|
|
|
This package provides BCP38 for IPv4 only - IPv6 uses source
|
2017-01-09 02:50:50 +08:00
|
|
|
specific default routes, so no firewall configuration is needed.
|
2014-11-05 07:17:53 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcp38/conffiles
|
|
|
|
/etc/config/bcp38
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcp38/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) ./files/bcp38.config $(1)/etc/config/bcp38
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/bcp38
|
|
|
|
$(INSTALL_BIN) ./files/run.sh $(1)/usr/lib/bcp38/run.sh
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
$(INSTALL_BIN) ./files/bcp38.defaults $(1)/etc/uci-defaults/bcp38
|
2018-04-19 15:04:30 +08:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/bcp38.init $(1)/etc/init.d/bcp38
|
2014-11-05 07:17:53 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcp38/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
[ -x /etc/uci-defaults/bcp38 ] && /etc/uci-defaults/bcp38 || exit 0
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/bcp38/postrm
|
|
|
|
#!/bin/sh
|
|
|
|
uci delete firewall.bcp38
|
|
|
|
uci commit
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,bcp38))
|