summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2011-01-19 23:12:33 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2011-01-19 23:12:33 +0000
commit805c532b1b578142ee9165ee6dfd37304d8deedc (patch)
tree5810edd7a6147c1b8a2d9bd76a0e0c150cb6140d /media-plugins/vdr-live
parentAdd other Prefix keywords (diff)
downloadgentoo-2-805c532b1b578142ee9165ee6dfd37304d8deedc.tar.gz
gentoo-2-805c532b1b578142ee9165ee6dfd37304d8deedc.tar.bz2
gentoo-2-805c532b1b578142ee9165ee6dfd37304d8deedc.zip
new snapshot, works on vdr-1.7.16
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'media-plugins/vdr-live')
-rw-r--r--media-plugins/vdr-live/ChangeLog8
-rw-r--r--media-plugins/vdr-live/vdr-live-0.2.0.20110118.ebuild89
2 files changed, 96 insertions, 1 deletions
diff --git a/media-plugins/vdr-live/ChangeLog b/media-plugins/vdr-live/ChangeLog
index 54af1a1fd1a7..0a81e2b23caa 100644
--- a/media-plugins/vdr-live/ChangeLog
+++ b/media-plugins/vdr-live/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-plugins/vdr-live
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v 1.21 2011/01/19 16:46:20 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v 1.22 2011/01/19 23:12:33 hd_brummy Exp $
+
+*vdr-live-0.2.0.20110118 (19 Jan 2011)
+
+ 19 Jan 2011; Joerg Bornkessel <hd_brummy@gentoo.org>
+ +vdr-live-0.2.0.20110118.ebuild:
+ new snapshot, works on vdr-1.7.16
19 Jan 2011; Joerg Bornkessel <hd_brummy@gentoo.org>
vdr-live-0.2.0.ebuild:
diff --git a/media-plugins/vdr-live/vdr-live-0.2.0.20110118.ebuild b/media-plugins/vdr-live/vdr-live-0.2.0.20110118.ebuild
new file mode 100644
index 000000000000..de733a812d58
--- /dev/null
+++ b/media-plugins/vdr-live/vdr-live-0.2.0.20110118.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/vdr-live-0.2.0.20110118.ebuild,v 1.1 2011/01/19 23:12:33 hd_brummy Exp $
+
+EAPI="2"
+
+inherit vdr-plugin ssl-cert
+
+DESCRIPTION="VDR Plugin: Web Access To Settings"
+HOMEPAGE="http://live.vdr-developer.org"
+#SRC_URI="http://live.vdr-developer.org/downloads/${P}.tar.gz"
+SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+DEPEND="media-video/vdr
+ >=dev-libs/tntnet-1.6.0.6[ssl=]
+ >=dev-libs/cxxtools-1.4.3"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${VDRPLUGIN}"
+
+make_live_cert() {
+ # ssl-cert eclass create invalide cert, create my own
+
+ SSL_ORGANIZATION="${SSL_ORGANIZATION:-VDR Plugin Live}"
+ SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
+
+ echo
+ gen_cnf || return 1
+ echo
+ gen_key 1 || return 1
+ gen_csr 1 || return 1
+ gen_crt 1 || return 1
+ echo
+}
+
+src_prepare() {
+ vdr-plugin_src_prepare
+
+ #make it work with /bin/sh as indicated in the file header
+ sed -e "18s/==/=/" -i buildutil/version-util
+
+ sed -e "s/ERROR:/WARNING:/" -i tntconfig.cpp
+
+ if ! has_version ">=media-video/vdr-1.7.13"; then
+ sed -i "s:-include \$(VDRDIR)/Make.global:#-include \$(VDRDIR)/Make.global:" Makefile
+ fi
+}
+
+src_install() {
+ vdr-plugin_src_install
+
+ cd "${S}/live"
+ insinto /etc/vdr/plugins/live
+ doins -r *
+
+ chown vdr:vdr -R "${D}"/etc/vdr/plugins/live
+}
+
+pkg_postinst() {
+ vdr-plugin_pkg_postinst
+
+ elog "To be able to use all functions of vdr-live"
+ elog "you should emerge and enable vdr-epgsearch"
+ elog
+ elog "\temerge >=vdr-epgsearch-0.9.25_beta7"
+ elog "\teselect vdr-plugin enable epgsearch"
+ echo
+ ewarn "This is a developer snapshot"
+ einfo "On problems, use the stable amd64, x86 versions of"
+ einfo "dev-libs/tntnet dev-libs/cxxtools media-plugins/vdr-live"
+
+ # Do not install live.{key,crt) SSL certificates if they already exist
+ if use ssl && [[ ! -f "${ROOT}"/etc/vdr/plugins/live/live.key \
+ && ! -f "${ROOT}"/etc/vdr/plugins/live/live.crt ]] ; then
+ make_live_cert
+ local base=$(get_base 1)
+ local keydir="/etc/vdr/plugins/live"
+ install -d "${ROOT}${keydir}"
+ install -m0400 "${base}.key" "${ROOT}${keydir}/live.key"
+ install -m0444 "${base}.crt" "${ROOT}${keydir}/live.crt"
+ chown vdr:vdr "${ROOT}"/etc/vdr/plugins/live/live.*
+ fi
+}