# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
categories net multimedia
# libdlna does not support i386
description a UPnP (TM) A/V & DLNA Media Server
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.
depends_build path:bin/pkg-config:pkgconfig
depends_lib port:gettext \
configure.args-append --disable-strip \
homepage http://ushare.geexbox.org/
master_sites ${homepage}releases
checksums md5 5bbcdbf1ff85a9710fa3d4e82ccaa251
patchfiles patch-configure.diff
# following prevents segfaults
patchfiles-append patch-add_std_includes.diff
# following required due to libupnp changes
patchfiles-append patch-ushare-upnp-build-fix.diff
configure.cflags-append -std=gnu89 -I${prefix}/include -I${worksrcpath}
configure.ldflags-append -lintl
file delete ${destroot}${prefix}/etc/init.d/ushare
file rename ${destroot}${prefix}/etc/ushare.conf \
${destroot}${prefix}/etc/ushare.conf.sample
startupitem.netchange yes
startupitem.executable ${prefix}/bin/uShare --cfg=${prefix}/etc/ushare.conf
Before running ${name}, you must configure it by creating and editing:
>> ${prefix}/etc/ushare.conf
${prefix}/etc/ushare.conf.sample is provided as a template.
Note that ${name} runs as root. This poses a security risk and you should not use
${name} on internet-facing machine