summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-vdrmanager')
-rw-r--r--media-plugins/vdr-vdrmanager/Manifest1
-rw-r--r--media-plugins/vdr-vdrmanager/files/confd29
-rw-r--r--media-plugins/vdr-vdrmanager/files/confd-0.1242
-rw-r--r--media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh29
-rw-r--r--media-plugins/vdr-vdrmanager/files/rc-addon.sh22
-rw-r--r--media-plugins/vdr-vdrmanager/metadata.xml13
-rw-r--r--media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild79
7 files changed, 215 insertions, 0 deletions
diff --git a/media-plugins/vdr-vdrmanager/Manifest b/media-plugins/vdr-vdrmanager/Manifest
new file mode 100644
index 000000000000..2a74e5246989
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/Manifest
@@ -0,0 +1 @@
+DIST vdr-vdrmanager-0.12.tar.gz 34404 SHA256 33afac8cc07b47ad3cd689ece82b086761eb57a27bb6084dfcef178ba40337ca SHA512 a5b962c53c636c899f2ce62a4f20bc123fb5d4603d506c51b6450fde86348bc5192697876e03bf22952197846f7cf828d743727de0c9903420a05c0c07172265 WHIRLPOOL 8e007ffc94cfc6fb32cda6dfbad7962f977dd3f8aff49860e7825d26c79bb02efa08729e4b1e53af2ed58c4b0c88490ffe38cb69d4d421a043945e626a73e93b
diff --git a/media-plugins/vdr-vdrmanager/files/confd b/media-plugins/vdr-vdrmanager/files/confd
new file mode 100644
index 000000000000..121ec45f229d
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/confd
@@ -0,0 +1,29 @@
+# $Id$
+# /etc/conf.d/vdr.vdrmanager
+
+# Parameters for vdr-plugin-vdrmanager
+#
+# For more details see:
+# http://projects.vdr-developer.org/projects/vdr-manager/wiki
+
+# Set the port where the plugin is listen on
+# allowed values: port number
+# default: 6420
+#
+#VDRMANAGER_PORT="6420"
+
+# Set the password where the plugin/app is listen on
+# allowed values: your_password
+# default:
+#
+VDRMANAGER_PASS=""
+
+# Force check against svdrphosts.conf
+# change this to yes, if you have added a static IP
+# for access outside from your LAN
+#
+# allowed values: yes | no
+# default: no
+#
+#SVDRPHOSTS_CHECK="no"
+
diff --git a/media-plugins/vdr-vdrmanager/files/confd-0.12 b/media-plugins/vdr-vdrmanager/files/confd-0.12
new file mode 100644
index 000000000000..1e95ed5bbd4e
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/confd-0.12
@@ -0,0 +1,42 @@
+# $Id$
+# /etc/conf.d/vdr.vdrmanager
+
+# Parameters for vdr-plugin-vdrmanager
+#
+# For more details see:
+# http://projects.vdr-developer.org/projects/vdr-manager/wiki
+
+# Set the port where the plugin is listen on
+# allowed values: port number
+# default: 6420
+# default port on ssl connection is always VDRMANAGER_PORT +1
+# this means, if you enable ssl support on your android vdrmanager app
+# add +1 in the app port setup, else it will still the non ssl connection be used
+# try to remember on this ;)
+#
+#VDRMANAGER_PORT="6420"
+
+# Set the password where the plugin/app is listen on
+# allowed values: your_password
+# default:
+#
+VDRMANAGER_PASS=""
+
+# Force check against svdrphosts.conf
+# change this to yes, if you have added a static IP
+# for access outside from your LAN
+#
+# allowed values: yes | no
+# default: no
+#
+#SVDRPHOSTS_CHECK="no"
+
+# Compressionsmode for data transfer
+# 'g' for gzip, if you has use-flag gzip enabled on plugin install
+# 'z' for zlib, if you has use-flag zlib enabled on plugin install
+# 'n' for none, if you would like to disable compression
+#
+# allowed values: g | z | n
+# default: unset
+#
+#VDRMANAGER_COMPRESSION=""
diff --git a/media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh b/media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh
new file mode 100644
index 000000000000..0ee192398af8
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh
@@ -0,0 +1,29 @@
+# $Id$
+#
+# rc-addon plugin-startup-skript for vdr-vdrmanager
+#
+
+: ${VDRMANAGER_PORT:=6420}
+
+# default path from ebuild merge; no option in config file to overwrite
+: ${VDRMANAGER_CERTFILE:=/etc/vdr/plugins/vdrmanager/vdrmanager.pem}
+
+if [[ -z ${VDRMANAGER_PASS} ]]; then
+ eerror "Empty password in /etc/conf.d/vdr.vdrmanager"
+ logger -t vdr "ERROR: need password for plugin vdr-manager"
+fi
+
+plugin_pre_vdr_start() {
+
+ add_plugin_param "-p${VDRMANAGER_PORT}"
+ add_plugin_param "-P${VDRMANAGER_PASS}"
+
+ if yesno ${SVDRPHOSTS_CHECK:-no}; then
+ add_plugin_param "-s"
+ fi
+
+ add_plugin_param "-k ${VDRMANAGER_CERTFILE}"
+
+ # vdrmanager_compression
+ add_plugin_param "-c ${VDRMANAGER_COMPRESSION}"
+}
diff --git a/media-plugins/vdr-vdrmanager/files/rc-addon.sh b/media-plugins/vdr-vdrmanager/files/rc-addon.sh
new file mode 100644
index 000000000000..2effc5efa559
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/rc-addon.sh
@@ -0,0 +1,22 @@
+# $Id$
+#
+# rc-addon plugin-startup-skript for vdr-vdrmanager
+#
+
+: ${VDRMANAGER_PORT:=6420}
+
+if [[ -z ${VDRMANAGER_PASS} ]]; then
+ eerror "Empty password in /etc/conf.d/vdr.vdrmanager"
+ logger -t vdr "ERROR: need password for plugin vdr-manager"
+fi
+
+plugin_pre_vdr_start() {
+
+ add_plugin_param "-p${VDRMANAGER_PORT}"
+ add_plugin_param "-P${VDRMANAGER_PASS}"
+
+ if yesno ${SVDRPHOSTS_CHECK:-no}; then
+ add_plugin_param "-s"
+ fi
+}
+
diff --git a/media-plugins/vdr-vdrmanager/metadata.xml b/media-plugins/vdr-vdrmanager/metadata.xml
new file mode 100644
index 000000000000..2eaf32514317
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>media-tv</herd>
+ <maintainer>
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+ <use>
+ <flag name="stream">Add support for streaming Video to Android client</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild
new file mode 100644
index 000000000000..058bf8c1c98f
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2 ssl-cert
+
+VERSION="1747" # every bump, new version
+
+DESCRIPTION="VDR Plugin: allows remote programming VDR using VDR-Manager running on Android devices"
+HOMEPAGE="http://projects.vdr-developer.org/projects/vdr-manager/wiki"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tar.gz"
+
+KEYWORDS="~x86 ~amd64"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="gzip +ssl -stream zlib"
+
+DEPEND=">=media-video/vdr-2
+ ssl? ( dev-libs/openssl )"
+RDEPEND="stream? ( media-plugins/vdr-streamdev[server] )
+ zlib? ( sys-libs/zlib )"
+
+S="${WORKDIR}/${P}"
+
+VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.12.sh"
+VDR_CONFD_FILE="${FILESDIR}/confd-0.12"
+
+VDRMANAGER_SSL_KEY_DIR="/etc/vdr/plugins/vdrmanager"
+VDRMANAGER_SSL_KEY_FILE="${VDRMANAGER_SSL_KEY_DIR}/vdrmanager"
+
+make_vdrmanager_cert() {
+ SSL_COUNTRY="${SSL_COUNTRY:-}"
+ SSL_STATE="${SSL_STATE:-Unknown}"
+ SSL_LOCALITY="${VDRMANAGER_SSL_LOCALITY:-Unkown}"
+ SSL_ORGANIZATION="${VDRMNAGER_SSL_ORGANIZATION:-VDR-Manager Plugin}"
+ SSL_UNIT="${VDRMANAGER_SSL_UNIT:-VDR Server}"
+ SSL_COMMONNAME="${VDRMANAGER_SSL_COMMONNAME:-`hostname -f`}"
+ SSL_EMAIL="${VDRMANAGER_SSL_EMAIL:-Unknown}"
+ SSL_BITS="${VDRMANAGER_SSL_BITS:-1024}"
+ SSL_DAYS="${VDRMANAGER_SSL_DAYS:-720}"
+
+ rm -f "${ROOT}"${VDRMANAGER_SSL_KEY_FILE}.*
+
+ install_cert ${VDRMANAGER_SSL_KEY_FILE}
+
+ rm -f "${ROOT}"${VDRMANAGER_SSL_KEY_FILE}.{crt,csr,key}
+ chown vdr:vdr "${ROOT}"${VDRMANAGER_SSL_KEY_FILE}.pem
+ chmod 0400 "${ROOT}"${VDRMANAGER_SSL_KEY_FILE}.pem
+}
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ BUILD_PARAMS+=" VDRMANAGER_USE_GZIP=$(usex gzip 1 0)"
+ BUILD_PARAMS+=" VDRMANAGER_USE_SSL=$(usex ssl 1 0)"
+ BUILD_PARAMS+=" VDRMANAGER_USE_ZLIB=$(usex zlib 1 0)"
+}
+
+pkg_postinst() {
+ vdr-plugin-2_pkg_postinst
+
+ einfo "Add a password to /etc/conf.d/vdr.vdrmanager"
+
+ if use ssl ; then
+ if path_exists -a "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem"; then
+ einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
+ einfo "emerge --config ${PN}"
+ else
+ einfo "No SSL cert found, creating a default one now"
+ make_vdrmanager_cert
+ fi
+ fi
+}
+
+pkg_config() {
+ make_vdrmanager_cert
+}