source: trunk/dports/net/ushare/Portfile

Last change on this file was 126548, checked in by ctreleaven@…, 3 years ago

add patches for updated libupnp, fix segfaults, add startupitem and notes, add license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
2# $Id: Portfile 126548 2014-10-12 01:22:42Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                ushare
7version             1.1a
8revision            4
9categories          net multimedia
10platforms           darwin
11supported_archs     x86_64
12# libdlna does not support i386
13maintainers         nomaintainer
14description         a UPnP (TM) A/V & DLNA Media Server
15long_description \
16    uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server \
17    component that provides UPnP media devices with information on available \
18    multimedia files. uShare uses the built-in http server of libupnp to \
19    stream the files to clients.
20
21depends_build       path:bin/pkg-config:pkgconfig
22depends_lib         port:gettext \
23                    port:libupnp \
24                    port:libdlna
25
26configure.args-append   --disable-strip \
27                        --enable-dlna
28
29homepage            http://ushare.geexbox.org/
30license             GPL-2+
31master_sites        ${homepage}releases
32use_bzip2           yes
33checksums           md5 5bbcdbf1ff85a9710fa3d4e82ccaa251
34
35patchfiles          patch-configure.diff
36# following prevents segfaults
37patchfiles-append   patch-add_std_includes.diff
38# following required due to libupnp changes
39patchfiles-append   patch-ushare-upnp-build-fix.diff
40
41configure.cflags-append     -std=gnu89 -I${prefix}/include -I${worksrcpath}
42configure.ldflags-append    -lintl
43
44post-destroot {
45    file delete ${destroot}${prefix}/etc/init.d/ushare
46    file rename ${destroot}${prefix}/etc/ushare.conf \
47        ${destroot}${prefix}/etc/ushare.conf.sample
48}
49
50universal_variant no
51
52startupitem.create      yes
53startupitem.netchange   yes
54startupitem.executable  ${prefix}/bin/uShare --cfg=${prefix}/etc/ushare.conf
55
56notes "
57****  ${name}  ****
58Before running ${name}, you must configure it by creating and editing:
59>>  ${prefix}/etc/ushare.conf
60${prefix}/etc/ushare.conf.sample is provided as a template.
61
62Note that ${name} runs as root.  This poses a security risk and you should not use
63${name} on internet-facing machine
64
65When loaded, you may be able to configure ${name} with a web browser at
66>>  <ip.addr.of.host>:<port>/web/ushare.html
67"
Note: See TracBrowser for help on using the repository browser.