summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2012-03-09 23:25:19 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2012-03-09 23:25:19 +0000
commit8c0c8c2ead6487cea4341893efc597789d1ea114 (patch)
tree824a562c43a948fd2e7c29a80442696c7c5ebd68 /media-plugins
parentreadded vdr-plugin_pkg_config dummy function (diff)
downloadgentoo-2-8c0c8c2ead6487cea4341893efc597789d1ea114.tar.gz
gentoo-2-8c0c8c2ead6487cea4341893efc597789d1ea114.tar.bz2
gentoo-2-8c0c8c2ead6487cea4341893efc597789d1ea114.zip
better ssl cert re/creation, will create now by pkg_config call
(Portage version: 2.1.10.11/cvs/Linux i686)
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/vdr-live/ChangeLog6
-rw-r--r--media-plugins/vdr-live/vdr-live-0.2.0.20120114.ebuild48
2 files changed, 32 insertions, 22 deletions
diff --git a/media-plugins/vdr-live/ChangeLog b/media-plugins/vdr-live/ChangeLog
index 376c50cbb690..692302f12bd7 100644
--- a/media-plugins/vdr-live/ChangeLog
+++ b/media-plugins/vdr-live/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-plugins/vdr-live
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v 1.29 2012/03/09 00:35:58 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v 1.30 2012/03/09 23:25:19 hd_brummy Exp $
+
+ 09 Mar 2012; Joerg Bornkessel <hd_brummy@gentoo.org>
+ vdr-live-0.2.0.20120114.ebuild:
+ better ssl cert re/creation, will create now by pkg_config call
*vdr-live-0.2.0.20120114 (09 Mar 2012)
diff --git a/media-plugins/vdr-live/vdr-live-0.2.0.20120114.ebuild b/media-plugins/vdr-live/vdr-live-0.2.0.20120114.ebuild
index b27fbc159f48..10c07ebbd400 100644
--- a/media-plugins/vdr-live/vdr-live-0.2.0.20120114.ebuild
+++ b/media-plugins/vdr-live/vdr-live-0.2.0.20120114.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 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.20120114.ebuild,v 1.1 2012/03/09 00:35:58 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/vdr-live-0.2.0.20120114.ebuild,v 1.2 2012/03/09 23:25:19 hd_brummy Exp $
EAPI="4"
@@ -68,25 +68,7 @@ src_install() {
}
pkg_postinst() {
-
- if use ssl ; then
- if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.key; then
- einfo "SSL cert exists"
- einfo ""
- einfo "simply to create a new SSL cert remove:"
- einfo "/etc/vdr/plugins/live/{live.key,live.crt}"
- einfo "and reinstall ${P}"
- else
- einfo "Create SSL cert"
- 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
- fi
+ vdr-plugin_pkg_postinst
elog "To be able to use all functions of vdr-live"
elog "you should emerge and enable"
@@ -101,5 +83,29 @@ pkg_postinst() {
einfo "On problems, use the stable amd64, x86 versions of"
einfo "dev-libs/tntnet dev-libs/cxxtools media-plugins/vdr-live"
- vdr-plugin_pkg_postinst
+ if use ssl ; then
+ if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.key; then
+ einfo "found SSL cert"
+ einfo ""
+ einfo "to create a new SSL cert, run:"
+ einfo ""
+ einfo "emerge --config ${PN}"
+ else
+ einfo "NO SSL cert found"
+ einfo ""
+ einfo "Create SSL cert, now ..."
+ pkg_config
+ fi
+ fi
+}
+
+pkg_config() {
+
+ 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.*
}