2014-05-26 22:19:42 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2014 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:=minimalist-pcproxy
|
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 17:40:36 +08:00
|
|
|
PKG_RELEASE:=7
|
2014-05-26 22:19:42 +08:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-07-12 22:50:47 +08:00
|
|
|
PKG_SOURCE_URL:=https://github.com/fingon/minimalist-pcproxy.git
|
2022-02-26 20:52:57 +08:00
|
|
|
PKG_SOURCE_DATE:=2014-12-12
|
|
|
|
PKG_SOURCE_VERSION:=2d6d1b0b0a3b79a9b4a9b0a7606a84600a967bcb
|
2024-04-07 23:35:58 +08:00
|
|
|
PKG_MIRROR_HASH:=26dcfe5fa2a4924a02830c243cf59d61055f43ec3df8eb77e86d74acf9ac034f
|
2014-05-26 22:19:42 +08:00
|
|
|
|
2022-02-26 20:52:57 +08:00
|
|
|
PKG_MAINTAINER:=Markus Stenberg <fingon@iki.fi>
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2014-05-26 22:19:42 +08:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/minimalist-pcproxy
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Lightweight PCP proxy
|
|
|
|
URL:=https://github.com/fingon/minimalist-pcproxy
|
2016-06-05 08:13:13 +08:00
|
|
|
DEPENDS:=+libubox @IPV6
|
2014-05-26 22:19:42 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/minimalist-pcproxy/description
|
2022-02-26 20:52:57 +08:00
|
|
|
This package contains a daemon which can be used to forward
|
|
|
|
PCP (Port Control Protocol - RFC6887) requests requests to PCP remote servers.
|
2014-05-26 22:19:42 +08:00
|
|
|
|
2022-02-26 20:52:57 +08:00
|
|
|
In and of itself, it is not very useful, but combined with hnetd+miniupnpd
|
|
|
|
it allows for control of NAT forwarding and firewall pinholes from multiple
|
|
|
|
hops away.
|
2014-05-26 22:19:42 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/minimalist-pcproxy/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/minimalist-pcproxy $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
|
|
$(INSTALL_BIN) ./files/minimalist-pcproxy.defaults $(1)/etc/uci-defaults/x-minimalist-pcproxy.defaults
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/minimalist-pcproxy/postinst
|
2014-06-16 01:52:53 +08:00
|
|
|
#!/bin/sh
|
2014-05-26 22:19:42 +08:00
|
|
|
[ -n "$${IPKG_INSTROOT}" ] || {
|
|
|
|
(. /etc/uci-defaults/x-minimalist-pcproxy.defaults) && rm -f /etc/uci-defaults/x-minimalist-pcproxy.defaults
|
|
|
|
}
|
|
|
|
exit 0
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,minimalist-pcproxy))
|