* [PR PATCH] New package: miniupnpd-nftables
@ 2024-10-25 4:11 lethedata
2024-10-25 4:18 ` lethedata
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: lethedata @ 2024-10-25 4:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
There is a new pull request by lethedata against master on the void-packages repository
https://github.com/lethedata/void-packages miniupnpd-nftables
https://github.com/void-linux/void-packages/pull/52770
New package: miniupnpd-nftables
Builds miniupnpd with nftables support rather than iptables
#### Testing the changes
- I tested the changes in this PR: **YES - Currently Testing**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
A patch file from https://github.com/void-linux/void-packages/pull/52770.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-miniupnpd-nftables-52770.patch --]
[-- Type: text/x-diff, Size: 5059 bytes --]
From 1f2ffe90ed65a2ab51fdb7ba395d99323f95b6cd Mon Sep 17 00:00:00 2001
From: Echo Nar <echo@lethedata.com>
Date: Thu, 24 Oct 2024 22:49:54 -0500
Subject: [PATCH] New package: miniupnpd-nftables
Builds miniupnpd with nftables support rather than iptables
---
.../miniupnpd-nftables/files/README.voidlinux | 3 ++
.../miniupnpd-nftables/files/miniupnpd/run | 4 ++
.../patches/fix-configure-script.patch | 11 ++++
srcpkgs/miniupnpd-nftables/template | 53 +++++++++++++++++++
srcpkgs/miniupnpd-nftables/update | 1 +
srcpkgs/miniupnpd/template | 1 +
6 files changed, 73 insertions(+)
create mode 100644 srcpkgs/miniupnpd-nftables/files/README.voidlinux
create mode 100644 srcpkgs/miniupnpd-nftables/files/miniupnpd/run
create mode 100644 srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch
create mode 100644 srcpkgs/miniupnpd-nftables/template
create mode 100644 srcpkgs/miniupnpd-nftables/update
diff --git a/srcpkgs/miniupnpd-nftables/files/README.voidlinux b/srcpkgs/miniupnpd-nftables/files/README.voidlinux
new file mode 100644
index 00000000000000..33e436a87d762f
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/files/README.voidlinux
@@ -0,0 +1,3 @@
+Before running miniupnpd edit the scripts and configuration files in /etc/miniupnpd/.
+Load the iptables rules by executing /etc/miniupnpd/iptables_init.sh and/or
+/etc/miniupnpd/ip6tables_init.sh manually or adding them to /etc/sv/minidlnad/run.
diff --git a/srcpkgs/miniupnpd-nftables/files/miniupnpd/run b/srcpkgs/miniupnpd-nftables/files/miniupnpd/run
new file mode 100644
index 00000000000000..9634ae5d57610f
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/files/miniupnpd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec 2>&1
+exec miniupnpd ${OPTS:=-f /etc/miniupnpd/miniupnpd.conf}
diff --git a/srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch b/srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch
new file mode 100644
index 00000000000000..3836c3b1844141
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -49,7 +49,7 @@
+ --iptablespath=*)
+ IPTABLESPATH=$(echo $argv | cut -d= -f2) ;;
+ --getifaddrs) GETIFADDRS=1 ;;
+- --v6sockets-v6only) V6SOCKETS_ARE_V6ONLY="0"
++ --v6sockets-v6only) V6SOCKETS_ARE_V6ONLY="0" ;;
+ --host-os=*)
+ OS_NAME=$(echo $argv | cut -d= -f2) ;;
+ --host-os-version=*)
diff --git a/srcpkgs/miniupnpd-nftables/template b/srcpkgs/miniupnpd-nftables/template
new file mode 100644
index 00000000000000..54ec33405e16ef
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/template
@@ -0,0 +1,53 @@
+# Template file for 'miniupnpd-nftables'
+pkgname=miniupnpd-nftables
+version=2.3.7
+revision=1
+build_style=configure
+configure_args="
+ --disable-fork
+ --ipv6
+ --igd2
+ --leasefile
+ --firewall=nftables"
+make_install_args="
+ INSTALLPREFIX=/usr
+ SBININSTALLDIR=/usr/bin"
+conf_files="
+ /etc/miniupnpd/*.conf
+ /etc/miniupnpd/*.sh"
+hostmakedepends="pkg-config"
+makedepends="libnfnetlink-devel libnftnl-devel openssl-devel"
+checkdepends="iproute2 nftables which"
+short_desc="Lightweight UPnP IGD daemon with nftables support"
+maintainer="Echo Nar <echo@lethedata.com>"
+license="BSD-3-Clause"
+homepage="http://miniupnp.free.fr"
+changelog="http://miniupnp.free.fr/files/changelog.php?file=miniupnpd-${version}.tar.gz"
+distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
+checksum=fbdd5501039730f04a8420ea2f8f54b7df63f9f04cde2dc67fa7371e80477bbe
+conflicts="miniupnpd"
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+ makedepends+=" musl-legacy-compat"
+fi
+
+post_extract() {
+ vsed -i "${wrksrc}/configure" \
+ -e 's|LSB_RELEASE=.*|LSB_RELEASE=$(false)|' \
+ -e 's|V6SOCKETS_ARE_V6ONLY=.*|V6SOCKETS_ARE_V6ONLY="0"|'
+}
+
+
+post_configure() {
+ vsed -i "${wrksrc}/config.h" \
+ -e 's|^#define OS_URL.*$|#define OS_URL "https://voidlinux.org/"|g' \
+ -e 's|^#define OS_NAME.*$|#define OS_NAME "Void"|g' \
+ -e 's|^#define OS_VERSION.*$|#define OS_VERSION "Void"|g'
+}
+
+post_install() {
+ rm -rf "${DESTDIR}/etc/init.d"
+ vsv miniupnpd
+ vlicense LICENSE
+ vdoc "${FILESDIR}/README.voidlinux"
+}
diff --git a/srcpkgs/miniupnpd-nftables/update b/srcpkgs/miniupnpd-nftables/update
new file mode 100644
index 00000000000000..7096d869ff8a82
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/update
@@ -0,0 +1 @@
+ignore="*.???????? 20[0123456789][0123456789]????"
diff --git a/srcpkgs/miniupnpd/template b/srcpkgs/miniupnpd/template
index aed8b309471986..dc865960291543 100644
--- a/srcpkgs/miniupnpd/template
+++ b/srcpkgs/miniupnpd/template
@@ -24,6 +24,7 @@ homepage="http://miniupnp.free.fr"
changelog="http://miniupnp.free.fr/files/changelog.php?file=miniupnpd-${version}.tar.gz"
distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
checksum=fbdd5501039730f04a8420ea2f8f54b7df63f9f04cde2dc67fa7371e80477bbe
+conflicts="miniupnpd-nftables"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New package: miniupnpd-nftables
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
@ 2024-10-25 4:18 ` lethedata
2024-10-25 4:18 ` lethedata
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: lethedata @ 2024-10-25 4:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 465 bytes --]
New comment by lethedata on void-packages repository
https://github.com/void-linux/void-packages/pull/52770#issuecomment-2436791339
Comment:
This was pretty much based entirely on @Duncaen 's work with alternate flags to build with nftables over iptables functionality.
I'm not 100% sure this is the right way to do it as it could probably be done with Build options instead but this doesn't enable/disable *additional* features, it changes the functionality.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New package: miniupnpd-nftables
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
2024-10-25 4:18 ` lethedata
@ 2024-10-25 4:18 ` lethedata
2024-10-25 4:19 ` lethedata
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: lethedata @ 2024-10-25 4:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
New comment by lethedata on void-packages repository
https://github.com/void-linux/void-packages/pull/52770#issuecomment-2436791339
Comment:
This was pretty much based entirely on @Duncaen 's work with alternate flags to build with nftables over iptables functionality.
I'm not 100% sure this is the right way to do it as it could probably be done with Build options instead but this doesn't enable/disable *additional* features, it changes the functionality.
Note: Package builds and installs without issue and I am currently testing on a production system to validate functionality
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New package: miniupnpd-nftables
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
2024-10-25 4:18 ` lethedata
2024-10-25 4:18 ` lethedata
@ 2024-10-25 4:19 ` lethedata
2024-10-26 0:24 ` [PR PATCH] [Updated] " lethedata
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: lethedata @ 2024-10-25 4:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]
New comment by lethedata on void-packages repository
https://github.com/void-linux/void-packages/pull/52770#issuecomment-2436791339
Comment:
This was pretty much based entirely on @Duncaen 's [miniupnpd](https://github.com/void-linux/void-packages/tree/master/srcpkgs/miniupnpd) work with alternate flags to build with nftables over iptables functionality.
I'm not 100% sure this is the right way to do it as it could probably be done with Build options instead but this doesn't enable/disable *additional* features, it changes the functionality.
Note: Package builds and installs without issue and I am currently testing on a production system to validate functionality
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR PATCH] [Updated] New package: miniupnpd-nftables
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
` (2 preceding siblings ...)
2024-10-25 4:19 ` lethedata
@ 2024-10-26 0:24 ` lethedata
2025-01-24 1:57 ` github-actions
2025-02-07 1:59 ` [PR PATCH] [Closed]: " github-actions
5 siblings, 0 replies; 7+ messages in thread
From: lethedata @ 2024-10-26 0:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]
There is an updated pull request by lethedata against master on the void-packages repository
https://github.com/lethedata/void-packages miniupnpd-nftables
https://github.com/void-linux/void-packages/pull/52770
New package: miniupnpd-nftables
Builds miniupnpd with nftables support rather than iptables
#### Testing the changes
- I tested the changes in this PR: **YES - Currently Testing**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
A patch file from https://github.com/void-linux/void-packages/pull/52770.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-miniupnpd-nftables-52770.patch --]
[-- Type: text/x-diff, Size: 5022 bytes --]
From 2284d3c77cd944acb97244a1ecc9f77566260013 Mon Sep 17 00:00:00 2001
From: Echo Nar <echo@lethedata.com>
Date: Thu, 24 Oct 2024 22:49:54 -0500
Subject: [PATCH] New package: miniupnpd-nftables
Builds miniupnpd with nftables support rather than iptables
---
.../miniupnpd-nftables/files/README.voidlinux | 3 ++
.../miniupnpd-nftables/files/miniupnpd/run | 4 ++
.../patches/fix-configure-script.patch | 11 ++++
srcpkgs/miniupnpd-nftables/template | 53 +++++++++++++++++++
srcpkgs/miniupnpd-nftables/update | 1 +
srcpkgs/miniupnpd/template | 1 +
6 files changed, 73 insertions(+)
create mode 100644 srcpkgs/miniupnpd-nftables/files/README.voidlinux
create mode 100644 srcpkgs/miniupnpd-nftables/files/miniupnpd/run
create mode 100644 srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch
create mode 100644 srcpkgs/miniupnpd-nftables/template
create mode 100644 srcpkgs/miniupnpd-nftables/update
diff --git a/srcpkgs/miniupnpd-nftables/files/README.voidlinux b/srcpkgs/miniupnpd-nftables/files/README.voidlinux
new file mode 100644
index 00000000000000..eb4380b5753201
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/files/README.voidlinux
@@ -0,0 +1,3 @@
+Before running miniupnpd edit the scripts and configuration files in /etc/miniupnpd/.
+Load the nftable rules by executing /etc/miniupnpd/nft_init.sh manually or by adding
+the script to /etc/sv/minidlnad/run.
diff --git a/srcpkgs/miniupnpd-nftables/files/miniupnpd/run b/srcpkgs/miniupnpd-nftables/files/miniupnpd/run
new file mode 100644
index 00000000000000..9634ae5d57610f
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/files/miniupnpd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -r conf ] && . ./conf
+exec 2>&1
+exec miniupnpd ${OPTS:=-f /etc/miniupnpd/miniupnpd.conf}
diff --git a/srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch b/srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch
new file mode 100644
index 00000000000000..3836c3b1844141
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/patches/fix-configure-script.patch
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -49,7 +49,7 @@
+ --iptablespath=*)
+ IPTABLESPATH=$(echo $argv | cut -d= -f2) ;;
+ --getifaddrs) GETIFADDRS=1 ;;
+- --v6sockets-v6only) V6SOCKETS_ARE_V6ONLY="0"
++ --v6sockets-v6only) V6SOCKETS_ARE_V6ONLY="0" ;;
+ --host-os=*)
+ OS_NAME=$(echo $argv | cut -d= -f2) ;;
+ --host-os-version=*)
diff --git a/srcpkgs/miniupnpd-nftables/template b/srcpkgs/miniupnpd-nftables/template
new file mode 100644
index 00000000000000..54ec33405e16ef
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/template
@@ -0,0 +1,53 @@
+# Template file for 'miniupnpd-nftables'
+pkgname=miniupnpd-nftables
+version=2.3.7
+revision=1
+build_style=configure
+configure_args="
+ --disable-fork
+ --ipv6
+ --igd2
+ --leasefile
+ --firewall=nftables"
+make_install_args="
+ INSTALLPREFIX=/usr
+ SBININSTALLDIR=/usr/bin"
+conf_files="
+ /etc/miniupnpd/*.conf
+ /etc/miniupnpd/*.sh"
+hostmakedepends="pkg-config"
+makedepends="libnfnetlink-devel libnftnl-devel openssl-devel"
+checkdepends="iproute2 nftables which"
+short_desc="Lightweight UPnP IGD daemon with nftables support"
+maintainer="Echo Nar <echo@lethedata.com>"
+license="BSD-3-Clause"
+homepage="http://miniupnp.free.fr"
+changelog="http://miniupnp.free.fr/files/changelog.php?file=miniupnpd-${version}.tar.gz"
+distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
+checksum=fbdd5501039730f04a8420ea2f8f54b7df63f9f04cde2dc67fa7371e80477bbe
+conflicts="miniupnpd"
+
+if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
+ makedepends+=" musl-legacy-compat"
+fi
+
+post_extract() {
+ vsed -i "${wrksrc}/configure" \
+ -e 's|LSB_RELEASE=.*|LSB_RELEASE=$(false)|' \
+ -e 's|V6SOCKETS_ARE_V6ONLY=.*|V6SOCKETS_ARE_V6ONLY="0"|'
+}
+
+
+post_configure() {
+ vsed -i "${wrksrc}/config.h" \
+ -e 's|^#define OS_URL.*$|#define OS_URL "https://voidlinux.org/"|g' \
+ -e 's|^#define OS_NAME.*$|#define OS_NAME "Void"|g' \
+ -e 's|^#define OS_VERSION.*$|#define OS_VERSION "Void"|g'
+}
+
+post_install() {
+ rm -rf "${DESTDIR}/etc/init.d"
+ vsv miniupnpd
+ vlicense LICENSE
+ vdoc "${FILESDIR}/README.voidlinux"
+}
diff --git a/srcpkgs/miniupnpd-nftables/update b/srcpkgs/miniupnpd-nftables/update
new file mode 100644
index 00000000000000..7096d869ff8a82
--- /dev/null
+++ b/srcpkgs/miniupnpd-nftables/update
@@ -0,0 +1 @@
+ignore="*.???????? 20[0123456789][0123456789]????"
diff --git a/srcpkgs/miniupnpd/template b/srcpkgs/miniupnpd/template
index aed8b309471986..dc865960291543 100644
--- a/srcpkgs/miniupnpd/template
+++ b/srcpkgs/miniupnpd/template
@@ -24,6 +24,7 @@ homepage="http://miniupnp.free.fr"
changelog="http://miniupnp.free.fr/files/changelog.php?file=miniupnpd-${version}.tar.gz"
distfiles="http://miniupnp.free.fr/files/miniupnpd-${version}.tar.gz"
checksum=fbdd5501039730f04a8420ea2f8f54b7df63f9f04cde2dc67fa7371e80477bbe
+conflicts="miniupnpd-nftables"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: New package: miniupnpd-nftables
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
` (3 preceding siblings ...)
2024-10-26 0:24 ` [PR PATCH] [Updated] " lethedata
@ 2025-01-24 1:57 ` github-actions
2025-02-07 1:59 ` [PR PATCH] [Closed]: " github-actions
5 siblings, 0 replies; 7+ messages in thread
From: github-actions @ 2025-01-24 1:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/52770#issuecomment-2611381330
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PR PATCH] [Closed]: New package: miniupnpd-nftables
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
` (4 preceding siblings ...)
2025-01-24 1:57 ` github-actions
@ 2025-02-07 1:59 ` github-actions
5 siblings, 0 replies; 7+ messages in thread
From: github-actions @ 2025-02-07 1:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 929 bytes --]
There's a closed pull request on the void-packages repository
New package: miniupnpd-nftables
https://github.com/void-linux/void-packages/pull/52770
Description:
Builds miniupnpd with nftables support rather than iptables
#### Testing the changes
- I tested the changes in this PR: **YES - Currently Testing**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-02-07 1:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-25 4:11 [PR PATCH] New package: miniupnpd-nftables lethedata
2024-10-25 4:18 ` lethedata
2024-10-25 4:18 ` lethedata
2024-10-25 4:19 ` lethedata
2024-10-26 0:24 ` [PR PATCH] [Updated] " lethedata
2025-01-24 1:57 ` github-actions
2025-02-07 1:59 ` [PR PATCH] [Closed]: " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).