summaryrefslogtreecommitdiff
path: root/www-apps/mythweb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/mythweb
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/mythweb')
-rw-r--r--www-apps/mythweb/Manifest8
-rw-r--r--www-apps/mythweb/files/0.25-postinstall-en.txt9
-rw-r--r--www-apps/mythweb/files/mythweb.conf.nginx30
-rw-r--r--www-apps/mythweb/files/reconfig39
-rw-r--r--www-apps/mythweb/metadata.xml11
-rw-r--r--www-apps/mythweb/mythweb-0.28.1.ebuild79
6 files changed, 176 insertions, 0 deletions
diff --git a/www-apps/mythweb/Manifest b/www-apps/mythweb/Manifest
new file mode 100644
index 000000000000..ec49dc518047
--- /dev/null
+++ b/www-apps/mythweb/Manifest
@@ -0,0 +1,8 @@
+AUX 0.25-postinstall-en.txt 329 SHA256 cbcf8a938bcf6029dae9b17864aeb0e144324409dc6bcd3bd613154296b9687a SHA512 2fc1df9f9876d2f9247f881a8e27bf38eff22c1caa1307deb241dacb80a4d5f6ff64798f8b4634ba302c412daeb137dabc3a6385febbbb2c0d16f52879c4178c WHIRLPOOL 4b3f15646350e2fb1677e93a98521cc9854d78c916b3c2b98cb34bcd9a54cb6f3ef19008579193793d0259b1eaa53c205b287135e513afe7c051ea8dd1520941
+AUX mythweb.conf.nginx 1085 SHA256 f97cb07647b282be6d8fe3e41bbb07f942fd0d121bbbe5dc63ccf3b34004d296 SHA512 06f9202821abcc4737cbab912e4f2610433e59a430cdfd1582b086b27a85a0d2ac42296bf4f6eac582c507fd768b89f1b21510406a7f007c79dfda596fcd3a60 WHIRLPOOL b99dd45082e02be3e4d3559ff6c0eee078a5cbf4c9870701a0c7aae84806b918b36e6d7a2633ace10f4a8d36172afa0bf63abaf755e0c53da3882fba824544fb
+AUX reconfig 1209 SHA256 b83a30d0ad6f173396dff7bb46bb382a190c3e8a1817655513415f303e1e3176 SHA512 ee4b8e38638c77639208c083643d5844c7af374dcffef7e3a17bb263168f33d7463cebbb0e7457347d91f36838a42020bfba6b3d2b6672bcef15974c8fefcfaf WHIRLPOOL 5c6ed9b5409c8dfc1613d905ac0793481362a120e71e3bb58e659276835c413b374f45dd1ed965da38f7397be806406e9b62ebbd0a815c7a80c7a930732597bb
+DIST mythweb-0.28.1.tar.gz 1705490 SHA256 bbd82992230d3571eba55a26a91cc3f2dcddfa631d1822ce58e1bf99f2537244 SHA512 0ce9e2c7138d35ef59859a8a8980b01d90d9b616e55653fb28dd5a473199446508e525171687383ce83051b434f5e7618f509a9e75cd84296446ee450733e963 WHIRLPOOL b36f3226a9984d4c7ea383e1344ddb630b06972fd3170cdcbd0521f9bad3b7acf24f94c7e7099812f8fe5eeea17ab115a36a38ea0b07617998011c7f7c545e00
+EBUILD mythweb-0.28.1.ebuild 1632 SHA256 9526524bc5b0d19b3cc73c98fb7538073c79738b0ddb9bb56488c96a3c855aae SHA512 918e4e199e27199ae75c7da181d4279c0115b4b6bf9e87c52c754bce7a76461fe3f86b2c93301ca9f28c5526fd164cd91d2a5abc2bb9004d52cd8bfbfd2d60cd WHIRLPOOL ca5c04d657aa3c02bbb4bbd377843a85e6abeb3db6a85a8363d06a82704cf53477ca59e9fe23529fcc9b15ac4608d8787222ee2bf26bfc193c143578a2dbb62f
+MISC ChangeLog 3372 SHA256 5d7571368e6a9af5f5e8cf0a5e751951e5fe9d818cf3f8d78fc675d48693c228 SHA512 08e133a5201fa177fef8ab1e983614952e234f416c98777b9faf70ce802ed00bf4cd7932d0e11e1d23363c03ce451afe47f28edaaf1e07c3cc61bf2b0a209982 WHIRLPOOL 6888f3679647657f805e500e452f643622f4160bcd6f0592929ecdda3611df20aae20228d51376dd8d76c09fafacfc16cc7fa4ddc232b33125178e3dd2f917ad
+MISC ChangeLog-2015 18961 SHA256 4b9dce56a6227accb608342ad466e61d8dd09d669c73ef480de595bc29c52e42 SHA512 4ee2674a28fe526a8aa2751c7339d3276e1ab438c7d2e908a9e2e5d921977e61b7bbf75fdea558153902aa1a78aed6073c9bc0667cf2c9bd81081bb1c5365e7c WHIRLPOOL 27b173bda75e770a6d5cef25a5bba92553071d3864a7b64fcb448b0d6c1bd2bae21b178d6afce4563cbac22b2476e4030b1725a60bf39c6db588d16842459877
+MISC metadata.xml 329 SHA256 96929f22fa1641b7dfd9ba613d8c767e01449a0eb21a1ac8c0bfbc06af55cff4 SHA512 693739a0cd007f1297565389e6bb4415c4a930781675323ef8c1e6b13434751b8cccc3d6dc4030c532674e1cfc2902c6fcf0945bb22c1c2dde358958984226b0 WHIRLPOOL 9d40498c8382dc9e7c07b2ed34047aa4b6f94f9eed95b7936e5b560def2571189c8cad0339f7dee6227ea15a1962289bb898dd3ac5301cfae9349d6bc8ea08ce
diff --git a/www-apps/mythweb/files/0.25-postinstall-en.txt b/www-apps/mythweb/files/0.25-postinstall-en.txt
new file mode 100644
index 000000000000..0848d60cfa0f
--- /dev/null
+++ b/www-apps/mythweb/files/0.25-postinstall-en.txt
@@ -0,0 +1,9 @@
+You probably want to modify
+${VHOST_CONFDIR}/mythweb.include
+to fit your needs and load it into your web server
+configuration.
+
+In order to prevent unauthorized access to your MythTV
+installation, MythWeb can be configured to require
+authentication using htdigest or htpasswd. See
+${VHOST_CONFDIR}/mythweb.include for more info.
diff --git a/www-apps/mythweb/files/mythweb.conf.nginx b/www-apps/mythweb/files/mythweb.conf.nginx
new file mode 100644
index 000000000000..2737de91c931
--- /dev/null
+++ b/www-apps/mythweb/files/mythweb.conf.nginx
@@ -0,0 +1,30 @@
+location /mythweb/ {
+ root VHOST_HTDOCS;
+ auth_basic "MythWeb";
+ auth_basic_user_file /var/www/htpasswd;
+ index VHOST_APPDIR/mythweb.php;
+ try_files $uri @handler;
+}
+
+location ~ /mythweb/.+\.php {
+ root VHOST_HTDOCS;
+ include fastcgi_params;
+ fastcgi_index mythweb.php;
+ fastcgi_split_path_info ^(.+\.php)(/?.+)$;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param db_server localhost;
+ fastcgi_param db_name mythconverg;
+ fastcgi_param db_login mythtv;
+ fastcgi_param db_password mythtv;
+ fastcgi_param hostname mythtv.cardoe.com;
+ fastcgi_pass 127.0.0.1:9000;
+}
+
+location @handler {
+ root VHOST_HTDOCS;
+ rewrite VHOST_APPDIR/(.+\.(php|pl))/.* VHOST_APPDIR/$1 last;
+ rewrite VHOST_APPDIR/(pl(/.*)?)$ VHOST_APPDIR/mythweb.pl/$1 last;
+ rewrite VHOST_APPDIR/(.+)$ VHOST_APPDIR/mythweb.php/$1 last;
+ rewrite VHOST_APPDIR/(.*)$ VHOST_APPDIR/mythweb.php last;
+}
diff --git a/www-apps/mythweb/files/reconfig b/www-apps/mythweb/files/reconfig
new file mode 100644
index 000000000000..01ab9aacff7a
--- /dev/null
+++ b/www-apps/mythweb/files/reconfig
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+die() {
+ echo "###"
+ echo $1
+ echo "###"
+ exit 1
+}
+
+if [[ $1 = "install" ]]; then
+
+ if [[ "${VHOST_SERVER}" = "apache" ]]; then
+ sed -e "s|/var/www/html/data|${MY_INSTALLDIR}/data|g" \
+ -e "s|/var/www/html|${MY_INSTALLDIR}|g" \
+ ${MY_SERVERCONFIGDIR}/${VHOST_SERVER}-mythweb.conf > \
+ ${VHOST_CONFDIR}/mythweb.include || \
+ die "apache sed failed"
+ elif [[ "${VHOST_SERVER}" = "lighttpd" ]]; then
+ sed -e "s|/var/www/localhost/htdocs/mythweb|${MY_INSTALLDIR}|g" \
+ ${MY_SERVERCONFIGDIR}/${VHOST_SERVER}-mythweb.conf > \
+ ${VHOST_CONFDIR}/mythweb.include || \
+ die "lighttpd sed failed"
+ elif [[ "${VHOST_SERVER}" = "nginx" ]]; then
+ sed -e "s|VHOST_HTDOCS|${VHOST_HTDOCSDIR}|g" \
+ -e "s|VHOST_APPDIR|${VHOST_APPDIR}|g" \
+ ${MY_SERVERCONFIGDIR}/${VHOST_SERVER}-mythweb.include > \
+ ${VHOST_CONFDIR}/mythweb.include || \
+ die "nginx sed failed"
+ fi
+
+ # Ownership fixes
+ chown ${VHOST_SERVER_UID}:${VHOST_SERVER_GID} "${MY_INSTALLDIR}"/data || \
+ die "chown failed"
+
+elif [[ $1 = "clean" ]]; then
+ echo $1
+fi
+
+exit 0
diff --git a/www-apps/mythweb/metadata.xml b/www-apps/mythweb/metadata.xml
new file mode 100644
index 000000000000..29fc6a5b900c
--- /dev/null
+++ b/www-apps/mythweb/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>web-apps@gentoo.org</email>
+ <name>Gentoo Webapps</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">MythTV/mythweb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-apps/mythweb/mythweb-0.28.1.ebuild b/www-apps/mythweb/mythweb-0.28.1.ebuild
new file mode 100644
index 000000000000..5243d2658ba7
--- /dev/null
+++ b/www-apps/mythweb/mythweb-0.28.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils webapp
+
+# Release version
+MY_PV="${PV%_p*}"
+MY_P="mythweb-${MY_PV}"
+
+DESCRIPTION="PHP scripts intended to manage MythTV from a web browser"
+HOMEPAGE="https://www.mythtv.org"
+SRC_URI="https://github.com/MythTV/mythweb/archive/v${MY_PV}.tar.gz -> mythweb-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-lang/php:*[json,mysql,session,posix]
+ dev-perl/DBD-mysql
+ dev-perl/DBI
+ dev-perl/HTTP-Date
+ dev-perl/Net-UPnP
+ virtual/httpd-php:*
+"
+DEPEND="${RDEPEND}"
+
+need_httpd_cgi
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # Install docs
+ cd "${S}"
+ dodoc README INSTALL
+
+ # Install htdocs files
+ insinto "${MY_HTDOCSDIR}"
+ doins mythweb.php
+ doins -r classes
+ doins -r configuration
+ doins -r data
+ doins -r includes
+ doins -r js
+ doins -r modules
+ doins -r skins
+ doins -r tests
+ exeinto "${MY_HTDOCSDIR}"
+ doexe mythweb.pl
+
+ # Install our server config files
+ webapp_server_configfile apache mythweb.conf.apache mythweb.conf
+ webapp_server_configfile lighttpd mythweb.conf.lighttpd mythweb.conf
+ webapp_server_configfile nginx "${FILESDIR}"/mythweb.conf.nginx \
+ mythweb.include
+
+ # Data needs to be writable and modifiable by the web server
+ webapp_serverowned -R "${MY_HTDOCSDIR}"/data
+
+ # Message to display after install
+ webapp_postinst_txt en "${FILESDIR}"/0.25-postinstall-en.txt
+
+ # Script to set the correct defaults on install
+ webapp_hook_script "${FILESDIR}"/reconfig
+
+ webapp_src_install
+}