summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2016-06-24 12:38:23 +0200
committerJoerg Bornkessel <hd_brummy@gentoo.org>2016-06-24 12:38:23 +0200
commit725a65cdd18b7e25506fd94d9d4c40fb47de2913 (patch)
tree4c60e9b55501e8a3cfa937a857aec8cb1f2c740d /media-plugins
parentnet-proxy/nutcracker: Bump (diff)
downloadgentoo-725a65cdd18b7e25506fd94d9d4c40fb47de2913.tar.gz
gentoo-725a65cdd18b7e25506fd94d9d4c40fb47de2913.tar.bz2
gentoo-725a65cdd18b7e25506fd94d9d4c40fb47de2913.zip
media-plugins/vdr-vdrmanager: bump; fixed description
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/vdr-vdrmanager/Manifest1
-rw-r--r--media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild4
-rw-r--r--media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild79
3 files changed, 82 insertions, 2 deletions
diff --git a/media-plugins/vdr-vdrmanager/Manifest b/media-plugins/vdr-vdrmanager/Manifest
index 2a74e5246989..dd40293beb55 100644
--- a/media-plugins/vdr-vdrmanager/Manifest
+++ b/media-plugins/vdr-vdrmanager/Manifest
@@ -1 +1,2 @@
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
diff --git a/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild
index 058bf8c1c98f..133fb502a4a9 100644
--- a/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild
+++ b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.12.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -8,7 +8,7 @@ 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"
+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"
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..50bd7962267c
--- /dev/null
+++ b/media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}