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