1 |
ssuominen 09/05/12 06:19:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cmus-2.2.0-r1.ebuild |
5 |
Log: |
6 |
CVE-2008-5375, symlink attack wrt #250474. |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.22 media-sound/cmus/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cmus/ChangeLog?rev=1.22&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cmus/ChangeLog?rev=1.22&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cmus/ChangeLog?r1=1.21&r2=1.22 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/cmus/ChangeLog,v |
19 |
retrieving revision 1.21 |
20 |
retrieving revision 1.22 |
21 |
diff -u -r1.21 -r1.22 |
22 |
--- ChangeLog 25 Oct 2008 22:18:35 -0000 1.21 |
23 |
+++ ChangeLog 12 May 2009 06:19:02 -0000 1.22 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-sound/cmus |
26 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/cmus/ChangeLog,v 1.21 2008/10/25 22:18:35 pvdabeel Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/cmus/ChangeLog,v 1.22 2009/05/12 06:19:02 ssuominen Exp $ |
30 |
+ |
31 |
+*cmus-2.2.0-r1 (12 May 2009) |
32 |
+ |
33 |
+ 12 May 2009; Samuli Suominen <ssuominen@g.o> +cmus-2.2.0-r1.ebuild, |
34 |
+ +files/cmus-2.2.0-symlink_attack.patch: |
35 |
+ CVE-2008-5375, symlink attack wrt #250474. |
36 |
|
37 |
25 Oct 2008; Pieter Van den Abeele <pvdabeel@g.o> cmus-2.2.0.ebuild: |
38 |
Keyworded ~ppc. Closes bug #235775 |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-sound/cmus/cmus-2.2.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cmus/cmus-2.2.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cmus/cmus-2.2.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: cmus-2.2.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/cmus/cmus-2.2.0-r1.ebuild,v 1.1 2009/05/12 06:19:02 ssuominen Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit eutils multilib |
55 |
|
56 |
DESCRIPTION="A ncurses based music player with plugin support for many formats" |
57 |
HOMEPAGE="http://cmus.sourceforge.net/" |
58 |
SRC_URI="http://mirror.greaterscope.net/cmus/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" |
63 |
IUSE="aac alsa ao arts debug examples flac mad mikmod modplug mp3 mp4 musepack \ |
64 |
oss pidgin unicode vorbis wavpack wma zsh-completion" |
65 |
|
66 |
DEPEND="sys-libs/ncurses[unicode?] |
67 |
aac? ( media-libs/faad2 ) |
68 |
alsa? ( >=media-libs/alsa-lib-1.0.11 ) |
69 |
ao? ( media-libs/libao ) |
70 |
arts? ( kde-base/arts ) |
71 |
flac? ( media-libs/flac ) |
72 |
mad? ( >=media-libs/libmad-0.14 ) |
73 |
mikmod? ( media-libs/libmikmod ) |
74 |
modplug? ( >=media-libs/libmodplug-0.7 ) |
75 |
mp3? ( >=media-libs/libmad-0.14 ) |
76 |
mp4? ( media-libs/libmp4v2 |
77 |
media-libs/faad2 ) |
78 |
musepack? ( >=media-libs/libmpcdec-1.2 ) |
79 |
vorbis? ( >=media-libs/libvorbis-1.0 ) |
80 |
wavpack? ( media-sound/wavpack ) |
81 |
wma? ( >=media-video/ffmpeg-0.4.9_p20080326 )" |
82 |
RDEPEND="${DEPEND} |
83 |
zsh-completion? ( app-shells/zsh ) |
84 |
pidgin? ( net-im/pidgin |
85 |
dev-python/dbus-python )" |
86 |
|
87 |
my_config() { |
88 |
local value |
89 |
use ${1} && value=y || value=n |
90 |
myconf="${myconf} ${2}=${value}" |
91 |
} |
92 |
|
93 |
src_prepare() { |
94 |
epatch "${FILESDIR}"/${P}-new-ffmpeg.patch \ |
95 |
"${FILESDIR}"/${P}-symlink_attack.patch |
96 |
} |
97 |
|
98 |
src_configure() { |
99 |
local debuglevel=1 myconf="CONFIG_SUN=n" |
100 |
|
101 |
use debug && debuglevel=2 |
102 |
|
103 |
my_config aac CONFIG_AAC |
104 |
my_config ao CONFIG_AO |
105 |
my_config alsa CONFIG_ALSA |
106 |
my_config arts CONFIG_ARTS |
107 |
my_config flac CONFIG_FLAC |
108 |
my_config mad CONFIG_MAD |
109 |
my_config mikmod CONFIG_MIKMOD |
110 |
my_config mp3 CONFIG_MAD |
111 |
my_config mp4 CONFIG_MP4 |
112 |
my_config modplug CONFIG_MODPLUG |
113 |
my_config musepack CONFIG_MPC |
114 |
my_config oss CONFIG_OSS |
115 |
my_config vorbis CONFIG_VORBIS |
116 |
my_config wavpack CONFIG_WAVPACK |
117 |
my_config wma CONFIG_FFMPEG |
118 |
|
119 |
# econf doesn't work, because configure wants "prefix" (and similar) without dashes |
120 |
./configure prefix=/usr ${myconf} exampledir=/usr/share/doc/${PF}/examples \ |
121 |
libdir=/usr/$(get_libdir) DEBUG=${debuglevel} || die "configure failed" |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
emake DESTDIR="${D}" install || die "emake install failed" |
126 |
dodoc AUTHORS README |
127 |
use examples || rm -rf "${D}/usr/share/doc/${PF}/examples/" |
128 |
|
129 |
if use zsh-completion; then |
130 |
insinto /usr/share/zsh/site-functions |
131 |
doins contrib/_cmus |
132 |
fi |
133 |
|
134 |
if use pidgin; then |
135 |
sed -i -e "s:/usr/local/bin/python:/usr/bin/python:" contrib/cmus-updatepidgin.py |
136 |
newbin contrib/cmus-updatepidgin.py cmus-updatepidgin |
137 |
fi |
138 |
} |