View | Details | Raw Unified | Return to bug 252087 | Differences between
and this patch

Collapse All | Expand All

(-)b/net/ssdpd/Makefile (+42 lines)
Added Link Here
1
# Created by: Rozhuk Ivan 2017 <rozhuk.im@gmail.com>
2
# $FreeBSD$
3
4
PORTNAME=	ssdpd
5
PORTVERSION=	1.8.0
6
CATEGORIES=	net
7
8
MAINTAINER=	rozhuk.im@gmail.com
9
COMMENT=	SSDP announcer daemon for UPnP/DLNA and PHP UPnP/DLNA Media server
10
11
LICENSE=	BSD3CLAUSE
12
13
USE_GITHUB=	yes
14
GH_ACCOUNT=	rozhuk-im:DEFAULT \
15
		rozhuk-im:lib_lcb
16
GH_PROJECT=	ssdpd:DEFAULT \
17
		liblcb:lib_lcb
18
GH_TAGNAME=	a086b27ec1ce0b0eda87bff2b841a44837fa91aa:DEFAULT \
19
		154cf601a061c06ccc3ec3642c578e5c5ac40c90:lib_lcb
20
GH_SUBDIR=	src/liblcb:lib_lcb
21
22
USES=		cmake
23
PKGMESSAGE=	${WRKSRC}/pkg-message
24
SUB_FILES=	pkg-message
25
26
OPTIONS_DEFINE=	INSTALL_MEDIA_SRV
27
OPTIONS_DEFAULT=INSTALL_MEDIA_SRV
28
OPTIONS_SUB=	yes
29
30
INSTALL_MEDIA_SRV_DESC=		Install PHP UPnP/DLNA Media server
31
INSTALL_MEDIA_SRV_CMAKE_BOOL=	INSTALL_PHP_MEDIA_SERVER
32
INSTALL_MEDIA_SRV_RUN_DEPENDS=	nginx:www/nginx
33
34
.include <bsd.port.options.mk>
35
36
.if ${PORT_OPTIONS:MINSTALL_MEDIA_SRV}
37
USE_PHP=	fileinfo soap xml
38
USERS=		www
39
GROUPS=		www
40
.endif
41
42
.include <bsd.port.mk>
(-)b/net/ssdpd/distinfo (+5 lines)
Added Link Here
1
TIMESTAMP = 1608587793
2
SHA256 (rozhuk-im-ssdpd-1.8.0-a086b27ec1ce0b0eda87bff2b841a44837fa91aa_GH0.tar.gz) = 37cd1dc5b24ccbeef8c426e8a9d311dce1c48ecdd63000c82d5e9ed0035cd8f5
3
SIZE (rozhuk-im-ssdpd-1.8.0-a086b27ec1ce0b0eda87bff2b841a44837fa91aa_GH0.tar.gz) = 30845
4
SHA256 (rozhuk-im-liblcb-154cf601a061c06ccc3ec3642c578e5c5ac40c90_GH0.tar.gz) = cd8f4aee5b217d6a1a22b107f5c9aa9f348be011bbb0808138b215dbdc6407fd
5
SIZE (rozhuk-im-liblcb-154cf601a061c06ccc3ec3642c578e5c5ac40c90_GH0.tar.gz) = 407839
(-)b/net/ssdpd/files/pkg-message.in (+59 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
!!! ATTENTION !!!
5
6
You need complete setup!
7
8
9
1. ssdpd
10
Copy %%ETCDIR%%/ssdpd.conf.sample to %%ETCDIR%%/ssdpd.conf
11
then replace lan0 with your network interface name.
12
Add more sections if needed.
13
Remove IPv4/IPv6 lines if not needed.
14
15
Add to /etc/rc.conf:
16
ssdpd_enable="YES"
17
18
Run:
19
service ssdpd restart
20
21
22
23
2. PHP UPnP server
24
25
PHP:
26
Add to /etc/rc.conf:
27
php_fpm_enable="YES"
28
29
Run:
30
service php-fpm restart
31
32
33
nginx:
34
If nginx will serve only upnp then you can:
35
ln -f -s %%ETCDIR%%/nginx-upnp-full.conf /usr/local/etc/nginx/nginx.conf
36
37
Or add to existing nginx.conf following line:
38
include %%ETCDIR%%/nginx-upnp-handler.conf;
39
some where in existing http/server section.
40
41
42
Data:
43
Place shared data in: %%DATADIR%%/www/upnpdata
44
or make in as simlink on existing data.
45
Make sure that permissions allow www access.
46
47
48
49
3. Firewall
50
51
ssdpd:
52
Allow all IPv4 with options proto igmp.
53
Allow all udp dst port 1900.
54
55
PHP UPnP server:
56
Allow in tcp dst port 80.
57
EOM
58
}
59
]
(-)b/net/ssdpd/pkg-descr (+20 lines)
Added Link Here
1
SSDP announcer for UPnP/DLNA - a program for announcing the network UPnP/DLNA devices.
2
Announcements are sent using IPv4 and IPv6 on the special multicast address.
3
4
SSDP announcer allows you announce on your LAN any UPnP / DLNA server
5
located on the Internet, another network segment.
6
7
UPnP - based on the SSDP announcements for automatic detection of
8
available devices on the local network, and HTTP to communicate with
9
devices it has found.
10
In HTTP, the data is transmitted using XML-SOAP.
11
12
Archive with SSDP announcer contains implementation
13
UPnP / DLNA Media server based on nginx and PHP.
14
Nginx takes on work with http, php script processes the XML-SOAP
15
requests from client devices.
16
The script allows browsing through the file system and access to the
17
media which is to be found.
18
19
20
WWW: http://netlab.dhis.org/wiki/en:software:ssdpd:index
(-)b/net/ssdpd/pkg-plist (+16 lines)
Added Link Here
1
bin/ssdpd
2
etc/rc.d/ssdpd
3
@sample %%ETCDIR%%/ssdpd.conf.sample
4
%%INSTALL_MEDIA_SRV%%@sample etc/php-fpm.d/upnp-server.conf
5
%%INSTALL_MEDIA_SRV%%@sample %%ETCDIR%%/nginx-upnp-full.conf
6
%%INSTALL_MEDIA_SRV%%@sample %%ETCDIR%%/nginx-upnp-handler.conf
7
%%INSTALL_MEDIA_SRV%%@sample %%ETCDIR%%/nginx-upnp-server.conf
8
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/control/ContentDirectory.php
9
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/descr/ConnectionManager.xml
10
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/descr/ContentDirectory.wdsl
11
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/descr/ContentDirectory.xml
12
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/descr/X_MS_MediaReceiverRegistrar.xml
13
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/descr/root.xml
14
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/icons/dev-icon-48x48.png
15
%%INSTALL_MEDIA_SRV%%%%DATADIR%%/www/upnp/presentation/about.html
16
%%INSTALL_MEDIA_SRV%%@dir %%DATADIR%%/www/upnpdata

Return to bug 252087