diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2014-06-01 17:09:08 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2014-06-01 17:09:08 +0000 |
commit | 041c6ebdcf80945220b8b6da1780d2c747c79b76 (patch) | |
tree | 77cafd38028e5b7d3f35cf94e117340d9212d930 /media-plugins/vdr-vdrmanager | |
parent | Mark arm64/m68k/s390/sh stable. (diff) | |
download | gentoo-2-041c6ebdcf80945220b8b6da1780d2c747c79b76.tar.gz gentoo-2-041c6ebdcf80945220b8b6da1780d2c747c79b76.tar.bz2 gentoo-2-041c6ebdcf80945220b8b6da1780d2c747c79b76.zip |
bump
(Portage version: 2.2.10/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 34C2808A)
Diffstat (limited to 'media-plugins/vdr-vdrmanager')
-rw-r--r-- | media-plugins/vdr-vdrmanager/ChangeLog | 10 | ||||
-rw-r--r-- | media-plugins/vdr-vdrmanager/files/confd-0.12 | 42 | ||||
-rw-r--r-- | media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh | 29 | ||||
-rw-r--r-- | media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild | 79 |
4 files changed, 158 insertions, 2 deletions
diff --git a/media-plugins/vdr-vdrmanager/ChangeLog b/media-plugins/vdr-vdrmanager/ChangeLog index 2af22f47f7e8..38aa5ba75b8f 100644 --- a/media-plugins/vdr-vdrmanager/ChangeLog +++ b/media-plugins/vdr-vdrmanager/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/vdr-vdrmanager -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/ChangeLog,v 1.10 2013/12/27 17:18:28 hd_brummy Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/ChangeLog,v 1.11 2014/06/01 17:09:08 hd_brummy Exp $ + +*vdr-vdrmanager-0.12 (01 Jun 2014) + + 01 Jun 2014; Joerg Bornkessel <hd_brummy@gentoo.org> + +vdr-vdrmanager-0.12.ebuild, +files/confd-0.12, +files/rc-addon-0.12.sh: + bump *vdr-vdrmanager-0.10 (27 Dec 2013) 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..e37fdffcd26f --- /dev/null +++ b/media-plugins/vdr-vdrmanager/files/confd-0.12 @@ -0,0 +1,42 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/files/confd-0.12,v 1.1 2014/06/01 17:09:08 hd_brummy Exp $ +# /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..a7d8ce0bbfcd --- /dev/null +++ b/media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh @@ -0,0 +1,29 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/files/rc-addon-0.12.sh,v 1.1 2014/06/01 17:09:08 hd_brummy Exp $ +# +# 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/vdr-vdrmanager-0.12.ebuild b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild new file mode 100644 index 000000000000..b362371dce6b --- /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 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild,v 1.1 2014/06/01 17:09:08 hd_brummy Exp $ + +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 +} |