summaryrefslogtreecommitdiff
path: root/net/miniupnpc
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2016-12-01 22:28:29 +0000
committeradam <adam@pkgsrc.org>2016-12-01 22:28:29 +0000
commit6878c97769643d80fd7a0d1ec23ab4561078b5df (patch)
treee64ceb272bfeb97c472623a1a71551e22e158a5f /net/miniupnpc
parentf57606ad08e4e71bb5ba19d3942beec309e3bdc3 (diff)
downloadpkgsrc-6878c97769643d80fd7a0d1ec23ab4561078b5df.tar.gz
Simple and small footprint client and library for setuping gateway port
redirections using UPnP Internet Gateway Device services.
Diffstat (limited to 'net/miniupnpc')
-rw-r--r--net/miniupnpc/DESCR2
-rw-r--r--net/miniupnpc/Makefile14
-rw-r--r--net/miniupnpc/PLIST17
-rw-r--r--net/miniupnpc/buildlink3.mk12
-rw-r--r--net/miniupnpc/distinfo7
-rw-r--r--net/miniupnpc/patches/patch-Makefile41
6 files changed, 93 insertions, 0 deletions
diff --git a/net/miniupnpc/DESCR b/net/miniupnpc/DESCR
new file mode 100644
index 00000000000..6a68666ae92
--- /dev/null
+++ b/net/miniupnpc/DESCR
@@ -0,0 +1,2 @@
+Simple and small footprint client and library for setuping gateway port
+redirections using UPnP Internet Gateway Device services.
diff --git a/net/miniupnpc/Makefile b/net/miniupnpc/Makefile
new file mode 100644
index 00000000000..b1254500402
--- /dev/null
+++ b/net/miniupnpc/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2016/12/01 22:28:29 adam Exp $
+
+DISTNAME= miniupnpc-2.0
+CATEGORIES= net
+MASTER_SITES= http://miniupnp.free.fr/files/download.php?file=
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://miniupnp.free.fr/
+COMMENT= Client and library for UPnP IGD services
+LICENSE= modified-bsd
+
+USE_TOOLS+= gmake
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/miniupnpc/PLIST b/net/miniupnpc/PLIST
new file mode 100644
index 00000000000..caa5cbeec28
--- /dev/null
+++ b/net/miniupnpc/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 2016/12/01 22:28:29 adam Exp $
+bin/external-ip
+bin/upnpc
+include/miniupnpc/igd_desc_parse.h
+include/miniupnpc/miniupnpc.h
+include/miniupnpc/miniupnpc_declspec.h
+include/miniupnpc/miniupnpctypes.h
+include/miniupnpc/miniwget.h
+include/miniupnpc/portlistingparse.h
+include/miniupnpc/upnpcommands.h
+include/miniupnpc/upnpdev.h
+include/miniupnpc/upnperrors.h
+include/miniupnpc/upnpreplyparse.h
+lib/libminiupnpc.a
+lib/libminiupnpc.so
+lib/libminiupnpc.so.16
+man/man3/miniupnpc.3
diff --git a/net/miniupnpc/buildlink3.mk b/net/miniupnpc/buildlink3.mk
new file mode 100644
index 00000000000..924705c7128
--- /dev/null
+++ b/net/miniupnpc/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/12/01 22:28:29 adam Exp $
+
+BUILDLINK_TREE+= miniupnpc
+
+.if !defined(MINIUPNPC_BUILDLINK3_MK)
+MINIUPNPC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.miniupnpc+= miniupnpc>=2.0
+BUILDLINK_PKGSRCDIR.miniupnpc?= ../../net/miniupnpc
+.endif # MINIUPNPC_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -miniupnpc
diff --git a/net/miniupnpc/distinfo b/net/miniupnpc/distinfo
new file mode 100644
index 00000000000..1377bcbbc7d
--- /dev/null
+++ b/net/miniupnpc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/12/01 22:28:29 adam Exp $
+
+SHA1 (miniupnpc-2.0.tar.gz) = 21181b364be330436922459c1f81ee641ac182a6
+RMD160 (miniupnpc-2.0.tar.gz) = b3038dc6a78be0bc161dc226f79fd0fd8b66fdb3
+SHA512 (miniupnpc-2.0.tar.gz) = e8bca24265086518fa3bdc25fc31371ddf878adaa2bd6a80b30f33a3e5adb831220e906302832f2250e489a73ecd7e6c9a6bfcb1c70258a90e4c4712196275de
+Size (miniupnpc-2.0.tar.gz) = 85287 bytes
+SHA1 (patch-Makefile) = 7eb888a6a1ee6005506aae69a6c6e7194e5b6ba7
diff --git a/net/miniupnpc/patches/patch-Makefile b/net/miniupnpc/patches/patch-Makefile
new file mode 100644
index 00000000000..259bab81e4e
--- /dev/null
+++ b/net/miniupnpc/patches/patch-Makefile
@@ -0,0 +1,41 @@
+$NetBSD: patch-Makefile,v 1.1 2016/12/01 22:28:29 adam Exp $
+
+Do not pick pkgsrc libtool on Darwin.
+NetBSD needs _NETBSD_SOURCE to be defined.
+Use correct installation dirs.
+
+--- Makefile.orig 2016-02-09 09:38:56.000000000 +0000
++++ Makefile
+@@ -15,7 +15,7 @@ VERSION = $(shell cat VERSION)
+
+ ifeq ($(OS), Darwin)
+ JARSUFFIX=mac
+-LIBTOOL ?= $(shell which libtool)
++LIBTOOL ?= /usr/bin/libtool
+ endif
+ ifeq ($(OS), Linux)
+ JARSUFFIX=linux
+@@ -38,6 +38,9 @@ CFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT
+ CFLAGS += -DMINIUPNPC_GET_SRC_ADDR
+ CFLAGS += -D_BSD_SOURCE
+ CFLAGS += -D_DEFAULT_SOURCE
++ifeq ($(OS), NetBSD)
++CFLAGS += -D_NETBSD_SOURCE
++endif
+ ifneq ($(OS), FreeBSD)
+ ifneq ($(OS), Darwin)
+ #CFLAGS += -D_POSIX_C_SOURCE=200112L
+@@ -136,11 +139,11 @@ endif
+
+ LIBDIR ?= lib
+ # install directories
+-INSTALLPREFIX ?= $(PREFIX)/usr
++INSTALLPREFIX ?= $(PREFIX)
+ INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
+ INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR)
+ INSTALLDIRBIN = $(INSTALLPREFIX)/bin
+-INSTALLDIRMAN = $(INSTALLPREFIX)/share/man
++INSTALLDIRMAN = $(INSTALLPREFIX)/man
+
+ FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
+ ifneq ($(OS), AmigaOS)