Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/mythtv/, media-tv/mythtv/files/
Date: Fri, 11 Aug 2017 15:14:23
Message-Id: 1502464273.efb447520ee5333ab19edaf277c77f6adec07a76.asturm@gentoo
1 commit: efb447520ee5333ab19edaf277c77f6adec07a76
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 11 15:08:53 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 11 15:11:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efb44752
7
8 media-tv/mythtv: Drop 0.27.6
9
10 Gentoo-bug: 620706
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.3
13
14 media-tv/mythtv/Manifest | 1 -
15 media-tv/mythtv/files/libdir-27.patch | 13 -
16 media-tv/mythtv/files/mythbackend.conf | 11 -
17 media-tv/mythtv/files/mythbackend.init | 55 ----
18 media-tv/mythtv/files/mythbackend.service | 66 ----
19 .../mythtv/files/mythtv-0.27.6-libvpx-1.5.0.patch | 17 -
20 media-tv/mythtv/mythtv-0.27.6_p20160318-r1.ebuild | 359 ---------------------
21 7 files changed, 522 deletions(-)
22
23 diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest
24 index 8fdb1e25636..c9722df0b5b 100644
25 --- a/media-tv/mythtv/Manifest
26 +++ b/media-tv/mythtv/Manifest
27 @@ -1,2 +1 @@
28 -DIST mythtv-0.27.6_p20160318.tar.gz 85676387 SHA256 d0b8c03d95e082e87e0fab8656358e9f3991cd08b2ec5edcbb10a9a91b1e4162 SHA512 7e94d07b4f99a15b978b42d8be11f329a938842b02ad99c9628ab6dda2fa802ca7148c5db9e6f7fae40f44027f55e69f1cdb6879ee83400934025f18ac68468f WHIRLPOOL d0f040c1ecb35e5c526477134d756a67d978aeefbf478b624eaa16e4ca1639e3b8f038507052b7d05e3a18fb85fd4e1eaeeb1a185ccfdf0fb2255fdc657be6c1
29 DIST mythtv-0.28.1.tar.gz 104477892 SHA256 73dd4de0de6fe5688c290781b76de6380b256a87159f2c6e3dad66870389da1f SHA512 67a81858cd19b90f519113b234119ecc248366d8545c862d887755f256cddf04d9ca16a7bf67f63e06f7628730e7dbde2a2099ca8aaeb9061b2e55a5a0b7d5e7 WHIRLPOOL 370f3a528438d50d302ab6adadba5089b32749f8127cbf270b85ef16d35ca15026e0947e292920a3dd6acf2ed65de68af8754d985944bd59f3310a42b03551de
30
31 diff --git a/media-tv/mythtv/files/libdir-27.patch b/media-tv/mythtv/files/libdir-27.patch
32 deleted file mode 100644
33 index d25e714b3c6..00000000000
34 --- a/media-tv/mythtv/files/libdir-27.patch
35 +++ /dev/null
36 @@ -1,13 +0,0 @@
37 -diff --git a/mythtv/configure b/mythtv/configure
38 -index 4aa8727..f890df3 100755
39 ---- a/mythtv/configure
40 -+++ b/mythtv/configure
41 -@@ -6475,7 +6475,7 @@ if enabled mythlogserver; then
42 - echo "Configuring zeromq..."
43 - (cd external/zeromq ; \
44 - ./configure --quiet --without-documentation --prefix=${prefix} \
45 -- --includedir=${prefix}/include/mythtv/zeromq)
46 -+ --includedir=${prefix}/include/mythtv/zeromq --libdir=${libdir})
47 - echo "Configuring nzmqt..."
48 - (cd external/nzmqt/src ; \
49 - ${qmakeconf} -o Makefile)
50
51 diff --git a/media-tv/mythtv/files/mythbackend.conf b/media-tv/mythtv/files/mythbackend.conf
52 deleted file mode 100644
53 index 964e8d3955a..00000000000
54 --- a/media-tv/mythtv/files/mythbackend.conf
55 +++ /dev/null
56 @@ -1,11 +0,0 @@
57 -# Copyright 1999-2012 Gentoo Foundation
58 -# Distributed under the terms of the GNU General Public License v2
59 -
60 -# Accepts any valid combination of logging options to mythbackend
61 -# To get a valid list run: /usr/bin/mythbackend -v help
62 -#MYTHBACKEND_VERBOSE="general"
63 -
64 -
65 -# Allows you to pass specific startup options to mythbackend
66 -# e.g. --noupnp
67 -#MYTHBACKEND_OPTS=""
68
69 diff --git a/media-tv/mythtv/files/mythbackend.init b/media-tv/mythtv/files/mythbackend.init
70 deleted file mode 100644
71 index 343247df2fb..00000000000
72 --- a/media-tv/mythtv/files/mythbackend.init
73 +++ /dev/null
74 @@ -1,55 +0,0 @@
75 -#!/sbin/openrc-run
76 -# Copyright 1999-2012 Gentoo Foundation
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -description="MythTV backend recording daemon"
80 -extra_commands="resched upnprebuild"
81 -description_resched="Forces the recording scheduler to update"
82 -description_upnprebuild="Rebuilds the UPnP media cache"
83 -
84 -depend() {
85 - # mythbackend doesn't need to run on the same machine that
86 - # mysql runs on. so its use for that reason
87 - need net
88 - use mysql LCDd
89 -}
90 -
91 -start() {
92 - [ -z "${MYTHBACKEND_VERBOSE}" ] && \
93 - MYTHBACKEND_VERBOSE="general"
94 -
95 - #fixes for bug #101308
96 - unset DISPLAY
97 - unset SESSION_MANAGER
98 -
99 - # Work around any strange permissions that may be on these files.
100 - chown -R mythtv:video /var/log/mythtv/
101 - chown -R mythtv:video /home/mythtv/
102 -
103 - ebegin "Starting MythTV Backend"
104 - start-stop-daemon --start --quiet --exec /usr/bin/mythbackend \
105 - --pidfile /var/run/mythbackend.pid -- \
106 - --daemon --pidfile /var/run/mythbackend.pid --user mythtv \
107 - --verbose ${MYTHBACKEND_VERBOSE} \
108 - --logpath /var/log/mythtv/ \
109 - ${MYTHBACKEND_OPTS}
110 - eend $?
111 -}
112 -
113 -stop() {
114 - ebegin "Stopping MythTV Backend"
115 - start-stop-daemon --stop --quiet --pidfile=/var/run/mythbackend.pid
116 - eend $?
117 -}
118 -
119 -resched() {
120 - ebegin "Updating the recording scheduler"
121 - /usr/bin/mythbackend --resched
122 - eend $?
123 -}
124 -
125 -upnprebuild() {
126 - ebegin "Rebuilding UPnP media cache"
127 - /usr/bin/mythbackend --upnprebuild
128 - eend $?
129 -}
130
131 diff --git a/media-tv/mythtv/files/mythbackend.service b/media-tv/mythtv/files/mythbackend.service
132 deleted file mode 100644
133 index 496c7b295e1..00000000000
134 --- a/media-tv/mythtv/files/mythbackend.service
135 +++ /dev/null
136 @@ -1,66 +0,0 @@
137 -# Do not edit this file, it will be replaced on update
138 -# If you need to make modifications to this unit file first make a copy in # /etc/systemd/system
139 -
140 -# This file is part of the packaging of MythTV #
141 -# MythTV is free software; view http://www.mythtv.org for more information.
142 -#
143 -# It is sometimes necessary to wait for a capture device to finish (hot)plug
144 -# initialization before the backend starts. If this is necessary,
145 -# create a Wants and After entry for all the capture devices that
146 -# one wishes to wait to be created before the backend starts using the systemd
147 -# device name mangling names (/dev/some/thing turns
148 -# into dev-some-thing.device). These normally should be udev persistent
149 -# filename rules to avoid confusion.
150 -# See the MythTV wiki for udev persistent filename # discussions found at:
151 -# http://www.mythtv.org/wiki/Device_Filenames_and_udev
152 -#
153 -# In order to insure that systemd will create a device unit for the
154 -# capture device, one must insure that udev will have the tag "systemd"
155 -# (i.e. add TAG+="systemd" to the udev rule).
156 -#
157 -# The MythTV package ships with a default udev rule file located in:
158 -# /lib/udev/rules.d/99-mythbackend.rules
159 -
160 -[Unit]
161 -Description=MythTV backend service
162 -After=network.target mysqld.service
163 -# Uncomment the following line if you will be using the mythweb plugin on the
164 -# same system as mythbackend.
165 -#Wants=httpd.service
166 -
167 -[Service]
168 -Type=simple
169 -
170 -Environment=MYTHCONFDIR=/etc/mythtv
171 -# Default setting assumes a system wide install. Otherwise it should be set to
172 -# the folder containing the .mythtv subfolder containing the config.xml file
173 -# Such as
174 -#Environment=HOME=/usr/share/mythtv
175 -# or
176 -Environment=HOME=/~/.mythtv
177 -
178 -# systemd changes execution from the calling user (possibly root) to this user
179 -# if you have permissions problems or obscure errors try logging in as mythtv
180 -# See notes below
181 -User=mythtv
182 -
183 -# Uncomment one of the following...
184 -# Use sysloging rather than separate logging:
185 -#ExecStart=/usr/bin/mythbackend --syslog local7
186 -
187 -# If Type=forking you must specify the --daemon and --pidfile options:
188 -#ExecStart=/usr/bin/mythbackend --daemon --logpath /var/log/mythtv --loglevel crit --pidfile /run/mythtv/mythbackend.pid
189 -#PIDFILE=/run/mythtv/mythbackend.pid
190 -
191 -# Systemd sends stdout to syslog, and mythbackend has console logging enabled without --daemon.
192 -# Send stdout to /dev/null so console logging doesn't go to syslog
193 -#StandardOutput=null
194 -# Default setting for Type=simple.
195 -#ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv --loglevel crit
196 -ExecStart=/usr/bin/mythbackend --loglevel notice --nologserver
197 -
198 -# Whether systemd will continue over-watch and restart on any halt
199 -Restart=always
200 -
201 -[Install]
202 -WantedBy=multi-user.target
203
204 diff --git a/media-tv/mythtv/files/mythtv-0.27.6-libvpx-1.5.0.patch b/media-tv/mythtv/files/mythtv-0.27.6-libvpx-1.5.0.patch
205 deleted file mode 100644
206 index 578feaae1b0..00000000000
207 --- a/media-tv/mythtv/files/mythtv-0.27.6-libvpx-1.5.0.patch
208 +++ /dev/null
209 @@ -1,17 +0,0 @@
210 -Gentoo-bug: 600094
211 -
212 ---- a/mythtv/external/FFmpeg/libavcodec/libvpxenc.c
213 -+++ b/mythtv/external/FFmpeg/libavcodec/libvpxenc.c
214 -@@ -87,9 +87,9 @@
215 -
216 - /** String mappings for enum vp8e_enc_control_id */
217 - static const char *const ctlidstr[] = {
218 -- [VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY",
219 -- [VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE",
220 -- [VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE",
221 -+// [VP8E_UPD_ENTROPY] = "VP8E_UPD_ENTROPY",
222 -+// [VP8E_UPD_REFERENCE] = "VP8E_UPD_REFERENCE",
223 -+// [VP8E_USE_REFERENCE] = "VP8E_USE_REFERENCE",
224 - [VP8E_SET_ROI_MAP] = "VP8E_SET_ROI_MAP",
225 - [VP8E_SET_ACTIVEMAP] = "VP8E_SET_ACTIVEMAP",
226 - [VP8E_SET_SCALEMODE] = "VP8E_SET_SCALEMODE",
227
228 diff --git a/media-tv/mythtv/mythtv-0.27.6_p20160318-r1.ebuild b/media-tv/mythtv/mythtv-0.27.6_p20160318-r1.ebuild
229 deleted file mode 100644
230 index aeefe6f87aa..00000000000
231 --- a/media-tv/mythtv/mythtv-0.27.6_p20160318-r1.ebuild
232 +++ /dev/null
233 @@ -1,359 +0,0 @@
234 -# Copyright 1999-2017 Gentoo Foundation
235 -# Distributed under the terms of the GNU General Public License v2
236 -
237 -EAPI=5
238 -
239 -PYTHON_COMPAT=( python2_7 )
240 -
241 -# git diff --relative=mythtv v0.27.6.. > ~/mythtv-0.27.6/patches/mythtv.patch
242 -BACKPORTS="b6ae90c071a9a8eac9873fae988d5eb2434f3160"
243 -MY_P=${P%_p*}
244 -MY_PV=${PV%_p*}
245 -
246 -inherit flag-o-matic multilib eutils python-single-r1 user systemd vcs-snapshot
247 -
248 -MYTHTV_BRANCH="fixes/0.27"
249 -
250 -DESCRIPTION="Homebrew PVR project"
251 -HOMEPAGE="http://www.mythtv.org"
252 -SRC_URI="https://github.com/MythTV/mythtv/archive/${BACKPORTS}.tar.gz -> ${P}.tar.gz"
253 -
254 -SLOT="0/${PV}"
255 -LICENSE="GPL-2"
256 -KEYWORDS="amd64 x86"
257 -
258 -IUSE_INPUT_DEVICES="input_devices_joystick"
259 -IUSE="alsa altivec libass autostart bluray cec crystalhd debug dvb dvd \
260 -egl fftw +hls ieee1394 jack lcd lirc perl pulseaudio python +theora \
261 -vaapi vdpau +vorbis +wrapper +xml xmltv +xvid zeroconf ${IUSE_INPUT_DEVICES}"
262 -
263 -REQUIRED_USE="
264 - bluray? ( xml )
265 - python? ( ${PYTHON_REQUIRED_USE} )
266 - theora? ( vorbis )"
267 -
268 -COMMON="
269 - >=media-libs/freetype-2.0:=
270 - >=media-sound/lame-3.93.1
271 - sys-libs/zlib:=
272 - x11-libs/libX11:=
273 - x11-libs/libXext:=
274 - x11-libs/libXinerama:=
275 - x11-libs/libXv:=
276 - x11-libs/libXrandr:=
277 - x11-libs/libXxf86vm:=
278 - >=dev-qt/qtcore-4.7.2:4=
279 - >=dev-qt/qtdbus-4.7.2:4=
280 - >=dev-qt/qtgui-4.7.2:4=
281 - >=dev-qt/qtscript-4.7.2:4=
282 - >=dev-qt/qtsql-4.7.2:4=[mysql]
283 - >=dev-qt/qtopengl-4.7.2:4=[egl?]
284 - >=dev-qt/qtwebkit-4.7.2:4=
285 - x11-misc/wmctrl:=
286 - virtual/mysql
287 - virtual/opengl:=
288 - alsa? ( >=media-libs/alsa-lib-1.0.24:= )
289 - zeroconf? (
290 - dev-libs/openssl:0=
291 - net-dns/avahi[mdnsresponder-compat]
292 - )
293 - bluray? (
294 - dev-libs/libcdio:=
295 - media-libs/libbluray:=
296 - sys-fs/udisks:0
297 - )
298 - cec? ( dev-libs/libcec:= )
299 - dvb? (
300 - media-libs/libdvb:=
301 - virtual/linuxtv-dvb-headers:=
302 - )
303 - dvd? (
304 - dev-libs/libcdio:=
305 - sys-fs/udisks:0
306 - )
307 - egl? ( media-libs/mesa:=[egl] )
308 - fftw? ( sci-libs/fftw:3.0= )
309 - hls? (
310 - media-libs/faac:=
311 - <media-libs/libvpx-1.6.0:=
312 - >=media-libs/x264-0.0.20111220:=
313 - )
314 - ieee1394? (
315 - >=sys-libs/libraw1394-1.2.0:=
316 - >=sys-libs/libavc1394-0.5.3:=
317 - >=media-libs/libiec61883-1.0.0:=
318 - )
319 - jack? ( media-sound/jack-audio-connection-kit )
320 - lcd? ( app-misc/lcdproc )
321 - libass? ( >=media-libs/libass-0.9.11:= )
322 - lirc? ( app-misc/lirc )
323 - perl? (
324 - dev-perl/DBD-mysql
325 - dev-perl/Net-UPnP
326 - dev-perl/LWP-Protocol-https
327 - dev-perl/HTTP-Message
328 - dev-perl/IO-Socket-INET6
329 - >=dev-perl/libwww-perl-5
330 - )
331 - pulseaudio? ( media-sound/pulseaudio )
332 - python? (
333 - ${PYTHON_DEPS}
334 - dev-python/mysql-python
335 - dev-python/lxml
336 - dev-python/urlgrabber
337 - )
338 - theora? ( media-libs/libtheora:= media-libs/libogg:= )
339 - vaapi? ( x11-libs/libva:=[opengl] )
340 - vdpau? ( x11-libs/libvdpau:= )
341 - vorbis? ( >=media-libs/libvorbis-1.0:= media-libs/libogg:= )
342 - xml? ( >=dev-libs/libxml2-2.6.0:= )
343 - xvid? ( >=media-libs/xvid-1.1.0:= )
344 - !media-tv/mythtv-bindings
345 - !x11-themes/mythtv-themes
346 - media-libs/taglib:=
347 - dev-libs/glib:=
348 - "
349 -
350 -RDEPEND="${COMMON}
351 - media-fonts/corefonts
352 - media-fonts/dejavu
353 - media-fonts/liberation-fonts
354 - x11-apps/xinit
355 - autostart? (
356 - net-dialup/mingetty
357 - x11-wm/evilwm
358 - x11-apps/xset
359 - )
360 - dvd? ( media-libs/libdvdcss:= )
361 - xmltv? ( >=media-tv/xmltv-0.5.43 )
362 - "
363 -
364 -DEPEND="${COMMON}
365 - dev-lang/yasm
366 - x11-proto/xineramaproto
367 - x11-proto/xf86vidmodeproto
368 - "
369 -
370 -S="${WORKDIR}/${P}/mythtv"
371 -
372 -MYTHTV_GROUPS="video,audio,tty,uucp"
373 -
374 -pkg_setup() {
375 - python-single-r1_pkg_setup
376 - enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS}
377 - usermod -a -G ${MYTHTV_GROUPS} mythtv
378 -}
379 -
380 -src_prepare() {
381 - # Perl bits need to go into vender_perl and not site_perl
382 - sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \
383 - -i "${S}"/bindings/perl/Makefile
384 -
385 - # Fix up the version info since we are using the fixes/${PV} branch
386 - echo "SOURCE_VERSION=\"v${MY_PV}\"" > "${S}"/VERSION
387 - echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/VERSION
388 - echo "SOURCE_VERSION=\"${BACKPORTS}\"" > "${S}"/EXPORTED_VERSION
389 - echo "BRANCH=\"${MYTHTV_BRANCH}\"" >> "${S}"/EXPORTED_VERSION
390 -
391 - echo "setting.extra -= -ldconfig" >> "${S}"/programs/mythfrontend/mythfrontend.pro
392 -
393 - epatch "${FILESDIR}/libdir-27.patch"
394 - epatch "${FILESDIR}/${PN}-0.27.6-libvpx-1.5.0.patch"
395 -
396 - epatch_user
397 -}
398 -
399 -src_configure() {
400 - local myconf=
401 -
402 - # Setup paths
403 - myconf="${myconf} --prefix=${EPREFIX}/usr"
404 - myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)"
405 - myconf="${myconf} --libdir-name=$(get_libdir)"
406 - myconf="${myconf} --mandir=${EPREFIX}/usr/share/man"
407 -
408 - # Audio
409 - myconf="${myconf} $(use_enable alsa audio-alsa)"
410 - myconf="${myconf} $(use_enable jack audio-jack)"
411 - use pulseaudio || myconf="${myconf} --disable-audio-pulseoutput"
412 -
413 - use altivec || myconf="${myconf} --disable-altivec"
414 - myconf="${myconf} $(use_enable dvb)"
415 - myconf="${myconf} $(use_enable ieee1394 firewire)"
416 - myconf="${myconf} $(use_enable lirc)"
417 - myconf="${myconf} $(use_enable xvid libxvid)"
418 - myconf="${myconf} --dvb-path=/usr/include"
419 - myconf="${myconf} --enable-xrandr"
420 - myconf="${myconf} --enable-xv"
421 - myconf="${myconf} --enable-x11"
422 - myconf="${myconf} --enable-nonfree"
423 - myconf="${myconf} --enable-libmp3lame"
424 - use cec || myconf="${myconf} --disable-libcec"
425 - use zeroconf || myconf="${myconf} --disable-libdns-sd"
426 - myconf="${myconf} $(use_enable theora libtheora)"
427 - myconf="${myconf} $(use_enable vorbis libvorbis)"
428 -
429 - if use hls; then
430 - myconf="${myconf} --enable-libx264"
431 - myconf="${myconf} --enable-libvpx"
432 - myconf="${myconf} --enable-libfaac"
433 - fi
434 -
435 - myconf="${myconf} $(use_enable libass)"
436 -
437 - if use perl && use python; then
438 - myconf="${myconf} --with-bindings=perl,python"
439 - elif use perl; then
440 - myconf="${myconf} --without-bindings=python"
441 - myconf="${myconf} --with-bindings=perl"
442 - elif use python; then
443 - myconf="${myconf} --without-bindings=perl"
444 - myconf="${myconf} --with-bindings=python"
445 - else
446 - myconf="${myconf} --without-bindings=perl,python"
447 - fi
448 -
449 - use python && myconf="${myconf} --python=${EPYTHON}"
450 -
451 - if use debug; then
452 - myconf="${myconf} --compile-type=debug"
453 - else
454 - myconf="${myconf} --compile-type=release"
455 - #myconf="${myconf} --enable-debug" does nothing per sphery
456 - #myconf="${myconf} --disable-stripping" does nothing per sphery
457 - fi
458 -
459 - # Video
460 - myconf="${myconf} $(use_enable vdpau)"
461 - myconf="${myconf} $(use_enable vaapi)"
462 - myconf="${myconf} $(use_enable crystalhd)"
463 -
464 - # Input
465 - use input_devices_joystick || myconf="${myconf} --disable-joystick-menu"
466 -
467 - # Clean up DSO load times and other compiler bits
468 - myconf="${myconf} --enable-symbol-visibility"
469 - myconf="${myconf} --enable-pic"
470 -
471 - # CPU settings
472 - for i in $(get-flag march) $(get-flag mcpu) $(get-flag mtune) ; do
473 - [ "${i}" = "native" ] && i="host"
474 - myconf="${myconf} --cpu=${i}"
475 - break
476 - done
477 -
478 - if tc-is-cross-compiler ; then
479 - myconf="${myconf} --enable-cross-compile --arch=$(tc-arch-kernel)"
480 - myconf="${myconf} --cross-prefix=${CHOST}-"
481 - fi
482 -
483 - # Build boosters
484 - has distcc ${FEATURES} || myconf="${myconf} --disable-distcc"
485 - has ccache ${FEATURES} || myconf="${myconf} --disable-ccache"
486 -
487 - chmod +x ./external/FFmpeg/version.sh
488 -
489 - einfo "Running ./configure ${myconf}"
490 - ./configure \
491 - --cc="$(tc-getCC)" \
492 - --cxx="$(tc-getCXX)" \
493 - --ar="$(tc-getAR)" \
494 - --extra-cflags="${CFLAGS}" \
495 - --extra-cxxflags="${CXXFLAGS}" \
496 - --extra-ldflags="${LDFLAGS}" \
497 - ${myconf} || die "configure died"
498 -}
499 -
500 -src_install() {
501 - emake INSTALL_ROOT="${D}" install || die "install failed"
502 - dodoc AUTHORS UPGRADING README
503 -
504 - insinto /usr/share/mythtv/database
505 - doins database/*
506 -
507 - newinitd "${FILESDIR}"/mythbackend.init-r2 mythbackend
508 - newconfd "${FILESDIR}"/mythbackend.conf-r1 mythbackend
509 - systemd_dounit "${FILESDIR}"/mythbackend.service
510 -
511 - dodoc keys.txt
512 -
513 - keepdir /etc/mythtv
514 - chown -R mythtv "${ED}"/etc/mythtv
515 - keepdir /var/log/mythtv
516 - chown -R mythtv "${ED}"/var/log/mythtv
517 - dodir /var/log/mythtv/old
518 -
519 - insinto /etc/logrotate.d
520 - newins "${FILESDIR}"/mythtv.logrotate.d-r4 mythtv
521 -
522 - insinto /usr/share/mythtv/contrib
523 - # Ensure we don't install scripts needing the perl bindings (bug #516968)
524 - use perl || find contrib/ -name '*.pl' -exec rm -f {} \;
525 - # Ensure we don't install scripts needing the python bindings (bug #516968)
526 - use python || find contrib/ -name '*.py' -exec rm -f {} \;
527 - doins -r contrib/*
528 -
529 - # Install our mythfrontend wrapper which is similar to Mythbuntu's
530 - if use wrapper; then
531 - mv "${ED}/usr/bin/mythfrontend" "${ED}/usr/bin/mythfrontend.real"
532 - newbin "${FILESDIR}"/mythfrontend.wrapper mythfrontend
533 - newconfd "${FILESDIR}"/mythfrontend.conf mythfrontend
534 - fi
535 -
536 - if use autostart; then
537 - dodir /etc/env.d/
538 - echo 'CONFIG_PROTECT="/home/mythtv/"' > "${ED}"/etc/env.d/95mythtv
539 -
540 - insinto /home/mythtv
541 - newins "${FILESDIR}"/bash_profile .bash_profile
542 - newins "${FILESDIR}"/xinitrc-r1 .xinitrc
543 - fi
544 -
545 - # Make Python files executable
546 - find "${ED}/usr/share/mythtv" -type f -name '*.py' | while read file; do
547 - if [[ ! "${file##*/}" = "__init__.py" ]]; then
548 - chmod a+x "${file}"
549 - fi
550 - done
551 -
552 - # Ensure that Python scripts are executed by Python 2
553 - python_fix_shebang "${ED}/usr/share/mythtv"
554 -
555 - # Make shell & perl scripts executable
556 - find "${ED}" -type f -name '*.sh' -o -type f -name '*.pl' | \
557 - while read file; do
558 - chmod a+x "${file}"
559 - done
560 -}
561 -
562 -pkg_preinst() {
563 - export CONFIG_PROTECT="${CONFIG_PROTECT} ${EROOT}/home/mythtv/"
564 -}
565 -
566 -pkg_postinst() {
567 - elog "To have this machine operate as recording host for MythTV, "
568 - elog "mythbackend must be running. Run the following:"
569 - elog "rc-update add mythbackend default"
570 - elog
571 - elog "Your recordings folder must be owned 'mythtv'. e.g."
572 - elog "chown -R mythtv /var/lib/mythtv"
573 -
574 - elog "Want mythfrontend to start automatically?"
575 - elog "Set USE=autostart. Details can be found at:"
576 - elog "https://dev.gentoo.org/~cardoe/mythtv/autostart.html"
577 - elog
578 - elog "Note that the systemd unit now restarts by default and logs"
579 - elog "to journald via the console at the notice verbosity."
580 -}
581 -
582 -pkg_info() {
583 - if [[ -f "${EROOT}"/usr/bin/mythfrontend ]]; then
584 - "${EROOT}"/usr/bin/mythfrontend --version
585 - fi
586 -}
587 -
588 -pkg_config() {
589 - echo "Creating mythtv MySQL user and mythconverg database if it does not"
590 - echo "already exist. You will be prompted for your MySQL root password."
591 - "${EROOT}"/usr/bin/mysql -u root -p < "${EROOT}"/usr/share/mythtv/database/mc.sql
592 -}