[Midnightbsd-cvs] mports [20654] trunk/net: upnp update

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Nov 6 16:59:21 EST 2015


Revision: 20654
          http://svnweb.midnightbsd.org/mports/?rev=20654
Author:   laffer1
Date:     2015-11-06 16:59:21 -0500 (Fri, 06 Nov 2015)
Log Message:
-----------
upnp update

Modified Paths:
--------------
    trunk/net/Makefile

Added Paths:
-----------
    trunk/net/miniupnpc/
    trunk/net/miniupnpc/Makefile
    trunk/net/miniupnpc/distinfo
    trunk/net/miniupnpc/files/
    trunk/net/miniupnpc/files/miniupnpc.in
    trunk/net/miniupnpc/files/patch-Makefile
    trunk/net/miniupnpc/pkg-descr
    trunk/net/miniupnpc/pkg-plist

Modified: trunk/net/Makefile
===================================================================
--- trunk/net/Makefile	2015-11-06 21:57:06 UTC (rev 20653)
+++ trunk/net/Makefile	2015-11-06 21:59:21 UTC (rev 20654)
@@ -59,6 +59,7 @@
 SUBDIR += linuxigd
 SUBDIR += liveMedia
 SUBDIR += mDNSResponder
+SUBDIR += miniupnpc
 SUBDIR += netatalk
 SUBDIR += netcat
 SUBDIR += netclasses

Added: trunk/net/miniupnpc/Makefile
===================================================================
--- trunk/net/miniupnpc/Makefile	                        (rev 0)
+++ trunk/net/miniupnpc/Makefile	2015-11-06 21:59:21 UTC (rev 20654)
@@ -0,0 +1,36 @@
+# $MidnightBSD$
+# $FreeBSD: head/net/miniupnpc/Makefile 376425 2015-01-06 13:59:35Z antoine $
+
+PORTNAME=	miniupnpc
+PORTVERSION=	1.9
+CATEGORIES?=	net
+MASTER_SITES=	http://miniupnp.free.fr/files/
+
+MAINTAINER?=	ports at MidnightBSD.org
+COMMENT?=	UPnP IGD client lightweight library
+
+LICENSE=	bsd3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES+=		gmake
+HAS_CONFIGURE=	yes
+USE_LDCONFIG=	yes
+
+CONFIGURE_SCRIPT=	updateminiupnpcstrings.sh
+MAKE_ENV+=	INSTALLPREFIX=${PREFIX}
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_DEBUG)
+CFLAGS+=	-DDEBUG
+.endif
+
+.if ${SLAVE_PORT} == no
+USE_RC_SUBR=	miniupnpc
+
+post-install:
+	${STRIP_CMD} ${PREFIX}/bin/upnpc \
+		${PREFIX}/lib/libminiupnpc.so.10
+.endif
+
+.include <bsd.port.post.mk>


Property changes on: trunk/net/miniupnpc/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/miniupnpc/distinfo
===================================================================
--- trunk/net/miniupnpc/distinfo	                        (rev 0)
+++ trunk/net/miniupnpc/distinfo	2015-11-06 21:59:21 UTC (rev 20654)
@@ -0,0 +1,2 @@
+SHA256 (miniupnpc-1.9.tar.gz) = 2923e453e880bb949e3d4da9f83dd3cb6f08946d35de0b864d0339cf70934464
+SIZE (miniupnpc-1.9.tar.gz) = 74230


Property changes on: trunk/net/miniupnpc/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/miniupnpc/files/miniupnpc.in
===================================================================
--- trunk/net/miniupnpc/files/miniupnpc.in	                        (rev 0)
+++ trunk/net/miniupnpc/files/miniupnpc.in	2015-11-06 21:59:21 UTC (rev 20654)
@@ -0,0 +1,34 @@
+#!/bin/sh
+# PROVIDE: miniupnpc
+# REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+# Add the following lines to /etc/rc.conf to enable miniupnpc
+# miniupnpc_enable="YES"
+# miniupnpc_config="port protocol [port2 protocol2] [...]"
+
+name="miniupnpc"
+rcvar=miniupnpc_enable
+
+load_rc_config $name
+
+miniupnpc_enable=${miniupnpc_enable:-"NO"}
+
+command="%%PREFIX%%/bin/upnpc"
+start_cmd="miniupnpc_start"
+stop_cmd="miniupnpc_stop"
+
+miniupnpc_start() {
+	eval "${command} -r ${miniupnpc_config} | grep duration"
+}
+
+miniupnpc_stop() {
+	echo "Remove redirections" ${miniupnpc_config}
+	eval ${command} -d ${miniupnpc_config} > /dev/null
+}
+
+run_rc_command "$1"
+
+# eof


