pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/miniupnpc Simple and small footprint client and li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e60c1c315077
branches:  trunk
changeset: 355437:e60c1c315077
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 01 22:28:29 2016 +0000

description:
Simple and small footprint client and library for setuping gateway port
redirections using UPnP Internet Gateway Device services.

diffstat:

 net/miniupnpc/DESCR                  |   2 +
 net/miniupnpc/Makefile               |  14 ++++++++++++
 net/miniupnpc/PLIST                  |  17 ++++++++++++++
 net/miniupnpc/buildlink3.mk          |  12 ++++++++++
 net/miniupnpc/distinfo               |   7 ++++++
 net/miniupnpc/patches/patch-Makefile |  41 ++++++++++++++++++++++++++++++++++++
 6 files changed, 93 insertions(+), 0 deletions(-)

diffs (117 lines):

diff -r 41420775e3f7 -r e60c1c315077 net/miniupnpc/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/DESCR       Thu Dec 01 22:28:29 2016 +0000
@@ -0,0 +1,2 @@
+Simple and small footprint client and library for setuping gateway port
+redirections using UPnP Internet Gateway Device services.
diff -r 41420775e3f7 -r e60c1c315077 net/miniupnpc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/Makefile    Thu Dec 01 22:28:29 2016 +0000
@@ -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@localhost
+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 -r 41420775e3f7 -r e60c1c315077 net/miniupnpc/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/PLIST       Thu Dec 01 22:28:29 2016 +0000
@@ -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 -r 41420775e3f7 -r e60c1c315077 net/miniupnpc/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/buildlink3.mk       Thu Dec 01 22:28:29 2016 +0000
@@ -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 -r 41420775e3f7 -r e60c1c315077 net/miniupnpc/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/distinfo    Thu Dec 01 22:28:29 2016 +0000
@@ -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 -r 41420775e3f7 -r e60c1c315077 net/miniupnpc/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/patches/patch-Makefile      Thu Dec 01 22:28:29 2016 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index