diff options
author | Doug Goldstein <cardoe@gentoo.org> | 2006-12-18 03:05:33 +0000 |
---|---|---|
committer | Doug Goldstein <cardoe@gentoo.org> | 2006-12-18 03:05:33 +0000 |
commit | 2a00cd05c0ddccd1d82bae5ce2f30eecb6458343 (patch) | |
tree | 250ef8e235518fa8c4173e7391b1ed10a793063d /media-tv/mythtv | |
parent | Added ~sparc keyword wrt bug #152818. (diff) | |
download | historical-2a00cd05c0ddccd1d82bae5ce2f30eecb6458343.tar.gz historical-2a00cd05c0ddccd1d82bae5ce2f30eecb6458343.tar.bz2 historical-2a00cd05c0ddccd1d82bae5ce2f30eecb6458343.zip |
Upstream fixes for bug #157457. Fixed bug #154729.
Package-Manager: portage-2.1.2_rc3-r5
Diffstat (limited to 'media-tv/mythtv')
-rw-r--r-- | media-tv/mythtv/ChangeLog | 8 | ||||
-rw-r--r-- | media-tv/mythtv/Manifest | 42 | ||||
-rw-r--r-- | media-tv/mythtv/files/digest-mythtv-0.20_p12172 | 6 | ||||
-rw-r--r-- | media-tv/mythtv/files/runmythfe | 3 | ||||
-rw-r--r-- | media-tv/mythtv/files/xinitrc | 2 | ||||
-rw-r--r-- | media-tv/mythtv/mythtv-0.20_p12172.ebuild | 262 |
6 files changed, 308 insertions, 15 deletions
diff --git a/media-tv/mythtv/ChangeLog b/media-tv/mythtv/ChangeLog index da266c5ea1d9..417b8b9de74a 100644 --- a/media-tv/mythtv/ChangeLog +++ b/media-tv/mythtv/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-tv/mythtv # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.125 2006/11/23 16:43:19 vivo Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.126 2006/12/18 03:05:33 cardoe Exp $ + +*mythtv-0.20_p12172 (18 Dec 2006) + + 18 Dec 2006; Doug Goldstein <cardoe@gentoo.org> files/runmythfe, + files/xinitrc, +mythtv-0.20_p12172.ebuild: + Upstream fixes for bug #157457. Fixed bug #154729. 23 Nov 2006; Francesco Riosa <vivo@gentoo.org> mythtv-0.19_p10505.ebuild, mythtv-0.20_p11244.ebuild, mythtv-0.20_p11281.ebuild, diff --git a/media-tv/mythtv/Manifest b/media-tv/mythtv/Manifest index 493c6ede4378..e3fae648b250 100644 --- a/media-tv/mythtv/Manifest +++ b/media-tv/mythtv/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX bash_profile 63 RMD160 14c67a834d570f00217bfba95c45df07b6fd62a5 SHA1 93d96fc20c7d2bd03624807dd5f79b3ac8adede6 SHA256 aefee1616b069376e604d6d899360f9b017b6e090685746a8e10a05fed887341 MD5 e38fbe2dc486d30a7d027ea6d4f517d3 files/bash_profile 63 RMD160 14c67a834d570f00217bfba95c45df07b6fd62a5 files/bash_profile 63 @@ -26,14 +29,14 @@ AUX mythtv-0.20-vsync.patch 4732 RMD160 0319ca8d0a93ede8dd9778d04937b9e097c12896 MD5 f480cfbebae2ed67d919252e51ebfbfa files/mythtv-0.20-vsync.patch 4732 RMD160 0319ca8d0a93ede8dd9778d04937b9e097c12896 files/mythtv-0.20-vsync.patch 4732 SHA256 fadb9ab80ca27dca8f46036e87faf3d478880e23eedb7f17606ff0c3795f738b files/mythtv-0.20-vsync.patch 4732 -AUX runmythfe 104 RMD160 61d825641aae0b77ea0995f5b9b59855e33b9027 SHA1 f60d3176590e71cc31bad0008cdee6e7b39b8240 SHA256 7d3c316ec3af8f8cac23a1645c537f90feb09f7cb6d510dc2185d799080dd675 -MD5 0d20a49cff965a0f3ab35cb0600b65b4 files/runmythfe 104 -RMD160 61d825641aae0b77ea0995f5b9b59855e33b9027 files/runmythfe 104 -SHA256 7d3c316ec3af8f8cac23a1645c537f90feb09f7cb6d510dc2185d799080dd675 files/runmythfe 104 -AUX xinitrc 183 RMD160 2c793bdc79c51961651c76c519de716c8f0c1d8d SHA1 1046cbdba5987a573d695a80cf017e9ecf739fc1 SHA256 8f3a8ea7f3ab4c45e677aefafbcd46d005350843d65af37f948ed38641b68c12 -MD5 1f53af270b75f2becb88c2094eac3e35 files/xinitrc 183 -RMD160 2c793bdc79c51961651c76c519de716c8f0c1d8d files/xinitrc 183 -SHA256 8f3a8ea7f3ab4c45e677aefafbcd46d005350843d65af37f948ed38641b68c12 files/xinitrc 183 +AUX runmythfe 186 RMD160 e4b5bfeaecbf541e6cc45b6a9c0e5c048e3fccd0 SHA1 f5ec9dfd4781b28c0af8745c282ce242141590d8 SHA256 bebc665f37b21193be2f259cb8daf6863dfd4336e4e1424a7a989d6b679964fe +MD5 2c6bc5d7bde5ccfebd68a06f7f2eb534 files/runmythfe 186 +RMD160 e4b5bfeaecbf541e6cc45b6a9c0e5c048e3fccd0 files/runmythfe 186 +SHA256 bebc665f37b21193be2f259cb8daf6863dfd4336e4e1424a7a989d6b679964fe files/runmythfe 186 +AUX xinitrc 240 RMD160 9c0c1030aa65c8fd3f20501f45757515a9208a61 SHA1 11795aa8be5bd668d91acdd61aa80d5cc8af5cac SHA256 770990183ce8df60bf3bcbc3a334558155aedd0a80357556261fb938b4254e94 +MD5 9c9674d6a43b9c6ed96454ae4b62b4c6 files/xinitrc 240 +RMD160 9c0c1030aa65c8fd3f20501f45757515a9208a61 files/xinitrc 240 +SHA256 770990183ce8df60bf3bcbc3a334558155aedd0a80357556261fb938b4254e94 files/xinitrc 240 DIST mythtv-0.19-rev10505.patch.bz2 36022 RMD160 2440ca9f1ac53d8ad5b0025c22dce1c66e98a041 SHA1 963848bf58f7d4c08dd4094a0fd2944fde289f2f SHA256 4fa91ecff4ecb6c2ef09dc17f950f59a1f17dc90754eeff4a789923bcfb150e1 DIST mythtv-0.19.tar.bz2 10162049 RMD160 cd90bb3629df55f9e803d867cf59e378e9cace07 SHA1 465e71ad498f5109ba626df69d719f8c10683a8d SHA256 ca73641116d3bbc7d353a99348f9f8c9a156bcc756c90a6ed06f1498d9d9cd8f DIST mythtv-0.20.tar.bz2 12380677 RMD160 d9ef5221a1d821f2f210e7ebb0c32a88625fb522 SHA1 be6d2666a689340d40ca608f6a8a3af10f752a55 SHA256 777ff60afa89426f0e52e49b0e7a7661ddb45b59d2ebbfdcbe07fd179e526ff3 @@ -41,6 +44,7 @@ DIST mythtv-0.20_svn11244.patch.bz2 2357 RMD160 aa8d95353a4e49ef339ec03eee763418 DIST mythtv-0.20_svn11281.patch.bz2 3209 RMD160 9fb4bbaab2d9f286eb01b6f9c5f5bd02593adbc6 SHA1 e7d8b7adc56091ff48f72c3efcdde40f7c5883bf SHA256 d039d85166dd4a023370b0c2115bed9c093dc1b9f3e18fb37486ed3cff4b44b5 DIST mythtv-0.20_svn11444.patch.bz2 13532 RMD160 026000436cc842bc3d1c0e525926d403e3f2bcdf SHA1 90cdf24e31cb8159509a8fd0176fafb8e4dd2919 SHA256 794fcb3103603b38b9388450666f8942b32d6898b4ded5e095ed9fea41419dec DIST mythtv-0.20_svn11626.patch.bz2 17676 RMD160 f45126237079a88ebf6b94f4e9f3c5717b5ee5f1 SHA1 2ed7e6df75f1198238efa48548cbe2939b2fb0ee SHA256 9430fd112b16903c99d00ea29c165f854a83a2dd1c0af70fd4eb95d89b0b316c +DIST mythtv-0.20_svn12172.patch.bz2 18386 RMD160 4a18d65364e473ba80c4e1907b6d5802e96eff40 SHA1 4f07d13ceeabc59c5b8ff18686d16aa926a61683 SHA256 797014ffb62ce74f4176cb41113235c136665206127c589d6179695e580eed30 EBUILD mythtv-0.19_p10505.ebuild 7757 RMD160 aab3b55551c3fa3fab58aa5ae8dcabd5df083fd2 SHA1 de21c09b68a30fc69524e910391a7fcf66ba7e4c SHA256 e22ca5918787ff31c582c1714489680d9e2f9b438682a74cf7d629b7de04c35d MD5 3e9256211a63a2834ac024bb9d66d67a mythtv-0.19_p10505.ebuild 7757 RMD160 aab3b55551c3fa3fab58aa5ae8dcabd5df083fd2 mythtv-0.19_p10505.ebuild 7757 @@ -61,10 +65,14 @@ EBUILD mythtv-0.20_p11626.ebuild 7325 RMD160 eac41ae7ff6999b10241e67ae00298fc61b MD5 092e3ca3113802e2e66e263cb929af73 mythtv-0.20_p11626.ebuild 7325 RMD160 eac41ae7ff6999b10241e67ae00298fc61bdff12 mythtv-0.20_p11626.ebuild 7325 SHA256 419d27586e18617db254cbce08c60e9c6e04c85e0d1d4658d3b1f0fcc3711743 mythtv-0.20_p11626.ebuild 7325 -MISC ChangeLog 22619 RMD160 a4123d519d4b2b167236cd6c9b812968f6ca472a SHA1 1d3292466d26a77105c080e0906c9b05cf0f6dc7 SHA256 83fe992589268357348c709df3febd9f452e9cbff75944e4fce2a8351c2f0b3a -MD5 0e7ca7a426e2713e7016ee92d1b22deb ChangeLog 22619 -RMD160 a4123d519d4b2b167236cd6c9b812968f6ca472a ChangeLog 22619 -SHA256 83fe992589268357348c709df3febd9f452e9cbff75944e4fce2a8351c2f0b3a ChangeLog 22619 +EBUILD mythtv-0.20_p12172.ebuild 7451 RMD160 b4d9407a2e37c97caf3af41ea6efe1291480f2e4 SHA1 d45aeebe9ea3043ca4bc604b400ca493b96367de SHA256 f859426641a93b0a0e1dc123164763a37ad8b40ba455b31549a3c9c378e5bbab +MD5 d4552a778b5d0d796a14b4c9d9cc5db9 mythtv-0.20_p12172.ebuild 7451 +RMD160 b4d9407a2e37c97caf3af41ea6efe1291480f2e4 mythtv-0.20_p12172.ebuild 7451 +SHA256 f859426641a93b0a0e1dc123164763a37ad8b40ba455b31549a3c9c378e5bbab mythtv-0.20_p12172.ebuild 7451 +MISC ChangeLog 22822 RMD160 50f3256c749abba49f1986c309a4e8cf356a31c9 SHA1 65cb3d38839d3ad7fed239b48cb489265fc90f3f SHA256 b4ce510ec7995badaa797bcb03340a9b2df94a5667d019ab412fc32fd842ccf9 +MD5 027db3034d20a317fff4fd34adf166f7 ChangeLog 22822 +RMD160 50f3256c749abba49f1986c309a4e8cf356a31c9 ChangeLog 22822 +SHA256 b4ce510ec7995badaa797bcb03340a9b2df94a5667d019ab412fc32fd842ccf9 ChangeLog 22822 MISC metadata.xml 222 RMD160 effccac2541ac4d0954899784d7d64c60a9c020e SHA1 c6bd979f236f5e6fe9332eb6568bee402efc793f SHA256 8b2065fecfbbdd0caa3c5eb86b98c22766db07f555edbf3127e9454b468ecff6 MD5 f62db0df6ee8ee1d4fe7b9c3d74432a7 metadata.xml 222 RMD160 effccac2541ac4d0954899784d7d64c60a9c020e metadata.xml 222 @@ -84,3 +92,13 @@ SHA256 0427babbaf2dacd5287bb6dd0978452f76e47098d0ca693ee09316cbf72b57a6 files/di MD5 366c2166af57ccd8d4f08fb61225988b files/digest-mythtv-0.20_p11626 512 RMD160 f4fd505eb68dd46f4165fd3075404eb6e1d2ec19 files/digest-mythtv-0.20_p11626 512 SHA256 8c15d297364cbd651b2d1fe4f29acd85c757edad99d865f4523ccace7ec35d9d files/digest-mythtv-0.20_p11626 512 +MD5 1042e0c3c58018e8e9d7a9f7fbb7f523 files/digest-mythtv-0.20_p12172 512 +RMD160 ed82ea4ae3e7b4740c9665d5716dfddf37f7fcef files/digest-mythtv-0.20_p12172 512 +SHA256 40220c8c1b5fb4be6dbc3c2be8128675d1cb022b74cdf3543bb16e9a47a93f1b files/digest-mythtv-0.20_p12172 512 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DBQFFhgW0oeSe8B0zEfwRAjK9AJ45kmO7utQVpDKA6d5LRYyqodg2KQCeMmSF +L5ezLD0bivnpX0SpdKKHUrU= +=3EgG +-----END PGP SIGNATURE----- diff --git a/media-tv/mythtv/files/digest-mythtv-0.20_p12172 b/media-tv/mythtv/files/digest-mythtv-0.20_p12172 new file mode 100644 index 000000000000..95068576c148 --- /dev/null +++ b/media-tv/mythtv/files/digest-mythtv-0.20_p12172 @@ -0,0 +1,6 @@ +MD5 52bec1e0fadf7d24d6dcac3f773ddf74 mythtv-0.20.tar.bz2 12380677 +RMD160 d9ef5221a1d821f2f210e7ebb0c32a88625fb522 mythtv-0.20.tar.bz2 12380677 +SHA256 777ff60afa89426f0e52e49b0e7a7661ddb45b59d2ebbfdcbe07fd179e526ff3 mythtv-0.20.tar.bz2 12380677 +MD5 11e24151fbf6b5c14a28c2320ccd0686 mythtv-0.20_svn12172.patch.bz2 18386 +RMD160 4a18d65364e473ba80c4e1907b6d5802e96eff40 mythtv-0.20_svn12172.patch.bz2 18386 +SHA256 797014ffb62ce74f4176cb41113235c136665206127c589d6179695e580eed30 mythtv-0.20_svn12172.patch.bz2 18386 diff --git a/media-tv/mythtv/files/runmythfe b/media-tv/mythtv/files/runmythfe index 0bf8a7f83b4f..073fad9ce3d5 100644 --- a/media-tv/mythtv/files/runmythfe +++ b/media-tv/mythtv/files/runmythfe @@ -1,5 +1,6 @@ #!/bin/sh if ! pgrep mythfrontend >& /dev/null ; then - DISPLAY=":0.0" mythfrontend 2&> /dev/null & + echo >> /var/log/mythtv/mythfrontend.log + DISPLAY=":0.0" mythfrontend -l /var/log/mythtv/mythfrontend.log -v important,general fi diff --git a/media-tv/mythtv/files/xinitrc b/media-tv/mythtv/files/xinitrc index c9b2bc104d34..78eb4b2d97fe 100644 --- a/media-tv/mythtv/files/xinitrc +++ b/media-tv/mythtv/files/xinitrc @@ -4,4 +4,4 @@ /usr/bin/xset s off /usr/bin/xset -dpms /usr/bin/evilwm & -exec /usr/bin/mythfrontend +exec /usr/bin/mythfrontend -l /var/log/mythtv/mythfrontend.log -v important,general diff --git a/media-tv/mythtv/mythtv-0.20_p12172.ebuild b/media-tv/mythtv/mythtv-0.20_p12172.ebuild new file mode 100644 index 000000000000..3473c99babfd --- /dev/null +++ b/media-tv/mythtv/mythtv-0.20_p12172.ebuild @@ -0,0 +1,262 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.20_p12172.ebuild,v 1.1 2006/12/18 03:05:33 cardoe Exp $ + +inherit mythtv flag-o-matic multilib eutils debug qt3 + +DESCRIPTION="Homebrew PVR project" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +IUSE_VIDEO_CARDS="video_cards_i810 video_cards_nvidia video_cards_via" + +IUSE="alsa altivec backendonly crciprec debug dbox2 dts dvb dvd freebox frontendonly hdhomerun ieee1394 ivtv jack joystick lcd lirc mmx vorbis opengl perl xvmc ${IUSE_VIDEO_CARDS}" + +RDEPEND=">=media-libs/freetype-2.0 + >=media-sound/lame-3.93.1 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXinerama + x11-libs/libXv + x11-libs/libXrandr + x11-libs/libXxf86vm + xvmc? ( + x11-libs/libXvMC + video_cards_nvidia? ( || ( x11-drivers/nvidia-drivers + x11-drivers/nvidia-legacy-drivers ) ) + video_cards_via? ( x11-drivers/xf86-video-via ) + video_cards_i810? ( x11-drivers/xf86-video-i810 ) + ) + $(qt_min_version 3.3) + virtual/mysql + alsa? ( >=media-libs/alsa-lib-0.9 ) + dts? ( media-libs/libdts ) + dvd? ( media-libs/libdvdnav + media-libs/libdts ) + dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) + ivtv? ( media-tv/ivtv ) + jack? ( media-sound/jack-audio-connection-kit ) + lcd? ( app-misc/lcdproc ) + lirc? ( app-misc/lirc ) + vorbis? ( media-libs/libvorbis ) + opengl? ( virtual/opengl ) + ieee1394? ( >=sys-libs/libraw1394-1.2.0 + >=sys-libs/libavc1394-0.5.0 + >=media-libs/libiec61883-1.0.0 ) + || ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.34 )" + +DEPEND="${RDEPEND} + x11-apps/xinit" + +PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" + +S="${WORKDIR}/${PN}-${MY_PV}" + +MYTHTV_GROUPS="video,audio,tty" + +pkg_setup() { + + local rip=0 + if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then + echo + eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled." + eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set." + echo + rip=1 + fi + + if use xvmc && use video_cards_nvidia; then + echo + ewarn "You enabled the 'xvmc' USE flag, you must have a GeForce 4 or" + ewarn "greater to use this. Otherwise, you'll have crashes with MythTV" + echo + fi + + if use xvmc && ! ( use video_cards_i810 || use video_cards_nvidia || use video_cards_via ); then + echo + eerror "You enabled the XvMC USE flag but did not configure VIDEO_CARDS with either" + eerror "an nVidia, Intel i810, or VIA video card." + echo + rip=1 + fi + + [[ $rip == 1 ]] && die "Please fix the above issues, before continuing." + + echo + einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" + einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped" + einfo "Only additional CFLAG issues that will be addressed are for binary" + einfo "package building." + echo +} + +src_unpack() { + unpack ${A} + cd "${S}" + + #Fixes of the bugs found in the release + mythtv-fixes_patch + + # As needed fix since they don't know how to write qmake let alone a real + # make system + epatch "${FILESDIR}"/${PN}-${MY_PV}-as-needed.patch +} + +src_compile() { + local myconf="--prefix=/usr + --mandir=/usr/share/man + --libdir-name=$(get_libdir)" + use alsa || myconf="${myconf} --disable-audio-alsa" + use jack || myconf="${myconf} --disable-audio-jack" + use dts || myconf="${myconf} --disable-dts" + use freebox || myconf="${myconf} --disable-freebox" + use dbox2 || myconf="${myconf} --disable-dbox2" + use hdhomerun || myconf="${myconf} --disable-hdhomerun" + use crciprec || myconf="${myconf} --disable-crciprec" + use altivec || myconf="${myconf} --disable-altivec" + use xvmc && myconf="${myconf} --enable-xvmc" + use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc-pro" + use perl && myconf="${myconf} --with-bindings=perl" + myconf="${myconf} + --disable-audio-arts + $(use_enable lirc) + $(use_enable joystick joystick-menu) + $(use_enable dvb) + --dvb-path=/usr/include + $(use_enable opengl opengl-vsync) + $(use_enable ieee1394 firewire) + --enable-xrandr + --enable-xv + --disable-directfb + --enable-x11 + --enable-proc-opt" + + if use mmx || use amd64; then + myconf="${myconf} --enable-mmx" + else + myconf="${myconf} --disable-mmx" + fi + + if use debug; then + myconf="${myconf} --compile-type=debug" + else + myconf="${myconf} --compile-type=release" + fi + + ## CFLAG cleaning so it compiles + MARCH=$(get-flag "march") + MTUNE=$(get-flag "mtune") + MCPU=$(get-flag "mcpu") + strip-flags + filter-flags "-march=*" "-mtune=*" "-mcpu=*" + filter-flags "-O" "-O?" + + if [[ -n "${MARCH}" ]]; then + myconf="${myconf} --arch=${MARCH}" + fi + if [[ -n "${MTUNE}" ]]; then + myconf="${myconf} --tune=${MTUNE}" + fi + if [[ -n "${MCPU}" ]]; then + myconf="${myconf} --cpu=${MCPU}" + fi + +# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" + hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" + hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" + + if use frontendonly; then + ##Backend Removal + ewarn + ewarn "You are using the experimental feature for only installing the frontend." + ewarn "You will not get Gentoo support nor support from MythTV upstream for this." + ewarn "If this breaks, you own both pieces." + ewarn + myconf="${myconf} --disable-backend" + fi + + if use backendonly; then + ##Frontend Removal + ewarn + ewarn "You are using the experimental feature for only installing the backend." + ewarn "You will not get Gentoo support nor support from MythTV upstream for this." + ewarn "If this breaks, you own both pieces." + ewarn + myconf="${myconf} --disable-frontend" + fi + + # let MythTV come up with our CFLAGS. Upstream will support this + CFLAGS="" + CXXFLAGS="" + einfo "Running ./configure ${myconf}" + ./configure ${myconf} || die "configure died" + + ${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake -o "Makefile" mythtv.pro || die "qmake failed" + emake || die "emake failed" + +} + +src_install() { + + einstall INSTALL_ROOT="${D}" || die "install failed" + for doc in AUTHORS FAQ UPGRADING ChangeLog README; do + test -e "${doc}" && dodoc ${doc} + done + + if ! use frontendonly; then + insinto /usr/share/mythtv/database + doins database/* + + exeinto /usr/share/mythtv + doexe "${FILESDIR}/mythfilldatabase.cron" + + newinitd ${FILESDIR}/mythbackend-0.18.2.rc mythbackend + newconfd ${FILESDIR}/mythbackend-0.18.2.conf mythbackend + fi + + + dodoc keys.txt docs/*.{txt,pdf} + dohtml docs/*.html + + keepdir /etc/mythtv + chown -R mythtv "${D}"/etc/mythtv + keepdir /var/log/mythtv + chown -R mythtv "${D}"/var/log/mythtv + + insinto /usr/share/mythtv/contrib + doins contrib/* + + insinto /usr/share/mythtv/configfiles + doins configfiles/* + + if ! use backendonly; then + dobin "${FILESDIR}"/runmythfe + + dodir /etc/env.d/ + echo 'CONFIG_PROTECT="/home/mythtv/"' > ${D}/etc/env.d/95mythtv + + insinto /home/mythtv + newins "${FILESDIR}"/bash_profile .bash_profile + newins "${FILESDIR}"/xinitrc .xinitrc + fi +} + +pkg_preinst() { + enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user" + usermod -a -G ${MYTHTV_GROUPS} mythtv +} + +pkg_postinst() { + if ! use backendonly; then + echo + elog "Want mythfrontend to start automatically?" + elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" + fi + echo + elog "To always have MythBackend running and available run the following:" + elog "rc-update add mythbackend default" + echo + ewarn "Your recordings folder must be owned by the user 'mythtv' now" + ewarn "chown -R mythtv /path/to/store" +} + |