Import ports/net/natpmpd, from maintainer/upstream Matt Dainty. ok jasper@

natpmpd is a daemon that can be used on an OpenBSD NAT gateway to
provide support for the NAT-PMP protocol on any internal networks which
then allows a client to create and maintain rules in pf to map TCP and
UDP connections to the external IP address on the NAT gateway to
services running on the client itself.
This commit is contained in:
sthen 2011-12-23 15:15:30 +00:00
parent 10df325a1a
commit ad8960edfe
5 changed files with 57 additions and 0 deletions

26
net/natpmpd/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/12/23 15:15:30 sthen Exp $
COMMENT= daemon implementing NAT-PMP protocol for pf(4)
DISTNAME= natpmpd-1.4
CATEGORIES= net
HOMEPAGE= http://bodgitandscarper.co.uk/natpmpd/
MASTER_SITES= http://natpmpd.s3.amazonaws.com/
MAINTAINER= Matt Dainty <matt@bodgit-n-scarper.com>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c event
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/natpmpd
${INSTALL_DATA} ${WRKSRC}/natpmpd.conf \
${PREFIX}/share/examples/natpmpd
.include <bsd.port.mk>

5
net/natpmpd/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (natpmpd-1.4.tar.gz) = gqlyrurSFwX1lCW7qguGdQ==
RMD160 (natpmpd-1.4.tar.gz) = 3ppxumwJNyd7+QK8F5sY2C87aoM=
SHA1 (natpmpd-1.4.tar.gz) = C3fZuelcUGS23oKJnbZkjDAmSCM=
SHA256 (natpmpd-1.4.tar.gz) = nBtWm4+dA0oRCxipQwRZ9njrt7MSNmEAFOdrVg8qflM=
SIZE (natpmpd-1.4.tar.gz) = 13730

5
net/natpmpd/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
natpmpd is a daemon that can be used on an OpenBSD NAT gateway to
provide support for the NAT-PMP protocol on any internal networks which
then allows a client to create and maintain rules in pf to map TCP and
UDP connections to the external IP address on the NAT gateway to
services running on the client itself.

10
net/natpmpd/pkg/PLIST Normal file
View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/12/23 15:15:30 sthen Exp $
@newgroup _natpmpd:691
@newuser _natpmpd:691:691:daemon:NAT-PMP Daemon:/var/empty:/sbin/nologin
man/cat5/natpmpd.conf.5
man/cat8/natpmpd.8
share/examples/natpmpd/
share/examples/natpmpd/natpmpd.conf
@sample ${SYSCONFDIR}/natpmpd.conf
@bin sbin/natpmpd
@rcscript ${RCDIR}/natpmpd

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
# $OpenBSD: natpmpd.rc,v 1.1.1.1 2011/12/23 15:15:30 sthen Exp $
daemon="${TRUEPREFIX}/sbin/natpmpd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1