/[gentoo-x86]/media-plugins/vdr-live/vdr-live-0.3.0-r1.ebuild
Gentoo

Contents of /media-plugins/vdr-live/vdr-live-0.3.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jan 24 05:04:56 2014 UTC (10 months, 3 weeks ago) by hd_brummy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
clenup old; fixed depend to latest tntnet/cxxtools

(Portage version: 2.2.1/cvs/Linux i686, signed Manifest commit with key 34C2808A)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/vdr-live-0.3.0-r1.ebuild,v 1.1 2013/04/07 18:20:39 hd_brummy Exp $
4
5 EAPI="5"
6
7 inherit vdr-plugin-2 ssl-cert
8
9 DESCRIPTION="VDR Plugin: Web Access To Settings"
10 HOMEPAGE="http://live.vdr-developer.org"
11 SRC_URI="http://live.vdr-developer.org/downloads/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="pcre ssl"
17
18 DEPEND="media-video/vdr
19 >=dev-libs/tntnet-2.0[ssl=,sdk]
20 >=dev-libs/cxxtools-2.0
21 pcre? ( >=dev-libs/libpcre-8.12[cxx] )"
22 RDEPEND="${DEPEND}"
23
24 VDR_CONFD_FILE="${FILESDIR}/confd-0.2"
25 VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.2.sh"
26
27 KEEP_I18NOBJECT="yes"
28
29 make_live_cert() {
30 # TODO: still true?
31 # ssl-cert eclass creates a "invalid" cert, create our own one
32 local base=$(get_base 1)
33 local keydir="/etc/vdr/plugins/live"
34
35 SSL_ORGANIZATION="${SSL_ORGANIZATION:-VDR Plugin Live}"
36 SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
37
38 echo
39 gen_cnf || return 1
40 echo
41 gen_key 1 || return 1
42 gen_csr 1 || return 1
43 gen_crt 1 || return 1
44 echo
45
46 install -d "${ROOT}${keydir}"
47 install -m0400 "${base}.key" "${ROOT}${keydir}/live-key.pem"
48 install -m0444 "${base}.crt" "${ROOT}${keydir}/live.pem"
49 chown vdr:vdr "${ROOT}"/etc/vdr/plugins/live/live{,-key}.pem
50 }
51
52 src_prepare() {
53 # remove untranslated language files
54 rm "${S}"/po/{ca_ES,da_DK,el_GR,et_EE,hr_HR,hu_HU,nl_NL,nn_NO,pt_PT,ro_RO,ru_RU,sl_SI,sv_SE,tr_TR}.po
55
56 vdr-plugin-2_src_prepare
57
58 if ! use pcre; then
59 sed -i "s:^HAVE_LIBPCRECPP:#HAVE_LIBPCRECPP:" Makefile || die
60 fi
61 }
62
63 src_install() {
64 vdr-plugin-2_src_install
65
66 insinto /usr/share/vdr/plugins/live
67 doins -r live/*
68
69 fowners -R vdr:vdr /usr/share/vdr/plugins/live
70 }
71
72 pkg_postinst() {
73 vdr-plugin-2_pkg_postinst
74
75 elog "To be able to use all functions of vdr-live"
76 elog "you should emerge and enable"
77 elog "media-plugins/vdr-epgsearch to search the EPG,"
78 elog "media-plugins/vdr-streamdev for Live-TV streaming"
79
80 elog "The default username/password is:"
81 elog "\tadmin:live"
82
83 if use ssl ; then
84 if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
85 einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
86 einfo "emerge --config ${PN}"
87 else
88 einfo "No SSL cert found, creating a default one now"
89 make_live_cert
90 fi
91 fi
92 }
93
94 pkg_config() {
95 make_live_cert
96 }

  ViewVC Help
Powered by ViewVC 1.1.20