Property changes on: trunk/net/miniupnpc/files/miniupnpc.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/miniupnpc/files/patch-Makefile
===================================================================
--- trunk/net/miniupnpc/files/patch-Makefile	                        (rev 0)
+++ trunk/net/miniupnpc/files/patch-Makefile	2015-11-06 21:59:21 UTC (rev 20654)
@@ -0,0 +1,27 @@
+--- Makefile.orig	2014-01-31 14:57:23.000000000 +0100
++++ Makefile	2014-10-07 23:26:17.000000000 +0200
+@@ -35,7 +35,7 @@
+ CFLAGS += -fno-common
+ CFLAGS += -DMINIUPNPC_SET_SOCKET_TIMEOUT
+ CFLAGS += -DMINIUPNPC_GET_SRC_ADDR
+-CFLAGS += -D_BSD_SOURCE -D_POSIX_C_SOURCE=1
++CFLAGS += -D_BSD_SOURCE
+ CFLAGS += -ansi
+ # -DNO_GETADDRINFO
+ INSTALL = install
+@@ -117,13 +117,11 @@
+ TESTIGDDESCPARSE := $(TESTIGDDESCPARSE) minissdpc.o
+ endif
+ 
+-LIBDIR ?= lib
+ # install directories
+-INSTALLPREFIX ?= $(PREFIX)/usr
+ INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
+-INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR)
++INSTALLDIRLIB = $(INSTALLPREFIX)/lib
+ INSTALLDIRBIN = $(INSTALLPREFIX)/bin
+-INSTALLDIRMAN = $(INSTALLPREFIX)/share/man
++INSTALLDIRMAN = $(INSTALLPREFIX)/man
+ 
+ FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
+ ifneq ($(OS), AmigaOS)


Property changes on: trunk/net/miniupnpc/files/patch-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/miniupnpc/pkg-descr
===================================================================
--- trunk/net/miniupnpc/pkg-descr	                        (rev 0)
+++ trunk/net/miniupnpc/pkg-descr	2015-11-06 21:59:21 UTC (rev 20654)
@@ -0,0 +1,10 @@
+UPnP IGD client lightweight library
+
+The usage of the miniUPnP client library is useful whenever an application
+needs to listen for incoming connections.
+Examples : P2P applications, FTP clients for active mode, IRC (for DCC)
+or IM applications, network games, any server.
+
+LICENSE: BSD
+
+WWW: http://miniupnp.free.fr/


Property changes on: trunk/net/miniupnpc/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/net/miniupnpc/pkg-plist
===================================================================
--- trunk/net/miniupnpc/pkg-plist	                        (rev 0)
+++ trunk/net/miniupnpc/pkg-plist	2015-11-06 21:59:21 UTC (rev 20654)
@@ -0,0 +1,15 @@
+bin/upnpc
+bin/external-ip
+include/miniupnpc/declspec.h
+include/miniupnpc/igd_desc_parse.h
+include/miniupnpc/miniupnpc.h
+include/miniupnpc/miniupnpctypes.h
+include/miniupnpc/miniwget.h
+include/miniupnpc/portlistingparse.h
+include/miniupnpc/upnpcommands.h
+include/miniupnpc/upnpreplyparse.h
+include/miniupnpc/upnperrors.h
+lib/libminiupnpc.a
+lib/libminiupnpc.so
+lib/libminiupnpc.so.10
+man/man3/miniupnpc.3.gz


Property changes on: trunk/net/miniupnpc/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list