ports/137676: [NEW PORT] net/libnatpmp: An NAT-PMP lightweight library

Hung-Yi Chen gaod at hychen.org
Tue Aug 11 17:50:02 UTC 2009


>Number:         137676
>Category:       ports
>Synopsis:       [NEW PORT] net/libnatpmp: An NAT-PMP lightweight library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 11 17:50:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Hung-Yi Chen
>Release:        FreeBSD 7.2-RELEASE-p3 i386
>Organization:
>Environment:
System: FreeBSD gaod.tfcis.org 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #3: Sat Aug 1 22:21:07 CST 2009 gaod at gaod.tfcis.org:/usr/obj/usr/src/sys/gaod i386

>Description:
libnatpmp is an attempt to make a portable and fully compliant implementation
of the protocol for the client side. It is based on non blocking sockets and
all calls of the API are asynchronous. It is therefore very easy to integrate
the NAT-PMP code to any event driven code.

WWW: http://miniupnp.free.fr/libnatpmp.html
>How-To-Repeat:
>Fix:

--- libnatpmp.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libnatpmp/
#	libnatpmp/pkg-plist
#	libnatpmp/pkg-descr
#	libnatpmp/distinfo
#	libnatpmp/Makefile
#	libnatpmp/files
#	libnatpmp/files/patch-Makefile
#
echo c - libnatpmp/
mkdir -p libnatpmp/ > /dev/null 2>&1
echo x - libnatpmp/pkg-plist
sed 's/^X//' >libnatpmp/pkg-plist << '5441e0e4e69c94f31cf23b3fe9668d3b'
Xbin/natpmpc
Xinclude/natpmp.h
Xlib/libnatpmp.a
Xlib/libnatpmp.so
Xlib/libnatpmp.so.0
5441e0e4e69c94f31cf23b3fe9668d3b
echo x - libnatpmp/pkg-descr
sed 's/^X//' >libnatpmp/pkg-descr << 'd69280b84bcc3f273ecd3f860e841590'
Xlibnatpmp is an attempt to make a portable and fully compliant implementation 
Xof the protocol for the client side. It is based on non blocking sockets and 
Xall calls of the API are asynchronous. It is therefore very easy to integrate 
Xthe NAT-PMP code to any event driven code. 
X
XWWW: http://miniupnp.free.fr/
d69280b84bcc3f273ecd3f860e841590
echo x - libnatpmp/distinfo
sed 's/^X//' >libnatpmp/distinfo << '624989097095f0498f4f56556243650a'
XMD5 (libnatpmp-20090713.tar.gz) = d11d96c93117444755fc510a3011cbd1
XSHA256 (libnatpmp-20090713.tar.gz) = edd6c182f41862eeed1507895a28cb0facb516de8e2d7ca95ecb37e02c3301ff
XSIZE (libnatpmp-20090713.tar.gz) = 14262
624989097095f0498f4f56556243650a
echo x - libnatpmp/Makefile
sed 's/^X//' >libnatpmp/Makefile << 'eba387183ddd703fbb5655f59ac70f8e'
X# New ports collection makefile for:    libnatpmp
X# Date created:         11 Aug 2009
X# Whom:                 Hung-Yi Chen <gaod at hychen.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libnatpmp
XPORTVERSION=	20090713
XCATEGORIES=	net
XMASTER_SITES=	http://miniupnp.free.fr/files/
X
XMAINTAINER=	gaod at hychen.org
XCOMMENT=	An NAT-PMP lightweight library
X
XUSE_GMAKE=	yes
XMAKE_ENV+=	INSTALLPREFIX=${PREFIX}
XCFLAGS+=	-fPIC
XUSE_LDCONFIG=	yes
X
X.include <bsd.port.mk>
eba387183ddd703fbb5655f59ac70f8e
echo c - libnatpmp/files
mkdir -p libnatpmp/files > /dev/null 2>&1
echo x - libnatpmp/files/patch-Makefile
sed 's/^X//' >libnatpmp/files/patch-Makefile << 'd33a267e511b678ff6a99318808d1164'
X--- Makefile.orig	2009-08-11 21:25:47.000000000 +0800
X+++ Makefile	2009-08-11 21:28:24.000000000 +0800
X@@ -50,12 +50,12 @@
X 
X install:	$(HEADERS) $(STATICLIB) $(SHAREDLIB)
X 	$(INSTALL) -d $(INSTALLDIRINC)
X-	$(INSTALL) --mode=644 $(HEADERS) $(INSTALLDIRINC)
X+	$(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC)
X 	$(INSTALL) -d $(INSTALLDIRLIB)
X-	$(INSTALL) --mode=644 $(STATICLIB) $(INSTALLDIRLIB)
X-	$(INSTALL) --mode=644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME)
X-	$(INSTALL) --mode=755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc
X-	ln --symbolic --force $(SONAME) $(INSTALLDIRLIB)/$(SHAREDLIB)
X+	$(INSTALL) -m 644 $(STATICLIB) $(INSTALLDIRLIB)
X+	$(INSTALL) -m 644 $(SHAREDLIB) $(INSTALLDIRLIB)/$(SONAME)
X+	$(INSTALL) -m 755 natpmpc-shared $(INSTALLDIRBIN)/natpmpc
X+	ln -s -f $(SONAME) $(INSTALLDIRLIB)/$(SHAREDLIB)
X 
X cleaninstall:
X 	$(RM) $(addprefix $(INSTALLDIRINC), $(HEADERS))
d33a267e511b678ff6a99318808d1164
exit
--- libnatpmp.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list