1 |
cardoe 08/04/01 03:56:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mythtv-0.21_p16867.ebuild |
5 |
Removed: mythtv-0.21_p16658.ebuild mythtv-0.21_p16812.ebuild |
6 |
mythtv-0.21_p16483.ebuild |
7 |
Log: |
8 |
fix CVE-2007-6036. Fix internal DVD player issues. Fix ffmpeg header location issue. Fix EIT encoding. |
9 |
(Portage version: 2.1.4.4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.229 media-tv/mythtv/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.229&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?rev=1.229&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/ChangeLog?r1=1.228&r2=1.229 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v |
21 |
retrieving revision 1.228 |
22 |
retrieving revision 1.229 |
23 |
diff -u -r1.228 -r1.229 |
24 |
--- ChangeLog 28 Mar 2008 16:04:01 -0000 1.228 |
25 |
+++ ChangeLog 1 Apr 2008 03:56:03 -0000 1.229 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for media-tv/mythtv |
28 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.228 2008/03/28 16:04:01 cardoe Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/ChangeLog,v 1.229 2008/04/01 03:56:03 cardoe Exp $ |
31 |
+ |
32 |
+*mythtv-0.21_p16867 (01 Apr 2008) |
33 |
+ |
34 |
+ 01 Apr 2008; Doug Goldstein <cardoe@g.o> |
35 |
+ -mythtv-0.21_p16483.ebuild, -mythtv-0.21_p16658.ebuild, |
36 |
+ -mythtv-0.21_p16812.ebuild, +mythtv-0.21_p16867.ebuild: |
37 |
+ fix CVE-2007-6036. Fix internal DVD player issues. Fix ffmpeg header |
38 |
+ location issue. Fix EIT encoding. |
39 |
|
40 |
*mythtv-0.21_p16812 (28 Mar 2008) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 media-tv/mythtv/mythtv-0.21_p16867.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p16867.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/mythtv/mythtv-0.21_p16867.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: mythtv-0.21_p16867.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2008 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/media-tv/mythtv/mythtv-0.21_p16867.ebuild,v 1.1 2008/04/01 03:56:03 cardoe Exp $ |
55 |
|
56 |
EAPI=1 |
57 |
inherit flag-o-matic multilib eutils qt3 mythtv toolchain-funcs python |
58 |
|
59 |
DESCRIPTION="Homebrew PVR project" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~ppc ~x86" |
62 |
|
63 |
IUSE_VIDEO_CARDS="video_cards_nvidia video_cards_via" |
64 |
IUSE="aac alsa altivec autostart dbox2 debug directv dvb dvd hdhomerun ieee1394 iptv \ |
65 |
ivtv jack joystick lcd lirc mmx opengl opengl-video opengl-xvmc perl python \ |
66 |
vorbis xvmc ${IUSE_VIDEO_CARDS}" |
67 |
|
68 |
RDEPEND=">=media-libs/freetype-2.0 |
69 |
>=media-sound/lame-3.93.1 |
70 |
x11-libs/libX11 |
71 |
x11-libs/libXext |
72 |
x11-libs/libXinerama |
73 |
x11-libs/libXv |
74 |
x11-libs/libXrandr |
75 |
x11-libs/libXxf86vm |
76 |
>=x11-libs/qt-3.3:3 |
77 |
virtual/mysql |
78 |
virtual/opengl |
79 |
virtual/glu |
80 |
|| ( >=net-misc/wget-1.9.1 >=media-tv/xmltv-0.5.43 ) |
81 |
aac? ( media-libs/faad2 ) |
82 |
alsa? ( >=media-libs/alsa-lib-0.9 ) |
83 |
autostart? ( net-dialup/mingetty |
84 |
x11-wm/evilwm |
85 |
x11-apps/xset ) |
86 |
directv? ( virtual/perl-Time-HiRes ) |
87 |
dvb? ( media-libs/libdvb media-tv/linuxtv-dvb-headers ) |
88 |
dvd? ( media-libs/libdvdnav ) |
89 |
ieee1394? ( >=sys-libs/libraw1394-1.2.0 |
90 |
>=sys-libs/libavc1394-0.5.0 |
91 |
>=media-libs/libiec61883-1.0.0 ) |
92 |
ivtv? ( media-tv/ivtv ) |
93 |
jack? ( media-sound/jack-audio-connection-kit ) |
94 |
lcd? ( app-misc/lcdproc ) |
95 |
lirc? ( app-misc/lirc ) |
96 |
perl? ( dev-perl/DBD-mysql ) |
97 |
python? ( dev-python/mysql-python ) |
98 |
opengl-xvmc? ( >=x11-drivers/nvidia-drivers-100 ) |
99 |
xvmc? ( x11-libs/libXvMC |
100 |
app-admin/eselect-xvmc )" |
101 |
|
102 |
DEPEND="${RDEPEND} |
103 |
x11-proto/xineramaproto |
104 |
x11-proto/xf86vidmodeproto |
105 |
x11-apps/xinit" |
106 |
|
107 |
PDEPEND="=x11-themes/mythtv-themes-${MY_PV}*" |
108 |
|
109 |
S="${WORKDIR}/${PN}-${MY_PV}" |
110 |
|
111 |
MYTHTV_GROUPS="video,audio,tty,uucp" |
112 |
|
113 |
pkg_setup() { |
114 |
|
115 |
if ! built_with_use -a =x11-libs/qt-3* mysql opengl ; then |
116 |
echo |
117 |
eerror "MythTV requires Qt to be built with mysql and opengl use flags enabled." |
118 |
eerror "Please re-emerge =x11-libs/qt-3*, after having the use flags set." |
119 |
echo |
120 |
die "Please fix the above issues, before continuing." |
121 |
fi |
122 |
|
123 |
echo |
124 |
einfo "This ebuild now uses a heavily stripped down version of your CFLAGS" |
125 |
einfo "Don't complain because your -momfg-fast-speed CFLAG is being stripped" |
126 |
einfo "Only additional CFLAG issues that will be addressed are for binary" |
127 |
einfo "package building." |
128 |
echo |
129 |
|
130 |
if use xvmc && use opengl-xvmc ; then |
131 |
einfo "Enabling USE=opengl-xvmc results in an experimental OpenGL" |
132 |
einfo "& XvMC renderer that only works on NVIDIA GeForce 4,5,6, & 7" |
133 |
einfo "series of cards. It is typically slower then stock XVideo" |
134 |
einfo "support that is the default in MythTV." |
135 |
echo |
136 |
fi |
137 |
|
138 |
if use opengl-video ; then |
139 |
einfo "Enabling USE=opengl-video results in an experimental OpenGL" |
140 |
einfo "renderer that is typically slower then the default XVideo" |
141 |
einfo "renderer. Enable at your own risk." |
142 |
echo |
143 |
fi |
144 |
|
145 |
enewuser mythtv -1 /bin/bash /home/mythtv ${MYTHTV_GROUPS} || die "Problem adding mythtv user" |
146 |
usermod -a -G ${MYTHTV_GROUPS} mythtv |
147 |
} |
148 |
|
149 |
src_unpack() { |
150 |
subversion_src_unpack |
151 |
|
152 |
# upstream wants the revision number in their version.cpp |
153 |
# since the subversion.eclass strips out the .svn directory |
154 |
# svnversion in MythTV's build doesn't work |
155 |
sed -e "s:\`(svnversion \$\${SVNTREEDIR} 2>\/dev\/null) || echo Unknown\`:${MYTHTV_REV}:" \ |
156 |
-i "${S}"/version.pro || die "svnversion sed failed" |
157 |
|
158 |
# Perl bits need to go into vender_perl and not site_perl |
159 |
sed -e "s:pure_install:pure_install INSTALLDIRS=vendor:" \ |
160 |
-i "${S}"/bindings/perl/perl.pro |
161 |
} |
162 |
|
163 |
src_compile() { |
164 |
local myconf="--prefix=/usr |
165 |
--mandir=/usr/share/man |
166 |
--libdir-name=$(get_libdir)" |
167 |
use aac && myconf="${myconf} --enable-libfaad" |
168 |
use alsa || myconf="${myconf} --disable-audio-alsa" |
169 |
use altivec || myconf="${myconf} --disable-altivec" |
170 |
use dbox2 || myconf="${myconf} --disable-dbox2" |
171 |
use hdhomerun || myconf="${myconf} --disable-hdhomerun" |
172 |
use ivtv || myconf="${myconf} --disable-ivtv" |
173 |
use jack || myconf="${myconf} --disable-audio-jack" |
174 |
use opengl-video && myconf="${myconf} --enable-opengl-video" |
175 |
use xvmc && ! use video_cards_via ! use opengl-xvmc && myconf="${myconf} --enable-xvmc --xvmc-lib=XvMCW" |
176 |
use xvmc && use video_cards_via && myconf="${myconf} --enable-xvmc --enable-xvmc-pro" |
177 |
use xvmc && use video_cards_nvidia && use opengl-xvmc && myconf="${myconf} --enable-xvmc --enable-xvmc-opengl" |
178 |
myconf="${myconf} |
179 |
$(use_enable dvb) |
180 |
$(use_enable ieee1394 firewire) |
181 |
$(use_enable iptv) |
182 |
$(use_enable joystick joystick-menu) |
183 |
$(use_enable lirc) |
184 |
--disable-audio-arts |
185 |
--disable-directfb |
186 |
--dvb-path=/usr/include |
187 |
--enable-opengl-vsync |
188 |
--enable-xrandr |
189 |
--enable-xv |
190 |
--enable-x11 |
191 |
--enable-gpl" |
192 |
|
193 |
if use mmx || use amd64; then |
194 |
myconf="${myconf} --enable-mmx" |
195 |
else |
196 |
myconf="${myconf} --disable-mmx" |
197 |
fi |
198 |
|
199 |
if use perl && use python; then |
200 |
myconf="${myconf} --with-bindings=perl,python" |
201 |
elif use perl; then |
202 |
myconf="${myconf} --with-bindings=perl" |
203 |
elif use python; then |
204 |
myconf="${myconf} --with-bindings=python" |
205 |
else |
206 |
myconf="${myconf} --without-bindings=perl,python" |
207 |
fi |
208 |
|
209 |
if use debug; then |
210 |
myconf="${myconf} --compile-type=debug" |
211 |
else |
212 |
myconf="${myconf} --compile-type=profile" |
213 |
fi |
214 |
|
215 |
## CFLAG cleaning so it compiles |
216 |
MARCH=$(get-flag "march") |
217 |
MTUNE=$(get-flag "mtune") |
218 |
strip-flags |
219 |
filter-flags "-march=*" "-mtune=*" "-mcpu=*" |
220 |
filter-flags "-O" "-O?" |
221 |
|
222 |
if [[ -n "${MARCH}" ]]; then |
223 |
myconf="${myconf} --cpu=${MARCH}" |
224 |
fi |
225 |
if [[ -n "${MTUNE}" ]]; then |
226 |
myconf="${myconf} --tune=${MTUNE}" |
227 |
fi |
228 |
|
229 |
# myconf="${myconf} --extra-cxxflags=\"${CXXFLAGS}\" --extra-cflags=\"${CFLAGS}\"" |
230 |
hasq distcc ${FEATURES} || myconf="${myconf} --disable-distcc" |
231 |
hasq ccache ${FEATURES} || myconf="${myconf} --disable-ccache" |
232 |
|
233 |
# let MythTV come up with our CFLAGS. Upstream will support this |
234 |
CFLAGS="" |
235 |
CXXFLAGS="" |
236 |
einfo "Running ./configure ${myconf}" |
237 |
./configure ${myconf} || die "configure died" |
238 |
|
239 |
eqmake3 mythtv.pro -o "Makefile" || die "eqmake3 failed" |
240 |
emake || die "emake failed" |
241 |
|
242 |
# firewire support should build the tester |
243 |
if use ieee1394; then |
244 |
cd contrib |
245 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../firewire_tester firewire_tester.c \ |
246 |
${LDFLAGS} -liec61883 -lraw1394 || \ |
247 |
die "failed to compile firewire_tester" |
248 |
|
249 |
cd channel_changers |
250 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -std=gnu99 -o ../../6200ch 6200ch.c \ |
251 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
252 |
die "failed to compile 6200ch" |
253 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../sa3250ch sa3250ch.c \ |
254 |
${LDFLAGS} -lrom1394 -lavc1394 -lraw1394 || \ |
255 |
die "failed to compile sa3250ch" |
256 |
fi |
257 |
|
258 |
cd "${S}"/contrib/channel_changers |
259 |
$(tc-getCC) ${CFLAGS} ${CPPFLAGS} -o ../../red_eye red_eye.c ${LDFLAGS} || \ |
260 |
die "failed to compile red_eye" |
261 |
} |
262 |
|
263 |
src_install() { |
264 |
|
265 |
einstall INSTALL_ROOT="${D}" || die "install failed" |
266 |
dodoc AUTHORS FAQ UPGRADING README |
267 |
|
268 |
insinto /usr/share/mythtv/database |
269 |
doins database/* |
270 |
|
271 |
exeinto /usr/share/mythtv |
272 |
doexe "${FILESDIR}/mythfilldatabase.cron" |
273 |
|
274 |
newinitd "${FILESDIR}"/mythbackend-0.18.2.rc mythbackend |
275 |
newconfd "${FILESDIR}"/mythbackend-0.18.2.conf mythbackend |
276 |
|
277 |
dodoc keys.txt docs/*.{txt,pdf} |
278 |
dohtml docs/*.html |
279 |
|
280 |
keepdir /etc/mythtv |
281 |
chown -R mythtv "${D}"/etc/mythtv |
282 |
keepdir /var/log/mythtv |
283 |
chown -R mythtv "${D}"/var/log/mythtv |
284 |
|
285 |
insinto /etc/logrotate.d |
286 |
newins "${FILESDIR}"/mythtv.logrotate.d mythtv |
287 |
|
288 |
insinto /usr/share/mythtv/contrib |
289 |
doins -r contrib/* |
290 |
|
291 |
dobin "${FILESDIR}"/runmythfe |
292 |
|
293 |
if use autostart; then |
294 |
dodir /etc/env.d/ |
295 |
echo 'CONFIG_PROTECT="/home/mythtv/"' > "${D}"/etc/env.d/95mythtv |
296 |
|
297 |
insinto /home/mythtv |
298 |
newins "${FILESDIR}"/bash_profile .bash_profile |
299 |
newins "${FILESDIR}"/xinitrc .xinitrc |
300 |
fi |
301 |
|
302 |
if use ieee1394; then |
303 |
dobin firewire_tester || die "failed to install firewire_tester" |
304 |
dodoc contrib/firewire_tester-README |
305 |
|
306 |
dobin 6200ch || die "failed to install 6200ch" |
307 |
dodoc contrib/channel_changers/6200ch-README |
308 |
|
309 |
dobin sa3250ch || die "failed to install sa3250ch" |
310 |
dodoc contrib/channel_changers/sa3250ch-README |
311 |
fi |
312 |
|
313 |
dobin red_eye || die "failed to install red_eye" |
314 |
dodoc contrib/channel_changers/red_eye-README |
315 |
|
316 |
if use directv; then |
317 |
dobin contrib/channel_changers/d10control.pl || die "failed to install d10control" |
318 |
dodoc contrib/channel_changers/d10control-README |
319 |
fi |
320 |
} |
321 |
|
322 |
pkg_preinst() { |
323 |
export CONFIG_PROTECT="${CONFIG_PROTECT} ${ROOT}/home/mythtv/" |
324 |
} |
325 |
|
326 |
pkg_postinst() { |
327 |
python_version |
328 |
python_mod_optimize "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/MythTV" |
329 |
|
330 |
echo |
331 |
elog "Want mythfrontend to start automatically?" |
332 |
elog "Set USE=autostart. Details can be found at:" |
333 |
elog "http://dev.gentoo.org/~cardoe/mythtv/autostart.html" |
334 |
|
335 |
echo |
336 |
elog "To always have MythBackend running and available run the following:" |
337 |
elog "rc-update add mythbackend default" |
338 |
echo |
339 |
ewarn "Your recordings folder must be owned by the user 'mythtv' now" |
340 |
ewarn "chown -R mythtv /path/to/store" |
341 |
|
342 |
if use xvmc; then |
343 |
echo |
344 |
elog "Please set the proper XvMC provider with eselect xvmc" |
345 |
fi |
346 |
|
347 |
if use autostart; then |
348 |
echo |
349 |
elog "Please add the following to your /etc/inittab file at the end of" |
350 |
elog "the TERMINALS section" |
351 |
elog "c8:2345:respawn:/sbin/mingetty --autologin mythtv tty8" |
352 |
fi |
353 |
|
354 |
} |
355 |
|
356 |
pkg_postrm() |
357 |
{ |
358 |
python_version |
359 |
python_mod_cleanup "/usr/$(get_libdir)/python${PYVER}/site-packages/MythTV" |
360 |
} |
361 |
|
362 |
pkg_info() { |
363 |
"${ROOT}"/usr/bin/mythfrontend --version |
364 |
} |
365 |
|
366 |
pkg_config() { |
367 |
echo "Creating mythtv MySQL user and mythconverg database if it does not" |
368 |
echo "already exist. You will be prompted for your MySQL root password." |
369 |
"${ROOT}"/usr/bin/mysql -u root -p < "${ROOT}"/usr/share/mythtv/database/mc.sql |
370 |
} |
371 |
|
372 |
|
373 |
|
374 |
-- |
375 |
gentoo-commits@l.g.o mailing list |