Import minissdpd-1.1.20111007.

minissdpd(1) listen to SSDP traffic on the network so miniupnpc(3) does
not need to perform the discovery process and can work faster to set up
a redirection. minissdpd(1) is also able to reply to M-SEARCH SSDP
requests on behalf on miniupnpd(1) or other UPnP server software. That
is useful in order to host several UPnP services on the same machine.
miniupnpd(1) natively uses minissdpd(1) if run on the same machine, but
other UPnP software may require to be patched.

ok sthen@
This commit is contained in:
ajacoutot 2012-01-13 09:22:23 +00:00
parent fb8db5e14a
commit aa44f3823f
8 changed files with 95 additions and 0 deletions

16
net/miniupnp/minissdpd/Makefile Executable file
View File

@ -0,0 +1,16 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/01/13 09:22:23 ajacoutot Exp $
COMMENT= daemon keeping track of UPnP devices up
DISTNAME= minissdpd-1.1.20111007
WANTLIB += c
FAKE_FLAGS= SBININSTALLDIR=${WRKINST}${TRUEPREFIX}/sbin
post-install:
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/minissdpd.1 \
${PREFIX}/man/man1/minissdpd.1
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (minissdpd-1.1.20111007.tar.gz) = EbpSUulxPFRlREuc82pA7Q==
RMD160 (minissdpd-1.1.20111007.tar.gz) = lXgT4wpW9N8LQ/2vifC9lN3vhT8=
SHA1 (minissdpd-1.1.20111007.tar.gz) = svgu2J9oLWJlVse+vYVS0s5ThMI=
SHA256 (minissdpd-1.1.20111007.tar.gz) = lehJOgK9RbZIG4kqfQ2PIcRLEO1fvmcQjVw/VHGhZdU=
SIZE (minissdpd-1.1.20111007.tar.gz) = 17611

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/01/13 09:22:23 ajacoutot Exp $
--- Makefile.orig Fri Jul 29 17:25:43 2011
+++ Makefile Sun Jan 8 11:10:49 2012
@@ -12,8 +12,8 @@
#
# install target is made for linux... sorry BSD users...
#CFLAGS = -Wall -g -D_GNU_SOURCE -Wstrict-prototypes
-CFLAGS = -Wall -Os -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes
-CC = gcc
+CFLAGS += -Wall -D_GNU_SOURCE -fno-strict-aliasing -Wstrict-prototypes
+CC ?= gcc
RM = rm -f
INSTALL = install
@@ -37,8 +37,6 @@ clean:
install: minissdpd
$(INSTALL) -d $(SBININSTALLDIR)
$(INSTALL) minissdpd $(SBININSTALLDIR)
- $(INSTALL) -d $(PREFIX)/etc/init.d
- $(INSTALL) minissdpd.init.d.script $(PREFIX)/etc/init.d/minissdpd
minissdpd: $(MINISSDPDOBJS)
$(CC) $(CFLAGS) -o $@ $(MINISSDPDOBJS)

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-ifacewatch_c,v 1.1.1.1 2012/01/13 09:22:23 ajacoutot Exp $
--- ifacewatch.c.orig Sun Jan 8 11:08:36 2012
+++ ifacewatch.c Sun Jan 8 11:08:46 2012
@@ -11,6 +11,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#ifdef __linux__

View File

@ -0,0 +1,7 @@
minissdpd(1) listen to SSDP traffic on the network so miniupnpc(3) does
not need to perform the discovery process and can work faster to set up
a redirection. minissdpd(1) is also able to reply to M-SEARCH SSDP
requests on behalf on miniupnpd(1) or other UPnP server software. That
is useful in order to host several UPnP services on the same machine.
miniupnpd(1) natively uses minissdpd(1) if run on the same machine, but
other UPnP software may require to be patched.

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/01/13 09:22:23 ajacoutot Exp $
@man man/man1/minissdpd.1
@bin sbin/minissdpd
share/doc/pkg-readmes/${FULLPKGNAME}
@rcscript ${RCDIR}/minissdpd

View File

@ -0,0 +1,16 @@
$OpenBSD: README,v 1.1.1.1 2012/01/13 09:22:23 ajacoutot Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
Before starting minissdpd(1), "minissdpd_flags" needs to be modified in
rc.conf.local(8) to listen on the correct interface (default is "em0").
minissdpd(1) _must_ be started before miniupnpd(1) (or any other UPnP
daemon); i.e. it must appear before miniupnpd in the "pkg_scripts"
variable in rc.conf.local(8).
Multicast needs to be allowed on the listening interface. To do so the
following line needs to be added to pf.conf(5):
pass on $listening_interface from any to { 224.0.0.2, 239.0.0.0/8 }

View File

@ -0,0 +1,12 @@
#!/bin/sh
#
# $OpenBSD: minissdpd.rc,v 1.1.1.1 2012/01/13 09:22:23 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/minissdpd"
daemon_flags="-i em0"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_cmd $1