Gentoo Archives: gentoo-commits

From: "Joerg Bornkessel (hd_brummy)" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-live: ChangeLog vdr-live-0.3.0_p20130504-r1.ebuild vdr-live-0.2.0_p20120325-r1.ebuild vdr-live-0.3.0_p20130504.ebuild vdr-live-0.3.0-r1.ebuild
Date: Fri, 24 Jan 2014 05:04:59
Message-Id: 20140124050456.8A68D2004C@flycatcher.gentoo.org
1 hd_brummy 14/01/24 05:04:56
2
3 Modified: ChangeLog
4 Added: vdr-live-0.3.0_p20130504-r1.ebuild
5 Removed: vdr-live-0.2.0_p20120325-r1.ebuild
6 vdr-live-0.3.0_p20130504.ebuild
7 vdr-live-0.3.0-r1.ebuild
8 Log:
9 clenup old; fixed depend to latest tntnet/cxxtools
10
11 (Portage version: 2.2.1/cvs/Linux i686, signed Manifest commit with key 34C2808A)
12
13 Revision Changes Path
14 1.44 media-plugins/vdr-live/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-live/ChangeLog?rev=1.44&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-live/ChangeLog?rev=1.44&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-live/ChangeLog?r1=1.43&r2=1.44
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v
23 retrieving revision 1.43
24 retrieving revision 1.44
25 diff -u -r1.43 -r1.44
26 --- ChangeLog 8 Jan 2014 13:20:17 -0000 1.43
27 +++ ChangeLog 24 Jan 2014 05:04:56 -0000 1.44
28 @@ -1,6 +1,13 @@
29 # ChangeLog for media-plugins/vdr-live
30 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v 1.43 2014/01/08 13:20:17 hd_brummy Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/ChangeLog,v 1.44 2014/01/24 05:04:56 hd_brummy Exp $
33 +
34 +*vdr-live-0.3.0_p20130504-r1 (24 Jan 2014)
35 +
36 + 24 Jan 2014; Joerg Bornkessel <hd_brummy@g.o>
37 + -vdr-live-0.2.0_p20120325-r1.ebuild, -vdr-live-0.3.0-r1.ebuild,
38 + -vdr-live-0.3.0_p20130504.ebuild, +vdr-live-0.3.0_p20130504-r1.ebuild:
39 + clenup old; fixed depend to latest tntnet/cxxtools
40
41 08 Jan 2014; Joerg Bornkessel <hd_brummy@g.o> vdr-live-0.2.0.ebuild:
42 converted to use vdr-plugin-2.eclass
43
44
45
46 1.1 media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: vdr-live-0.3.0_p20130504-r1.ebuild
52 ===================================================================
53 # Copyright 1999-2014 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-live/vdr-live-0.3.0_p20130504-r1.ebuild,v 1.1 2014/01/24 05:04:56 hd_brummy Exp $
56
57 EAPI=5
58
59 inherit vdr-plugin-2 ssl-cert
60
61 DESCRIPTION="VDR Plugin: Web Access To Settings"
62 HOMEPAGE="http://live.vdr-developer.org"
63 SRC_URI="mirror://gentoo/${P}.tar.bz2
64 http://dev.gentoo.org/~hd_brummy/distfiles/${P}.tar.bz2"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="pcre ssl"
70
71 DEPEND="media-video/vdr
72 >=dev-libs/tntnet-2.2.1[ssl=]
73 >=dev-libs/cxxtools-2.2.1
74 pcre? ( >=dev-libs/libpcre-8.12[cxx] )"
75 RDEPEND="${DEPEND}"
76
77 S="${WORKDIR}/${P}"
78
79 VDR_CONFD_FILE="${FILESDIR}/confd-0.2"
80 VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.2.sh"
81
82 KEEP_I18NOBJECT="yes"
83
84 make_live_cert() {
85 # TODO: still true?
86 # ssl-cert eclass creates a "invalid" cert, create our own one
87 local base=$(get_base 1)
88 local keydir="/etc/vdr/plugins/live"
89
90 SSL_ORGANIZATION="${SSL_ORGANIZATION:-VDR Plugin Live}"
91 SSL_COMMONNAME="${SSL_COMMONNAME:-`hostname -f`}"
92
93 echo
94 gen_cnf || return 1
95 echo
96 gen_key 1 || return 1
97 gen_csr 1 || return 1
98 gen_crt 1 || return 1
99 echo
100
101 install -d "${ROOT}${keydir}"
102 install -m0400 "${base}.key" "${ROOT}${keydir}/live-key.pem"
103 install -m0444 "${base}.crt" "${ROOT}${keydir}/live.pem"
104 chown vdr:vdr "${ROOT}"/etc/vdr/plugins/live/live{,-key}.pem
105 }
106
107 src_prepare() {
108 # remove untranslated language files
109 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
110
111 vdr-plugin-2_src_prepare
112
113 epatch "${FILESDIR}/${P}_vdr-2.1.2.diff"
114
115 if ! use pcre; then
116 sed -i "s:^HAVE_LIBPCRECPP:#HAVE_LIBPCRECPP:" Makefile || die
117 fi
118 }
119
120 src_install() {
121 vdr-plugin-2_src_install
122
123 insinto /usr/share/vdr/plugins/live
124 doins -r live/*
125
126 fowners -R vdr:vdr /usr/share/vdr/plugins/live
127 }
128
129 pkg_postinst() {
130 vdr-plugin-2_pkg_postinst
131
132 elog "To be able to use all functions of vdr-live"
133 elog "you should emerge and enable"
134 elog "media-plugins/vdr-epgsearch to search the EPG,"
135 elog "media-plugins/vdr-streamdev for Live-TV streaming"
136
137 elog "The default username/password is:"
138 elog "\tadmin:live"
139
140 if use ssl ; then
141 if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
142 einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
143 einfo "emerge --config ${PN}"
144 else
145 einfo "No SSL cert found, creating a default one now"
146 make_live_cert
147 fi
148 fi
149 }
150
151 pkg_config() {
152 make_live_cert
153 }