summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-vdrmanager/files
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/files
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-vdrmanager/files')
-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
4 files changed, 118 insertions, 0 deletions
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
+}
+