1 |
ssuominen 12/01/28 01:51:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cdrtools-3.01_alpha06-r1.ebuild |
5 |
Log: |
6 |
Change cdda2wav, cdrecord, readcd and rscsi from suid root to sgid disk for udev users (note: tested with cdrecord -scanbus) |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.285 app-cdr/cdrtools/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/ChangeLog?rev=1.285&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/ChangeLog?rev=1.285&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/ChangeLog?r1=1.284&r2=1.285 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v |
20 |
retrieving revision 1.284 |
21 |
retrieving revision 1.285 |
22 |
diff -u -r1.284 -r1.285 |
23 |
--- ChangeLog 18 Oct 2011 17:11:08 -0000 1.284 |
24 |
+++ ChangeLog 28 Jan 2012 01:51:23 -0000 1.285 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-cdr/cdrtools |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.284 2011/10/18 17:11:08 billie Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/ChangeLog,v 1.285 2012/01/28 01:51:23 ssuominen Exp $ |
31 |
+ |
32 |
+*cdrtools-3.01_alpha06-r1 (28 Jan 2012) |
33 |
+ |
34 |
+ 28 Jan 2012; Samuli Suominen <ssuominen@g.o> |
35 |
+ +cdrtools-3.01_alpha06-r1.ebuild: |
36 |
+ Change cdda2wav, cdrecord, readcd and rscsi from suid root to sgid disk for |
37 |
+ udev users (note: tested with cdrecord -scanbus) |
38 |
|
39 |
*cdrtools-3.01_alpha06 (18 Oct 2011) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 app-cdr/cdrtools/cdrtools-3.01_alpha06-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha06-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha06-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: cdrtools-3.01_alpha06-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2012 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdrtools/cdrtools-3.01_alpha06-r1.ebuild,v 1.1 2012/01/28 01:51:23 ssuominen Exp $ |
54 |
|
55 |
EAPI=4 |
56 |
|
57 |
inherit multilib eutils toolchain-funcs flag-o-matic |
58 |
|
59 |
MY_P="${P/_alpha/a}" |
60 |
|
61 |
DESCRIPTION="A set of tools for CD/DVD reading and recording, including cdrecord" |
62 |
HOMEPAGE="http://cdrecord.berlios.de/private/cdrecord.html" |
63 |
SRC_URI="ftp://ftp.berlios.de/pub/cdrecord/$([[ -z ${PV/*_alpha*} ]] && echo 'alpha/')/${MY_P}.tar.bz2" |
64 |
|
65 |
LICENSE="GPL-2 LGPL-2.1 CDDL-Schily" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="acl unicode" |
69 |
|
70 |
DEPEND="acl? ( virtual/acl ) |
71 |
>=sys-devel/gettext-0.18.1.1 |
72 |
!app-cdr/cdrkit" |
73 |
RDEPEND="${DEPEND}" |
74 |
|
75 |
S=${WORKDIR}/${P/_alpha[0-9][0-9]} |
76 |
|
77 |
src_prepare() { |
78 |
# Remove profiled make files. |
79 |
rm -f $(find . -name '*_p.mk') || die "rm profiled" |
80 |
|
81 |
# Adjusting hardcoded paths. |
82 |
sed -i -e 's:opt/schily:usr:' \ |
83 |
$(find ./ -type f -name \*.[0-9ch] -exec grep -l 'opt/schily' '{}' '+') \ |
84 |
|| die "sed opt/schily" |
85 |
|
86 |
sed -i -e "s:\(^INSDIR=\t\tshare/doc/\):\1${PF}/:" \ |
87 |
$(find ./ -type f -exec grep -l 'INSDIR.\+doc' '{}' '+') \ |
88 |
|| die "sed doc" |
89 |
|
90 |
# Respect libdir. |
91 |
sed -i -e "s:\(^INSDIR=\t\t\)lib:\1$(get_libdir):" \ |
92 |
$(find ./ -type f -exec grep -l '^INSDIR.\+lib\(/siconv\)\?$' '{}' '+') \ |
93 |
|| die "sed multilib" |
94 |
|
95 |
# Do not install static libraries. |
96 |
sed -i -e 's:include\t\t.*rules.lib::' \ |
97 |
$(find ./ -type f -exec grep -l '^include.\+rules\.lib' '{}' '+') \ |
98 |
|| die "sed rules" |
99 |
|
100 |
# Respect CC/CXX variables. |
101 |
cd "${S}"/RULES |
102 |
local tcCC=$(tc-getCC) |
103 |
local tcCXX=$(tc-getCXX) |
104 |
sed -i -e "/cc-config.sh/s|\$(C_ARCH:%64=%) \$(CCOM_DEF)|${tcCC} ${tcCC}|" \ |
105 |
rules1.top || die "sed rules1.top" |
106 |
sed -i -e "/^\(CC\|DYNLD\|LDCC\|MKDEP\)/s|gcc|${tcCC}|" \ |
107 |
-e "/^\(CC++\|DYNLDC++\|LDCC++\|MKC++DEP\)/s|g++|${tcCXX}|" \ |
108 |
cc-gcc.rul || die "sed cc-gcc.rul" |
109 |
sed -i -e "s|^#CONFFLAGS +=\t-cc=\$(XCC_COM)$|CONFFLAGS +=\t-cc=${tcCC}|g" \ |
110 |
rules.cnf || die "sed rules.cnf" |
111 |
|
112 |
# Create additional symlinks needed for some archs (armv4l already created) |
113 |
local t |
114 |
for t in armv4tl armv5l armv5tel armv6l armv7l ppc64 s390x; do |
115 |
ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die |
116 |
ln -s i586-linux-gcc.rul ${t}-linux-gcc.rul || die |
117 |
done |
118 |
|
119 |
# amd64-fbsd support |
120 |
ln -s i386-freebsd-cc.rul amd64-freebsd-cc.rul || die |
121 |
ln -s i386-freebsd-gcc.rul amd64-freebsd-gcc.rul || die |
122 |
|
123 |
# Schily make setup. |
124 |
cd "${S}"/DEFAULTS |
125 |
local os="linux" |
126 |
|
127 |
sed -i \ |
128 |
-e "s:/opt/schily:/usr:g" \ |
129 |
-e "s:/usr/src/linux/include::g" \ |
130 |
-e "s:bin:root:g" \ |
131 |
Defaults.${os} || die "sed Schily make setup" |
132 |
} |
133 |
|
134 |
# skip obsolete configure script |
135 |
src_configure() { : ; } |
136 |
|
137 |
src_compile() { |
138 |
if use unicode; then |
139 |
local flags="$(test-flags -finput-charset=ISO-8859-1 -fexec-charset=UTF-8)" |
140 |
if [[ -n ${flags} ]]; then |
141 |
append-flags ${flags} |
142 |
else |
143 |
ewarn "Your compiler does not support the options required to build" |
144 |
ewarn "cdrtools with unicode in USE. unicode flag will be ignored." |
145 |
fi |
146 |
fi |
147 |
|
148 |
if ! use acl; then |
149 |
CFLAGS="${CFLAGS} -DNO_ACL" |
150 |
fi |
151 |
|
152 |
# LIB_ACL_TEST removed to support x86-fbsd |
153 |
# If not built with -j1, "sometimes" cdda2wav will not be built. |
154 |
emake -j1 CC="$(tc-getCC)" CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" \ |
155 |
LDOPTX="${LDFLAGS}" \ |
156 |
INS_BASE="${D}/usr" INS_RBASE="${D}" LINKMODE="dynamic" \ |
157 |
RUNPATH="" GMAKE_NOWARN="true" |
158 |
} |
159 |
|
160 |
src_install() { |
161 |
# If not built with -j1, "sometimes" manpages are not installed. |
162 |
emake -j1 CC="$(tc-getCC)" CPPOPTX="${CPPFLAGS}" COPTX="${CFLAGS}" \ |
163 |
LDOPTX="${LDFLAGS}" \ |
164 |
INS_BASE="${D}/usr" INS_RBASE="${D}" LINKMODE="dynamic" \ |
165 |
RUNPATH="" GMAKE_NOWARN="true" install |
166 |
|
167 |
# These symlinks are for compat with cdrkit. |
168 |
dosym schily /usr/include/scsilib |
169 |
dosym ../scg /usr/include/schily/scg |
170 |
|
171 |
dodoc ABOUT Changelog* CONTRIBUTING PORTING README.linux-shm READMEs/README.linux |
172 |
|
173 |
cd "${S}"/cdda2wav |
174 |
docinto cdda2wav |
175 |
dodoc Changelog FAQ Frontends HOWTOUSE NEEDED README THANKS TODO |
176 |
|
177 |
cd "${S}"/mkisofs |
178 |
docinto mkisofs |
179 |
dodoc ChangeLog* TODO |
180 |
|
181 |
# Remove man pages related to the build system |
182 |
rm -rvf "${D}"/usr/share/man/man5 |
183 |
|
184 |
# Change from -rws--x--x to -rwx--s--x for udev users |
185 |
if has_version sys-fs/udev; then |
186 |
fowners root:disk /usr/bin/{cdda2wav,cdrecord,readcd} /usr/sbin/rscsi |
187 |
fperms u-s,g+s /usr/bin/{cdda2wav,cdrecord,readcd} /usr/sbin/rscsi |
188 |
fi |
189 |
} |