<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8b4351b206117166f3a0b32acafb215b5cadc16a">https://github.com/macports/macports-ports/commit/8b4351b206117166f3a0b32acafb215b5cadc16a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8b4351b2061 libnatpmp: new port in net
</span>8b4351b2061 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8b4351b206117166f3a0b32acafb215b5cadc16a
</span>Author: Edil Medeiros <jose.edil@gmail.com>
AuthorDate: Fri Mar 29 21:56:21 2024 -0300
<span style='display:block; white-space:pre;color:#404040;'> libnatpmp: new port in net
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> libnatpmp is a dependency for bitcoin core for folks that are building from
</span><span style='display:block; white-space:pre;color:#404040;'> source. The current bitcoin port does not support libnatpmp. This port opens the
</span><span style='display:block; white-space:pre;color:#404040;'> possibility of adding a new feature to the bitcoin port.
</span>---
net/libnatpmp/Portfile | 35 +++++++++++++++
net/libnatpmp/files/makefile.diff | 90 +++++++++++++++++++++++++++++++++++++++
2 files changed, 125 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/libnatpmp/Portfile b/net/libnatpmp/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..266b03ed547
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/libnatpmp/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,35 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name libnatpmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 20230423
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin freebsd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@edilmedeiros gmail.com:jose.edil+miniupnp} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Portable and fully compliant implementation of the NAT-PMP protocol for the client side
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://miniupnp.free.fr/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites http://miniupnp.free.fr/files/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 01078bccd060e2d4601cfa941e5f352e34a64c55 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 0684ed2c8406437e7519a1bd20ea83780db871b3a3a5d752311ba3e889dbfc70 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 26506
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant universal {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles makefile.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env PREFIX=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "LDFLAGS=${configure.cflags} [get_canonical_archflags ld]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.env PREFIX=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url http://miniupnp.free.fr/files/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex ${name}-${version}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/libnatpmp/files/makefile.diff b/net/libnatpmp/files/makefile.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..de4d7d7d4ab
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/libnatpmp/files/makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,90 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.orig 2024-03-29 17:21:55.000000000 -0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2024-03-29 21:47:14.000000000 -0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6,7 +6,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OS = $(shell uname -s)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INSTALL = install -p
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INSTALL = install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ARCH = $(shell uname -m | sed -e s/i.86/i686/)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ VERSION = $(shell cat VERSION)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -56,11 +56,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-HEADERS = natpmp.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++HEADERS = natpmp.h natpmp_declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXECUTABLES = testgetgateway natpmpc-shared natpmpc-static
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INSTALLPREFIX ?= $(PREFIX)/usr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#INSTALLPREFIX ?= $(PREFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#INSTALLPREFIX = $(DESTDIR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# install directories
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ifeq ($(strip $(PREFIX)),)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INSTALLPREFIX ?= /usr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INSTALLPREFIX ?= $(PREFIX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ INSTALLDIRINC = $(INSTALLPREFIX)/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ INSTALLDIRLIB = $(INSTALLPREFIX)/lib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ INSTALLDIRBIN = $(INSTALLPREFIX)/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -92,14 +99,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ makedepend -f$(MAKEFILE_LIST) -Y $(OBJS:.o=.c) 2>/dev/null
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ install: $(HEADERS) $(STATICLIB) $(SHAREDLIB) natpmpc-shared
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -d $(INSTALLDIRINC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -d $(INSTALLDIRLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 $(STATICLIB) $(INSTALLDIRLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -d $(INSTALLDIRBIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(INSTALL) -m 755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ln -s -f $(SONAME) $(INSTALLDIRLIB)/$(SHAREDLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 $(STATICLIB) $(DESTDIR)$(INSTALLDIRLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 644 $(SHAREDLIB) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -d $(DESTDIR)$(INSTALLDIRBIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(INSTALL) -m 755 natpmpc-shared $(DESTDIR)$(INSTALLDIRBIN)/natpmpc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ln -s -f $(SONAME) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(JNIHEADERS): fr/free/miniupnp/libnatpmp/NatPmp.class
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(JAVAH) -jni fr.free.miniupnp.libnatpmp.NatPmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -144,10 +151,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DcreateChecksum=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cleaninstall:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(RM) $(addprefix $(INSTALLDIRINC), $(HEADERS))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(RM) $(INSTALLDIRLIB)/$(SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(RM) $(INSTALLDIRLIB)/$(SHAREDLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(RM) $(INSTALLDIRLIB)/$(STATICLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(RM) $(addprefix $(DESTDIR)$(INSTALLDIRINC), $(HEADERS))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(SONAME)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(SHAREDLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(RM) $(DESTDIR)$(INSTALLDIRLIB)/$(STATICLIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ testgetgateway: testgetgateway.o getgateway.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CC) $(LDFLAGS) -o $@ $^ $(EXTRA_LD)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -163,7 +170,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(SHAREDLIB): $(LIBOBJS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(OS), Darwin)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) -dynamiclib -Wl,-install_name,$(SONAME) -o $@ $^
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) -dynamiclib -Wl,-install_name,$(INSTALLDIRLIB)/$(SONAME) -o $@ $^
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(CC) -shared -Wl,-soname,$(SONAME) -o $@ $^ $(EXTRA_LD)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -171,7 +178,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # DO NOT DELETE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-natpmp.o: natpmp.h getgateway.h declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-getgateway.o: getgateway.h declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-testgetgateway.o: getgateway.h declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++natpmp.o: natpmp.h getgateway.h natpmp_declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++getgateway.o: getgateway.h natpmp_declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++testgetgateway.o: getgateway.h natpmp_declspec.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ natpmpc.o: natpmp.h
</span></pre><pre style='margin:0'>
</pre>