1 |
matsuu 09/02/01 16:16:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: distcc-3.1-r1.ebuild |
5 |
Log: |
6 |
Fixed RFC2553 issue, bug #254176. Fixed icon and menu location, bug #255188. |
7 |
(Portage version: 2.1.6.7/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.194 sys-devel/distcc/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.194&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?rev=1.194&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/ChangeLog?r1=1.193&r2=1.194 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v |
19 |
retrieving revision 1.193 |
20 |
retrieving revision 1.194 |
21 |
diff -u -r1.193 -r1.194 |
22 |
--- ChangeLog 19 Dec 2008 00:51:49 -0000 1.193 |
23 |
+++ ChangeLog 1 Feb 2009 16:16:51 -0000 1.194 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sys-devel/distcc |
26 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.193 2008/12/19 00:51:49 matsuu Exp $ |
28 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/ChangeLog,v 1.194 2009/02/01 16:16:51 matsuu Exp $ |
30 |
+ |
31 |
+*distcc-3.1-r1 (01 Feb 2009) |
32 |
+ |
33 |
+ 01 Feb 2009; MATSUU Takuto <matsuu@g.o> |
34 |
+ +files/distcc-3.1-freedesktop.patch, +distcc-3.1-r1.ebuild: |
35 |
+ Fixed RFC2553 issue, bug #254176. Fixed icon and menu location, bug |
36 |
+ #255188. |
37 |
|
38 |
19 Dec 2008; MATSUU Takuto <matsuu@g.o> distcc-3.0-r4.ebuild: |
39 |
Added -j1 to emake install, bug #249695. |
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-devel/distcc/distcc-3.1-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-3.1-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/distcc/distcc-3.1-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: distcc-3.1-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/distcc/distcc-3.1-r1.ebuild,v 1.1 2009/02/01 16:16:51 matsuu Exp $ |
53 |
|
54 |
inherit eutils fdo-mime flag-o-matic multilib toolchain-funcs |
55 |
|
56 |
DESCRIPTION="a program to distribute compilation of C code across several machines on a network" |
57 |
HOMEPAGE="http://distcc.org/" |
58 |
SRC_URI="http://distcc.googlecode.com/files/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
63 |
IUSE="avahi gnome gtk hardened ipv6 selinux xinetd" |
64 |
|
65 |
RESTRICT="test" |
66 |
|
67 |
RDEPEND=">=dev-lang/python-2.4 |
68 |
dev-libs/popt |
69 |
avahi? ( >=net-dns/avahi-0.6 ) |
70 |
gnome? ( |
71 |
>=gnome-base/libgnome-2 |
72 |
>=gnome-base/libgnomeui-2 |
73 |
>=x11-libs/gtk+-2 |
74 |
x11-libs/pango |
75 |
) |
76 |
gtk? ( |
77 |
>=x11-libs/gtk+-2 |
78 |
)" |
79 |
DEPEND="${RDEPEND} |
80 |
dev-util/pkgconfig" |
81 |
RDEPEND="${RDEPEND} |
82 |
!net-misc/pump |
83 |
>=sys-devel/gcc-config-1.3.1 |
84 |
selinux? ( sec-policy/selinux-distcc ) |
85 |
xinetd? ( sys-apps/xinetd )" |
86 |
|
87 |
DISTCC_LOG="" |
88 |
DCCC_PATH="/usr/$(get_libdir)/distcc/bin" |
89 |
DISTCC_VERBOSE="0" |
90 |
|
91 |
pkg_setup() { |
92 |
enewuser distcc 240 -1 -1 daemon |
93 |
} |
94 |
|
95 |
src_unpack() { |
96 |
unpack ${A} |
97 |
cd "${S}" |
98 |
epatch "${FILESDIR}/${PN}-3.0-xinetd.patch" |
99 |
# bug #255188 |
100 |
epatch "${FILESDIR}/${P}-freedesktop.patch" |
101 |
sed -i -e "/PATH/s:\$distcc_location:${DCCC_PATH}:" pump.in || die |
102 |
|
103 |
# Bugs #120001, #167844 and probably more. See patch for description. |
104 |
use hardened && epatch "${FILESDIR}/distcc-hardened.patch" |
105 |
} |
106 |
|
107 |
src_compile() { |
108 |
local myconf="--disable-Werror --with-docdir=/usr/share/doc/${PF}" |
109 |
# More legacy stuff? |
110 |
[ "$(gcc-major-version)" = "2" ] && filter-lfs-flags |
111 |
|
112 |
# --disable-rfc2553 b0rked, bug #254176 |
113 |
use ipv6 && myconf="${myconf} --enable-rfc2553" |
114 |
|
115 |
econf \ |
116 |
$(use_with avahi) \ |
117 |
$(use_with gtk) \ |
118 |
$(use_with gnome) \ |
119 |
${myconf} || die "econf failed" |
120 |
emake || die "emake failed" |
121 |
} |
122 |
|
123 |
src_install() { |
124 |
# In rare cases, parallel make install failed |
125 |
emake -j1 DESTDIR="${D}" install || die |
126 |
|
127 |
dobin "${FILESDIR}/3.0/distcc-config" |
128 |
|
129 |
newinitd "${FILESDIR}/3.0/init" distccd |
130 |
|
131 |
cp "${FILESDIR}/3.0/conf" "${T}/distccd" |
132 |
if use avahi; then |
133 |
cat >> "${T}/distccd" <<-EOF |
134 |
|
135 |
# Enable zeroconf support in distccd |
136 |
DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
137 |
EOF |
138 |
fi |
139 |
doconfd "${T}/distccd" |
140 |
|
141 |
cat > "${T}/02distcc" <<-EOF |
142 |
# This file is managed by distcc-config; use it to change these settings. |
143 |
DISTCC_LOG="${DISTCC_LOG}" |
144 |
DCCC_PATH="${DCCC_PATH}" |
145 |
DISTCC_VERBOSE="${DISTCC_VERBOSE}" |
146 |
EOF |
147 |
doenvd "${T}/02distcc" |
148 |
|
149 |
# create the masquerade directory |
150 |
dodir "${DCCC_PATH}" |
151 |
for f in cc c++ gcc g++; do |
152 |
dosym /usr/bin/distcc "${DCCC_PATH}/${f}" |
153 |
if [ "${f}" != "cc" ]; then |
154 |
dosym /usr/bin/distcc "${DCCC_PATH}/${CTARGET:-${CHOST}}-${f}" |
155 |
fi |
156 |
done |
157 |
|
158 |
# create the distccd pid directory |
159 |
keepdir /var/run/distccd |
160 |
fowners distcc:daemon /var/run/distccd |
161 |
|
162 |
if use gnome || use gtk; then |
163 |
einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui" |
164 |
einfo "This is to have a little sensability in naming schemes between distccmon programs" |
165 |
mv "${D}/usr/bin/distccmon-gnome" "${D}/usr/bin/distccmon-gui" || die |
166 |
dosym distccmon-gui /usr/bin/distccmon-gnome |
167 |
fi |
168 |
|
169 |
if use xinetd; then |
170 |
insinto /etc/xinetd.d |
171 |
newins "doc/example/xinetd" distcc |
172 |
fi |
173 |
|
174 |
rm -rf "${D}/etc/default" |
175 |
rm -f "${D}/etc/distcc/clients.allow" |
176 |
rm -f "${D}/etc/distcc/commands.allow.sh" |
177 |
prepalldocs |
178 |
} |
179 |
|
180 |
pkg_postinst() { |
181 |
use gnome && fdo-mime_desktop_database_update |
182 |
|
183 |
if use ipv6; then |
184 |
elog |
185 |
elog "IPv6 has not supported yet by ${P}." |
186 |
fi |
187 |
elog |
188 |
elog "Tips on using distcc with Gentoo can be found at" |
189 |
elog "http://www.gentoo.org/doc/en/distcc.xml" |
190 |
elog |
191 |
elog "How to use pump mode with Gentoo:" |
192 |
elog "# distcc-config --set-hosts \"foo,cpp,lzo bar,cpp,lzo baz,cpp,lzo\"" |
193 |
elog "# pump emerge -u world" |
194 |
elog |
195 |
elog "To use the distccmon programs with Gentoo you should use this command:" |
196 |
elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-text 5" |
197 |
|
198 |
if use gnome || use gtk; then |
199 |
elog "Or:" |
200 |
elog "# DISTCC_DIR=\"${DISTCC_DIR}\" distccmon-gnome" |
201 |
fi |
202 |
|
203 |
elog |
204 |
elog "***SECURITY NOTICE***" |
205 |
elog "If you are upgrading distcc please make sure to run etc-update to" |
206 |
elog "update your /etc/conf.d/distccd and /etc/init.d/distccd files with" |
207 |
elog "added security precautions (the --listen and --allow directives)" |
208 |
elog |
209 |
} |
210 |
|
211 |
pkg_postrm() { |
212 |
use gnome && fdo-mime_desktop_database_update |
213 |
} |