From ad8960edfea7597c9b87ce8cd68549600235b9fa Mon Sep 17 00:00:00 2001 From: sthen Date: Fri, 23 Dec 2011 15:15:30 +0000 Subject: [PATCH] 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. --- net/natpmpd/Makefile | 26 ++++++++++++++++++++++++++ net/natpmpd/distinfo | 5 +++++ net/natpmpd/pkg/DESCR | 5 +++++ net/natpmpd/pkg/PLIST | 10 ++++++++++ net/natpmpd/pkg/natpmpd.rc | 11 +++++++++++ 5 files changed, 57 insertions(+) create mode 100644 net/natpmpd/Makefile create mode 100644 net/natpmpd/distinfo create mode 100644 net/natpmpd/pkg/DESCR create mode 100644 net/natpmpd/pkg/PLIST create mode 100644 net/natpmpd/pkg/natpmpd.rc diff --git a/net/natpmpd/Makefile b/net/natpmpd/Makefile new file mode 100644 index 00000000000..1ab7703ced0 --- /dev/null +++ b/net/natpmpd/Makefile @@ -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 + +# 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 diff --git a/net/natpmpd/distinfo b/net/natpmpd/distinfo new file mode 100644 index 00000000000..9f6c1a8f63e --- /dev/null +++ b/net/natpmpd/distinfo @@ -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 diff --git a/net/natpmpd/pkg/DESCR b/net/natpmpd/pkg/DESCR new file mode 100644 index 00000000000..e86556b4f6d --- /dev/null +++ b/net/natpmpd/pkg/DESCR @@ -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. diff --git a/net/natpmpd/pkg/PLIST b/net/natpmpd/pkg/PLIST new file mode 100644 index 00000000000..2836620ed95 --- /dev/null +++ b/net/natpmpd/pkg/PLIST @@ -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 diff --git a/net/natpmpd/pkg/natpmpd.rc b/net/natpmpd/pkg/natpmpd.rc new file mode 100644 index 00000000000..8388ef99723 --- /dev/null +++ b/net/natpmpd/pkg/natpmpd.rc @@ -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