summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-vdrmanager
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 /media-plugins/vdr-vdrmanager
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-vdrmanager')
-rw-r--r--media-plugins/vdr-vdrmanager/Manifest11
-rw-r--r--media-plugins/vdr-vdrmanager/files/confd28
-rw-r--r--media-plugins/vdr-vdrmanager/files/confd-0.1241
-rw-r--r--media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh28
-rw-r--r--media-plugins/vdr-vdrmanager/files/rc-addon.sh21
-rw-r--r--media-plugins/vdr-vdrmanager/metadata.xml11
-rw-r--r--media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild78
-rw-r--r--media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild78
8 files changed, 296 insertions, 0 deletions
diff --git a/media-plugins/vdr-vdrmanager/Manifest b/media-plugins/vdr-vdrmanager/Manifest
new file mode 100644
index 000000000000..409732168b33
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/Manifest
@@ -0,0 +1,11 @@
+AUX confd 600 SHA256 af33726c3ea47f355fbed4fe292ec5c402f697e59e1b13caad556ebc9cf7d1c0 SHA512 f4b5a6b67005944514e6f3e3baf823ae4ba5ca7b9f239d1c8382af96ef81fd4bf870eb808e07f85c6f30d282b25f4440b4016db588642a38b7e07aee3da68bb5 WHIRLPOOL 6ea167506bcb48964663289e83157ea4c1c12d63b656f18fb9a7a9e07b77cb03342a822729d9cf51628c34c1e9f649a71c3b8d1bba4e47ab889182a40c169679
+AUX confd-0.12 1156 SHA256 18be6a058d8ad3c987c1660ab2ddec24ce75fcefa7a1e3ef72a8557b8b7857cc SHA512 a2c213ad9cc5955a7b341d710507b609c4c22db28716df4775f809c5d0c95e55f6497b122a018be395eb7fc3631c2ad4b4ebae779d912f14b7d2d9ba836c7154 WHIRLPOOL 0287b471023f5356352d93278eda463ed1448c392dd7175a287a8aacff3649503cb970f9feabee0dd94f33239440b5e668c73e313b93ebd656aa85ab68d0ac9f
+AUX rc-addon-0.12.sh 686 SHA256 18d4beadb07a8f0fa52094f87793fd02a234eed8d7bbc3474a6722206e9f0298 SHA512 7fa21512024fa57024d37a88dc2ede422ac206e08f143c40ef13cd8692e0d9ec626cf02fb80adbf569c2edde69f147367dd9c8aeb8fb9d27ae9193c43406c2d3 WHIRLPOOL f3f6f50f3e35268c2b816a91cce685875c99721796b0a43d51efffc975d42dbe5dda3eedcd0f37a3a3949412181c7d4155ff84fb38aa655ee586ece8f3e33216
+AUX rc-addon.sh 422 SHA256 d26da42db74b8d5cb3da4b9e544eafcf4dfd432731690bced4337e95db27704f SHA512 8baddd977f0806aeb8a5c9aa9c043b22bd556aab135820afc33b98de461cbd9d1f99fdb6bedaa73476f8d2b7c61ecd4d877345fd66e708c9c7fda6018446bc48 WHIRLPOOL 7c91b838840b58d9ad80a96b4b29b304d2f2f94bdf66205cd4f76b806474028195d5493a1da262458f25fca4364e076bc4fc2bd35e3942d878592b6b754afd5e
+DIST vdr-vdrmanager-0.12.tar.gz 34404 SHA256 33afac8cc07b47ad3cd689ece82b086761eb57a27bb6084dfcef178ba40337ca SHA512 a5b962c53c636c899f2ce62a4f20bc123fb5d4603d506c51b6450fde86348bc5192697876e03bf22952197846f7cf828d743727de0c9903420a05c0c07172265 WHIRLPOOL 8e007ffc94cfc6fb32cda6dfbad7962f977dd3f8aff49860e7825d26c79bb02efa08729e4b1e53af2ed58c4b0c88490ffe38cb69d4d421a043945e626a73e93b
+DIST vdr-vdrmanager-0.14.tgz 30543 SHA256 89a5351fa9815ff3beaa08af1d3b3878565ad10147964b1ac4ac7a77a9c02143 SHA512 6b8604a5311b64fad82e3934f38524cc0f122968c707989606a5e06755a9c817ab3e7144afa4f561d8aaef8b239b758fe886ee3265410de25491243a8ef18fc3 WHIRLPOOL 8aeed8a7b2b54747fb3861c6ea2120cacacd4cd78b9def44480279f551b021b57c5e1a9f3cefcf6ab03404e157f1f63d079138b24575803b59b45eb7108bb782
+EBUILD vdr-vdrmanager-0.12.ebuild 2205 SHA256 a2f3c0877585c309fb0ff5ffdef0c2231a26e9fe1d1a914fe27d61a64876dccc SHA512 eb0ad8f51de7e9b0286d9c430683701fec7a4be9d6c21e3aadfc746a5f63ea134c83157bfe83c5a18a95cd7f1eb07dc5909fa2ca4a5f4421c48596526ad678e1 WHIRLPOOL fb42aaa84ffc39b7057e21cb882adb8b4e4ffaabb09fe12c65d0c39a4eef7b783085036b2f2c9e075c2c2f7708c2b20965278a9a2c6d5a9fce1086e17f5432fb
+EBUILD vdr-vdrmanager-0.14.ebuild 2202 SHA256 45b5f3da1370acbae4149b8cafc7c2bf05926eeb0f91ed4d019a278cfa26a012 SHA512 49a108adfdfd699fe397caecd34d43cd7c9a7f2a4168bc0aaba05e0fbbf9512de09623fa5be68a3d76e3c1d716687eadca17df339b3c97bb3aadb62d3b7a6e6a WHIRLPOOL 44ce79d2f0850e3c5db2f91b313480e1500cc892a8cbe4e75829eece9a5943f7513496de596575ecc09684d97dbe5800a447717e01ce7fa6b57120cf77f57ca0
+MISC ChangeLog 3139 SHA256 13a80e38b65abafc921fc8637947b8c1ebac66ce3a3d760b1b6f70e60d5601f0 SHA512 c98d0c4469e980ba52f167c5dbc7393f1ee2e1b573bfaca575d7663cda563842bc0f8a59a0f2e9abcbd0979ed3d8f82e4883b0a825c35de7e5dc8db385a5a1a5 WHIRLPOOL 4942f6079111e29939c833a71b7c2212394852dae9387cea671115e9b34216e9e422e105430f8b205d08e87986a77e315047fadc3ac8e5a80eb6a1705f13534d
+MISC ChangeLog-2015 2638 SHA256 48468ed7acddeff73dd323b7dc3a51f16034706fea2cfbee6d5f58a6830bc3d3 SHA512 09f8e9d874732b17cfae629e0289634409dd0610186a0bde19c896d8a601e0e957398df292a4fc20207519451a510de8cc35b95a9769850daa1e0ab93bc949f9 WHIRLPOOL 4777e2aa66e5bcd25d5de08e122d38a0984e88e1c16f7b814bac7e8250fc55921f3e2d191aeb57266fbbfe4e4d6bb3ed85265da5301cfcf7677d6add69500668
+MISC metadata.xml 343 SHA256 edb7538496123d5188073c0d1358dcc0e8053b70c4d38816317c963fe6e7dcb0 SHA512 3045d1a4c69d44d576143ee396fd3f8908e4c5a6aa9f9f949b3e0a65d3120e7da9720d58ec82307ace2375c6867ae86be01eca8b83f5d7677bd6c86102a06880 WHIRLPOOL 3e5d956a296aa492655817964c5f8c7b84ed9a303ee0d690cf909c03c96223cc6fc9c6ee756ca149745379f591e9c5e06ee39e1d56740ff528161a565943289b
diff --git a/media-plugins/vdr-vdrmanager/files/confd b/media-plugins/vdr-vdrmanager/files/confd
new file mode 100644
index 000000000000..3f9b97c9e869
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/confd
@@ -0,0 +1,28 @@
+# /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..a63cfb03f646
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/confd-0.12
@@ -0,0 +1,41 @@
+# /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..9ee9e52a4318
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh
@@ -0,0 +1,28 @@
+#
+# 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..5abcad497e08
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/files/rc-addon.sh
@@ -0,0 +1,21 @@
+#
+# 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..25b884157b0f
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/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>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..0427b6c21a46
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2 ssl-cert
+
+VERSION="1747" # every bump, new version
+
+DESCRIPTION="VDR Plugin: 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
+}
diff --git a/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild
new file mode 100644
index 000000000000..80757050530c
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit vdr-plugin-2 ssl-cert
+
+VERSION="1971" # every bump, new version
+
+DESCRIPTION="VDR Plugin: 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}.tgz"
+
+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
+}