Import ushare-1.1a
uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server component that provides UPnP media devices with information on available multimedia files. uShare uses the built-in http server of libupnp to stream the files to clients. GeeXboX uShare is able to provide access to both images, videos, music or playlists files (see below for a complete file format support list It does not act as an UPnP Media Adaptor and thus, can't transcode streams to fit the client requirements. Note that DLNA support is not enabled on OpenBSD.
This commit is contained in:
parent
dc5157c024
commit
15449dfe44
49
net/ushare/Makefile
Executable file
49
net/ushare/Makefile
Executable file
@ -0,0 +1,49 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
|
||||
COMMENT= UPnP A/V media server
|
||||
|
||||
DISTNAME= ushare-1.1a
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
CATEGORIES= net multimedia
|
||||
|
||||
HOMEPAGE= http://ushare.geexbox.org/
|
||||
|
||||
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += c pthread
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}releases/
|
||||
|
||||
MODULES= devel/gettext
|
||||
|
||||
LIB_DEPENDS= ixml,threadutil,upnp::net/libupnp
|
||||
|
||||
USE_GMAKE= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lintl -liconv" \
|
||||
MAKE=${MAKE_PROGRAM}
|
||||
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR} \
|
||||
--with-libupnp-dir=${LOCALBASE}/lib \
|
||||
--disable-optimize \
|
||||
--disable-dlna
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC} -DBSD -D__unix__
|
||||
|
||||
FAKE_FLAGS= sysconfdir=${WRKINST}${PREFIX}/share/examples/ushare
|
||||
|
||||
.ifdef DEBUG
|
||||
CONFIGURE_ARGS+= --enable-debug
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-debug
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/ushare/distinfo
Normal file
5
net/ushare/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (ushare-1.1a.tar.bz2) = W7zb8f+FqXEPo9ToLMqiUQ==
|
||||
RMD160 (ushare-1.1a.tar.bz2) = YZT/7AMdIP2Jfyx89xw8gQI4cT8=
|
||||
SHA1 (ushare-1.1a.tar.bz2) = FTnoPN5dgPQz0mLZcfX+eEhsk3U=
|
||||
SHA256 (ushare-1.1a.tar.bz2) = e5uFx5lo1PRWDwKpnjPGoz/1j51B2PrqeeMczi7nhmU=
|
||||
SIZE (ushare-1.1a.tar.bz2) = 65864
|
14
net/ushare/patches/patch-configure
Normal file
14
net/ushare/patches/patch-configure
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
--- configure.orig Tue Feb 9 12:53:41 2010
|
||||
+++ configure Tue Feb 9 12:53:51 2010
|
||||
@@ -639,8 +639,8 @@ echolog "Checking for libixml ..."
|
||||
check_lib upnp/ixml.h ixmlRelaxParser -lixml || die "Error, can't find libixml !"
|
||||
|
||||
echolog "Checking for libthreadutil ..."
|
||||
-check_lib upnp/ThreadPool.h ThreadPoolAdd "-lthreadutil -lpthread" || die "Error, can't find libthreadutil !"
|
||||
-add_extralibs -lpthread
|
||||
+check_lib upnp/ThreadPool.h ThreadPoolAdd "-lthreadutil -pthread" || die "Error, can't find libthreadutil !"
|
||||
+add_extralibs -pthread
|
||||
|
||||
libupnp_min_version="1.4.2"
|
||||
echolog "Checking for libupnp >= $libupnp_min_version ..."
|
12
net/ushare/patches/patch-scripts_Makefile
Normal file
12
net/ushare/patches/patch-scripts_Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-scripts_Makefile,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
--- scripts/Makefile.orig Tue Feb 9 13:19:30 2010
|
||||
+++ scripts/Makefile Tue Feb 9 13:19:36 2010
|
||||
@@ -17,8 +17,6 @@ distclean:
|
||||
install:
|
||||
$(INSTALL) -d $(sysconfdir)
|
||||
$(INSTALL) -m 644 $(CONF_FILE) $(sysconfdir)
|
||||
- $(INSTALL) -d $(sysconfdir)/init.d
|
||||
- $(INSTALL) -m 755 $(INITD_FILE) $(sysconfdir)/init.d
|
||||
|
||||
dist-all:
|
||||
cp $(EXTRADIST) $(SRCS) Makefile $(DIST)
|
36
net/ushare/patches/patch-scripts_ushare_conf
Normal file
36
net/ushare/patches/patch-scripts_ushare_conf
Normal file
@ -0,0 +1,36 @@
|
||||
$OpenBSD: patch-scripts_ushare_conf,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
--- scripts/ushare.conf.orig Tue Feb 9 16:57:02 2010
|
||||
+++ scripts/ushare.conf Tue Feb 9 16:57:35 2010
|
||||
@@ -10,7 +10,7 @@ USHARE_IFACE=
|
||||
|
||||
# Port to listen to (default is random from IANA Dynamic Ports range)
|
||||
# Ex : USHARE_PORT=49200
|
||||
-USHARE_PORT=
|
||||
+USHARE_PORT=49200
|
||||
|
||||
# Port to listen for Telnet connections
|
||||
# Ex : USHARE_TELNET_PORT=1337
|
||||
@@ -28,18 +28,18 @@ USHARE_DIR=
|
||||
# as is. (Umlauts for all!)
|
||||
#
|
||||
# Options are TRUE/YES/1 for override and anything else for default behaviour
|
||||
-USHARE_OVERRIDE_ICONV_ERR=
|
||||
+USHARE_OVERRIDE_ICONV_ERR=YES
|
||||
|
||||
# Enable Web interface (yes/no)
|
||||
-ENABLE_WEB=
|
||||
+USHARE_ENABLE_WEB=no
|
||||
|
||||
# Enable Telnet control interface (yes/no)
|
||||
-ENABLE_TELNET=
|
||||
+USHARE_ENABLE_TELNET=no
|
||||
|
||||
# Use XboX 360 compatibility mode (yes/no)
|
||||
-ENABLE_XBOX=
|
||||
+USHARE_ENABLE_XBOX=no
|
||||
|
||||
# Use DLNA profile (yes/no)
|
||||
# This is needed for PlayStation3 to work (among other devices)
|
||||
-ENABLE_DLNA=
|
||||
+USHARE_ENABLE_DLNA=no
|
||||
|
11
net/ushare/patches/patch-src_ctrl_telnet_h
Normal file
11
net/ushare/patches/patch-src_ctrl_telnet_h
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_ctrl_telnet_h,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
--- src/ctrl_telnet.h.orig Tue Feb 9 13:07:37 2010
|
||||
+++ src/ctrl_telnet.h Tue Feb 9 13:08:36 2010
|
||||
@@ -25,6 +25,7 @@
|
||||
#define CTRL_TELNET_SHARED_BUFFER_SIZE 256
|
||||
#define CTRL_CLIENT_RECV_BUFFER_SIZE 256
|
||||
|
||||
+#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
/**
|
12
net/ushare/patches/patch-src_mime_c
Normal file
12
net/ushare/patches/patch-src_mime_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_mime_c,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
--- src/mime.c.orig Tue Feb 9 16:55:15 2010
|
||||
+++ src/mime.c Tue Feb 9 16:55:33 2010
|
||||
@@ -56,7 +56,7 @@ const struct mime_type_t MIME_Type_List[] = {
|
||||
{ "mp4ps", UPNP_VIDEO, "http-get:*:video/x-nerodigital-ps:"},
|
||||
{ "ts", UPNP_VIDEO, "http-get:*:video/mpeg2:"},
|
||||
{ "ogm", UPNP_VIDEO, "http-get:*:video/mpeg:"},
|
||||
- { "mkv", UPNP_VIDEO, "http-get:*:video/mpeg:"},
|
||||
+ { "mkv", UPNP_VIDEO, "http-get:*:video/x-matroska:"},
|
||||
{ "rmvb", UPNP_VIDEO, "http-get:*:video/mpeg:"},
|
||||
{ "mov", UPNP_VIDEO, "http-get:*:video/quicktime:"},
|
||||
{ "hdmov", UPNP_VIDEO, "http-get:*:video/quicktime:"},
|
35
net/ushare/patches/patch-src_ushare_c
Normal file
35
net/ushare/patches/patch-src_ushare_c
Normal file
@ -0,0 +1,35 @@
|
||||
$OpenBSD: patch-src_ushare_c,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
--- src/ushare.c.orig Sun Dec 9 14:03:36 2007
|
||||
+++ src/ushare.c Tue Feb 9 15:32:22 2010
|
||||
@@ -28,6 +28,10 @@
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
|
||||
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
+
|
||||
#if (defined(BSD) || defined(__FreeBSD__) || defined(__APPLE__))
|
||||
#include <sys/socket.h>
|
||||
#include <sys/sysctl.h>
|
||||
@@ -49,10 +53,6 @@
|
||||
#include <ifaddrs.h>
|
||||
#endif
|
||||
|
||||
-#if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
-#include <sys/param.h>
|
||||
-#endif
|
||||
-
|
||||
#include <upnp/upnp.h>
|
||||
#include <upnp/upnptools.h>
|
||||
|
||||
@@ -845,6 +845,9 @@ main (int argc, char **argv)
|
||||
|
||||
signal (SIGINT, UPnPBreak);
|
||||
signal (SIGHUP, reload_config);
|
||||
+#ifndef MSG_NOSIGNAL
|
||||
+ signal (SIGPIPE, SIG_IGN);
|
||||
+#endif
|
||||
|
||||
if (ut->use_telnet)
|
||||
{
|
11
net/ushare/pkg/DESCR
Normal file
11
net/ushare/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server
|
||||
component that provides UPnP media devices with information on available
|
||||
multimedia files. uShare uses the built-in http server of libupnp to
|
||||
stream the files to clients.
|
||||
|
||||
GeeXboX uShare is able to provide access to both images, videos, music
|
||||
or playlists files (see below for a complete file format support list
|
||||
It does not act as an UPnP Media Adaptor and thus, can't transcode
|
||||
streams to fit the client requirements.
|
||||
|
||||
Note that DLNA support is not enabled on OpenBSD.
|
12
net/ushare/pkg/MESSAGE
Normal file
12
net/ushare/pkg/MESSAGE
Normal file
@ -0,0 +1,12 @@
|
||||
USHARE_IFACE (listening interface) and USHARE_DIR (shared directories)
|
||||
need to be set in ${SYSCONFDIR}/ushare.conf before starting ushare.
|
||||
|
||||
To start ushare at boot time, add the following to /etc/rc.local:
|
||||
if [ -x ${PREFIX}/bin/ushare ]; then
|
||||
echo -n ' ushare'; ${PREFIX}/bin/ushare -D
|
||||
fi
|
||||
|
||||
UPnP multicast discovery on the listening interface needs to be enabled.
|
||||
Add this line to the matching hostname.if(5) and restart the network
|
||||
(a.b.c.d being the interface IP address).
|
||||
!route -qn add -net 239.0.0.0/8 -interface a.b.c.d
|
7
net/ushare/pkg/PLIST
Normal file
7
net/ushare/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/03/22 22:26:59 ajacoutot Exp $
|
||||
@bin bin/ushare
|
||||
share/examples/ushare/
|
||||
share/examples/ushare/ushare.conf
|
||||
@sample ${SYSCONFDIR}/ushare.conf
|
||||
share/locale/de/LC_MESSAGES/ushare.mo
|
||||
share/locale/fr/LC_MESSAGES/ushare.mo
|
Loading…
x
Reference in New Issue
Block a user