# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup github 1.0 # set fullhash f80f8db0c03eb83d1313f3ff2ac2a6e19af65d2d set shorthash f80f8db0 github.setup MythTV mythweb ${shorthash} set majorversion .28 set minorversion "" name mythweb${majorversion} version 0${majorversion}${minorversion}-Fixes-20160620 revision 2 categories multimedia www platforms darwin license GPL-2 LGPL-2.1 maintainers ctreleaven openmaintainer supported_archs noarch conflicts mythweb.25 mythweb.26 mythweb.27 description control your Myth system via a web browser long_description MythWeb provides a frontend to MythTV using a web browser. \ Review program listings, schedule recordings, browse previous recordings, \ check on the status of your system and much more. Note that this is an \ INSECURE installation intended for local network access only. Take steps to \ secure if access from the internet is to be allowed. homepage http://www.mythtv.org/ checksums rmd160 39baa821400ac48331fef151816ef3af1cfa9a2b \ sha256 ac4af6faf699583813611dee6dd1f442572260850554969f1071492d7761ca80 set perlver perl5.24 set perlbin ${prefix}/bin/${perlver} set perlmodver p5.24 set phpver php54 depends_run port:mythtv-core${majorversion} \ port:${perlmodver}-http-request-ascgi \ port:${perlmodver}-dbd-mysql \ port:${phpver}-apache2handler \ port:${phpver}-mysql \ port:${phpver}-posix \ port:${phpver}-sockets # mythtv-core already ensures p5.22-dbd-mysql +mariadb variant is active. # No need to repeat here patchfiles patch-mythweb.conf.diff use_configure no build {} pre-patch { copy ${worksrcpath}/mythweb.conf.apache ${worksrcpath}/mythweb.conf } post-patch { reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/mythweb.conf reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythweb.php reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \ ${worksrcpath}/mythweb.pl \ ${worksrcpath}/modules/_shared/lang/build_translation.pl \ ${worksrcpath}/modules/coverart/handler.pl \ ${worksrcpath}/modules/stream/handler.pl \ ${worksrcpath}/modules/stream/stream_asx.pl \ ${worksrcpath}/modules/stream/stream_flv.pl \ ${worksrcpath}/modules/stream/stream_flvp.pl \ ${worksrcpath}/modules/stream/stream_mp4.pl \ ${worksrcpath}/modules/stream/stream_raw.pl \ ${worksrcpath}/modules/stream/tv.pl } destroot { xinstall -d ${destroot}${prefix}/apache2/htdocs copy ${worksrcpath} ${destroot}${prefix}/apache2/htdocs file rename ${destroot}${prefix}/apache2/htdocs/mythweb-${shorthash} \ ${destroot}${prefix}/apache2/htdocs/MythWeb system "chown -R _www:_www ${destroot}${prefix}/apache2/htdocs/MythWeb/data" destroot.violate_mtree yes destroot.keepdirs \ ${destroot}${prefix}/apache2/htdocs/MythWeb/data/cache \ ${destroot}${prefix}/apache2/htdocs/MythWeb/data/tv_icons } notes "\ ############################################################################ # # If this is the first time installing MythWeb, please see # http://www.mythtv.org/wiki/MythWeb_via_MacPorts for information # essential to finishing the installation of MythWeb! # # Upgrading for the first time after September 23, 2014? The change to PHP # 5.4 requires certain configuration changes. Check your configuration with # the above wiki page. # ############################################################################" livecheck.type none