1 |
commit: 007070b11faa5be4480c4ea433e1bc3879811ec5 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 10 14:36:01 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 10 15:07:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=007070b1 |
7 |
|
8 |
sys-devel/distcc: Drop old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-devel/distcc/Manifest | 1 - |
13 |
sys-devel/distcc/distcc-3.2_rc1-r5.ebuild | 196 ----------------------------- |
14 |
sys-devel/distcc/distcc-3.3.2-r4.ebuild | 200 ------------------------------ |
15 |
sys-devel/distcc/distcc-3.3.ebuild | 196 ----------------------------- |
16 |
4 files changed, 593 deletions(-) |
17 |
|
18 |
diff --git a/sys-devel/distcc/Manifest b/sys-devel/distcc/Manifest |
19 |
index 5a734a064a0..8473395bb70 100644 |
20 |
--- a/sys-devel/distcc/Manifest |
21 |
+++ b/sys-devel/distcc/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
DIST distcc-3.2rc1.tar.bz2 609904 BLAKE2B e6b928f3b9231524d37bdf86b39cd6a3601b6cdb1e03d913ae562286794240b4dd364d5d01da2176f9bb440809b166b4b877443459751adf8bd3ecf92ceb8476 SHA512 98b2e8423d724bbb6a615d946d170441a8e293310785f867d7a277b318c043a37b0af39ae8ed1f7a0667803de9db1d1925199bad85130cf9bd9cb347635125ee |
24 |
DIST distcc-3.3.2.tar.gz 1008938 BLAKE2B e784002dffefd395b068d237a86203563fefc81e17a08c4d2e372eaaf62c5ac799011fc8633c8bfb717f0ebc8c8cb8b999c941e0f5f87c4077d031a9e5c4b138 SHA512 fdf11ed94ba50977b45e302179c5c4ba067cc3db37579cb8ed6d5b9487f8e3c89114f65af69333c38d374cf7634d7aef8d5a2d5c7fd8e9b1f4930c0897d6da10 |
25 |
-DIST distcc-3.3.tar.gz 1171281 BLAKE2B f637cacbfdaaca6efb56e912de55fcfa49e3fffcb8f34649e339f16376250e18a20d30281a46f207992c0b300c726427a3ad5a77bd8976d2993f8f49b9b6b970 SHA512 459c175c8ac905bc70299e77ac11b6d24782bd69c9152126249c9af8fbb4c269e6f7317b02abf50cf6cc0405dd0f887e803320e19dc528a19c4c488640c615dc |
26 |
|
27 |
diff --git a/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild b/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild |
28 |
deleted file mode 100644 |
29 |
index b4598fc9c5b..00000000000 |
30 |
--- a/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,196 +0,0 @@ |
33 |
-# Copyright 1999-2019 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
- |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
- |
40 |
-inherit autotools flag-o-matic python-single-r1 systemd toolchain-funcs user xdg-utils |
41 |
- |
42 |
-MY_P="${P/_}" |
43 |
-DESCRIPTION="Distribute compilation of C code across several machines on a network" |
44 |
-HOMEPAGE="http://distcc.org/" |
45 |
-SRC_URI="https://distcc.googlecode.com/files/${MY_P}.tar.bz2" |
46 |
- |
47 |
-LICENSE="GPL-2" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
50 |
-IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf" |
51 |
- |
52 |
-RESTRICT="test" |
53 |
- |
54 |
-CDEPEND="${PYTHON_DEPS} |
55 |
- dev-libs/popt |
56 |
- gnome? ( |
57 |
- >=gnome-base/libgnome-2 |
58 |
- >=gnome-base/libgnomeui-2 |
59 |
- x11-libs/gtk+:2 |
60 |
- x11-libs/pango |
61 |
- ) |
62 |
- gssapi? ( net-libs/libgssglue ) |
63 |
- gtk? ( x11-libs/gtk+:2 ) |
64 |
- zeroconf? ( >=net-dns/avahi-0.6[dbus] ) |
65 |
-" |
66 |
-DEPEND="${CDEPEND} |
67 |
- virtual/pkgconfig" |
68 |
-RDEPEND="${CDEPEND} |
69 |
- !net-misc/pump |
70 |
- dev-util/shadowman |
71 |
- >=sys-devel/gcc-config-1.4.1 |
72 |
- selinux? ( sec-policy/selinux-distcc ) |
73 |
- xinetd? ( sys-apps/xinetd )" |
74 |
- |
75 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
76 |
- |
77 |
-S="${WORKDIR}/${MY_P}" |
78 |
- |
79 |
-pkg_setup() { |
80 |
- enewuser distcc 240 -1 -1 daemon |
81 |
- python-single-r1_pkg_setup |
82 |
- |
83 |
- DCCC_PATH="/usr/$(get_libdir)/distcc/bin" |
84 |
- DISTCC_VERBOSE="0" |
85 |
-} |
86 |
- |
87 |
-src_prepare() { |
88 |
- eapply "${FILESDIR}/${PN}-3.0-xinetd.patch" |
89 |
- # bug #253786 |
90 |
- eapply "${FILESDIR}/${PN}-3.0-fix-fortify.patch" |
91 |
- # bug #255188 |
92 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-freedesktop.patch" |
93 |
- # bug #258364 |
94 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-python.patch" |
95 |
- # for net-libs/libgssglue |
96 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-gssapi.patch" |
97 |
- # SOCKSv5 support needed for Portage, bug #537616 |
98 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-socks5.patch" |
99 |
- eapply_user |
100 |
- |
101 |
- # Bugs #120001, #167844 and probably more. See patch for description. |
102 |
- use hardened && eapply "${FILESDIR}/distcc-hardened.patch" |
103 |
- |
104 |
- sed -i \ |
105 |
- -e "/PATH/s:\$distcc_location:${EPREFIX}${DCCC_PATH}:" \ |
106 |
- -e "s:@PYTHON@:${EPYTHON}:" \ |
107 |
- pump.in || die "sed failed" |
108 |
- |
109 |
- sed \ |
110 |
- -e "s:@EPREFIX@:${EPREFIX:-/}:" \ |
111 |
- -e "s:@libdir@:/usr/$(get_libdir):" \ |
112 |
- "${FILESDIR}/3.2/distcc-config" > "${T}/distcc-config" || die |
113 |
- |
114 |
- eaclocal -Im4 --output=aclocal.m4 |
115 |
- eautoconf |
116 |
-} |
117 |
- |
118 |
-src_configure() { |
119 |
- local myconf="--disable-Werror --with-docdir=\$(datadir)/doc/${PF}" |
120 |
- |
121 |
- # --disable-rfc2553 b0rked, bug #254176 |
122 |
- use ipv6 && myconf="${myconf} --enable-rfc2553" |
123 |
- |
124 |
- econf \ |
125 |
- $(use_with gtk) \ |
126 |
- $(use_with gnome) \ |
127 |
- $(use_with gssapi auth) \ |
128 |
- $(use_with zeroconf avahi) \ |
129 |
- ${myconf} |
130 |
-} |
131 |
- |
132 |
-src_install() { |
133 |
- default |
134 |
- python_optimize |
135 |
- |
136 |
- newinitd "${FILESDIR}/3.2/init" distccd |
137 |
- systemd_dounit "${FILESDIR}/distccd.service" |
138 |
- systemd_install_serviced "${FILESDIR}/distccd.service.conf" |
139 |
- |
140 |
- cp "${FILESDIR}/3.2/conf" "${T}/distccd" || die |
141 |
- if use zeroconf; then |
142 |
- cat >> "${T}/distccd" <<-EOF || die |
143 |
- |
144 |
- # Enable zeroconf support in distccd |
145 |
- DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
146 |
- EOF |
147 |
- |
148 |
- sed -i '/ExecStart/ s|$| --zeroconf|' "${D}$(systemd_get_systemunitdir)"/distccd.service || die |
149 |
- fi |
150 |
- doconfd "${T}/distccd" || die |
151 |
- |
152 |
- cat > "${T}/02distcc" <<-EOF || die |
153 |
- # This file is managed by distcc-config; use it to change these settings. |
154 |
- # DISTCC_LOG and DISTCC_DIR should not be set. |
155 |
- DISTCC_VERBOSE="${DISTCC_VERBOSE:-0}" |
156 |
- DISTCC_FALLBACK="${DISTCC_FALLBACK:-1}" |
157 |
- DISTCC_SAVE_TEMPS="${DISTCC_SAVE_TEMPS:-0}" |
158 |
- DISTCC_TCP_CORK="${DISTCC_TCP_CORK}" |
159 |
- DISTCC_SSH="${DISTCC_SSH}" |
160 |
- UNCACHED_ERR_FD="${UNCACHED_ERR_FD}" |
161 |
- DISTCC_ENABLE_DISCREPANCY_EMAIL="${DISTCC_ENABLE_DISCREPANCY_EMAIL}" |
162 |
- DCC_EMAILLOG_WHOM_TO_BLAME="${DCC_EMAILLOG_WHOM_TO_BLAME}" |
163 |
- EOF |
164 |
- doenvd "${T}/02distcc" || die |
165 |
- |
166 |
- keepdir "${DCCC_PATH}" || die |
167 |
- |
168 |
- dobin "${T}/distcc-config" || die |
169 |
- |
170 |
- if use gnome || use gtk; then |
171 |
- einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui" |
172 |
- einfo "This is to have a little sensability in naming schemes between distccmon programs" |
173 |
- mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die |
174 |
- dosym distccmon-gui /usr/bin/distccmon-gnome || die |
175 |
- fi |
176 |
- |
177 |
- if use xinetd; then |
178 |
- insinto /etc/xinetd.d || die |
179 |
- newins "doc/example/xinetd" distcc || die |
180 |
- fi |
181 |
- |
182 |
- insinto /usr/share/shadowman/tools |
183 |
- newins - distcc <<<"${EPREFIX}${DCCC_PATH}" |
184 |
- |
185 |
- rm -r "${ED}/etc/default" || die |
186 |
- rm "${ED}/etc/distcc/clients.allow" || die |
187 |
- rm "${ED}/etc/distcc/commands.allow.sh" || die |
188 |
-} |
189 |
- |
190 |
-pkg_postinst() { |
191 |
- if [[ ${ROOT} == / ]]; then |
192 |
- eselect compiler-shadow update distcc |
193 |
- fi |
194 |
- |
195 |
- use gnome && xdg_desktop_database_update |
196 |
- |
197 |
- elog |
198 |
- elog "Tips on using distcc with Gentoo can be found at" |
199 |
- elog "https://wiki.gentoo.org/wiki/Distcc" |
200 |
- elog |
201 |
- elog "distcc-pump is known to cause breakage with multiple packages." |
202 |
- elog "Do NOT enable it globally." |
203 |
- elog |
204 |
- elog "To use the distccmon programs with Gentoo you should use this command:" |
205 |
- elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5" |
206 |
- |
207 |
- if use gnome || use gtk; then |
208 |
- elog "Or:" |
209 |
- elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-gnome" |
210 |
- fi |
211 |
- |
212 |
- elog |
213 |
- elog "***SECURITY NOTICE***" |
214 |
- elog "If you are upgrading distcc please make sure to run etc-update to" |
215 |
- elog "update your /etc/conf.d/distccd and /etc/init.d/distccd files with" |
216 |
- elog "added security precautions (the --listen and --allow directives)" |
217 |
- elog |
218 |
-} |
219 |
- |
220 |
-pkg_prerm() { |
221 |
- if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then |
222 |
- eselect compiler-shadow remove distcc |
223 |
- fi |
224 |
-} |
225 |
- |
226 |
-pkg_postrm() { |
227 |
- use gnome && xdg_desktop_database_update |
228 |
-} |
229 |
|
230 |
diff --git a/sys-devel/distcc/distcc-3.3.2-r4.ebuild b/sys-devel/distcc/distcc-3.3.2-r4.ebuild |
231 |
deleted file mode 100644 |
232 |
index 9c94466284f..00000000000 |
233 |
--- a/sys-devel/distcc/distcc-3.3.2-r4.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,200 +0,0 @@ |
236 |
-# Copyright 1999-2019 Gentoo Authors |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=6 |
240 |
- |
241 |
-PYTHON_COMPAT=( python3_{5,6} ) |
242 |
- |
243 |
-inherit autotools flag-o-matic python-single-r1 systemd \ |
244 |
- toolchain-funcs user xdg-utils prefix |
245 |
- |
246 |
-DESCRIPTION="Distribute compilation of C code across several machines on a network" |
247 |
-HOMEPAGE="http://distcc.org/" |
248 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" |
249 |
- |
250 |
-LICENSE="GPL-2+" |
251 |
-SLOT="0" |
252 |
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh ~sparc ~x86" |
253 |
-IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf" |
254 |
- |
255 |
-RESTRICT="test" |
256 |
- |
257 |
-CDEPEND="${PYTHON_DEPS} |
258 |
- dev-libs/popt |
259 |
- gnome? ( |
260 |
- >=gnome-base/libgnome-2 |
261 |
- >=gnome-base/libgnomeui-2 |
262 |
- x11-libs/gtk+:2 |
263 |
- x11-libs/pango |
264 |
- ) |
265 |
- gssapi? ( net-libs/libgssglue ) |
266 |
- gtk? ( x11-libs/gtk+:2 ) |
267 |
- zeroconf? ( >=net-dns/avahi-0.6[dbus] ) |
268 |
-" |
269 |
-DEPEND="${CDEPEND} |
270 |
- sys-devel/autoconf-archive |
271 |
- sys-libs/binutils-libs |
272 |
- virtual/pkgconfig" |
273 |
-RDEPEND="${CDEPEND} |
274 |
- !net-misc/pump |
275 |
- dev-util/shadowman |
276 |
- >=sys-devel/gcc-config-1.4.1 |
277 |
- selinux? ( sec-policy/selinux-distcc ) |
278 |
- xinetd? ( sys-apps/xinetd )" |
279 |
- |
280 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
281 |
- |
282 |
-S="${WORKDIR}/distcc" |
283 |
- |
284 |
-pkg_setup() { |
285 |
- enewuser distcc 240 -1 -1 daemon |
286 |
- python-single-r1_pkg_setup |
287 |
-} |
288 |
- |
289 |
-src_prepare() { |
290 |
- eapply "${FILESDIR}/${PN}-3.0-xinetd.patch" |
291 |
- # bug #255188 |
292 |
- eapply "${FILESDIR}/${PN}-3.3.2-freedesktop.patch" |
293 |
- # SOCKSv5 support needed for Portage, bug #537616 |
294 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-socks5.patch" |
295 |
- # crash on missing directory |
296 |
- eapply "${FILESDIR}"/distcc-3.3.2-noexist-crash.patch |
297 |
- eapply_user |
298 |
- |
299 |
- # Bugs #120001, #167844 and probably more. See patch for description. |
300 |
- use hardened && eapply "${FILESDIR}/distcc-hardened.patch" |
301 |
- |
302 |
- sed -i \ |
303 |
- -e "/PATH/s:\$distcc_location:${EPREFIX}/usr/lib/distcc/bin:" \ |
304 |
- -e "s:@PYTHON@:${EPYTHON}:" \ |
305 |
- pump.in || die "sed failed" |
306 |
- |
307 |
- sed \ |
308 |
- -e "s:@EPREFIX@:${EPREFIX:-/}:" \ |
309 |
- -e "s:@libdir@:/usr/lib:" \ |
310 |
- "${FILESDIR}/distcc-config" > "${T}/distcc-config" || die |
311 |
- |
312 |
- hprefixify update-distcc-symlinks.py src/{serve,daemon}.c |
313 |
- python_fix_shebang update-distcc-symlinks.py "${T}/distcc-config" |
314 |
- eautoreconf |
315 |
-} |
316 |
- |
317 |
-src_configure() { |
318 |
- local myconf=( |
319 |
- --disable-Werror |
320 |
- --libdir=/usr/lib |
321 |
- $(use_enable ipv6 rfc2553) |
322 |
- $(use_with gtk) |
323 |
- $(use_with gnome) |
324 |
- $(use_with gssapi auth) |
325 |
- $(use_with zeroconf avahi) |
326 |
- ) |
327 |
- |
328 |
- econf "${myconf[@]}" |
329 |
-} |
330 |
- |
331 |
-src_install() { |
332 |
- # override GZIP_BIN to stop it from compressing manpages |
333 |
- emake DESTDIR="${D}" GZIP_BIN=false install |
334 |
- python_optimize |
335 |
- |
336 |
- newinitd "${FILESDIR}/distccd.initd" distccd |
337 |
- systemd_dounit "${FILESDIR}/distccd.service" |
338 |
- systemd_install_serviced "${FILESDIR}/distccd.service.conf" |
339 |
- |
340 |
- cp "${FILESDIR}/distccd.confd" "${T}/distccd" || die |
341 |
- if use zeroconf; then |
342 |
- cat >> "${T}/distccd" <<-EOF || die |
343 |
- |
344 |
- # Enable zeroconf support in distccd |
345 |
- DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
346 |
- EOF |
347 |
- |
348 |
- sed -i '/ExecStart/ s|$| --zeroconf|' "${D}$(systemd_get_systemunitdir)"/distccd.service || die |
349 |
- fi |
350 |
- doconfd "${T}/distccd" |
351 |
- |
352 |
- newenvd - 02distcc <<-EOF || die |
353 |
- # This file is managed by distcc-config; use it to change these settings. |
354 |
- # DISTCC_LOG and DISTCC_DIR should not be set. |
355 |
- DISTCC_VERBOSE="${DISTCC_VERBOSE:-0}" |
356 |
- DISTCC_FALLBACK="${DISTCC_FALLBACK:-1}" |
357 |
- DISTCC_SAVE_TEMPS="${DISTCC_SAVE_TEMPS:-0}" |
358 |
- DISTCC_TCP_CORK="${DISTCC_TCP_CORK}" |
359 |
- DISTCC_SSH="${DISTCC_SSH}" |
360 |
- UNCACHED_ERR_FD="${UNCACHED_ERR_FD}" |
361 |
- DISTCC_ENABLE_DISCREPANCY_EMAIL="${DISTCC_ENABLE_DISCREPANCY_EMAIL}" |
362 |
- DCC_EMAILLOG_WHOM_TO_BLAME="${DCC_EMAILLOG_WHOM_TO_BLAME}" |
363 |
- EOF |
364 |
- |
365 |
- keepdir /usr/lib/distcc |
366 |
- |
367 |
- dobin "${T}/distcc-config" |
368 |
- |
369 |
- if use gnome || use gtk; then |
370 |
- einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui" |
371 |
- einfo "This is to have a little sensability in naming schemes between distccmon programs" |
372 |
- mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die |
373 |
- dosym distccmon-gui /usr/bin/distccmon-gnome |
374 |
- fi |
375 |
- |
376 |
- if use xinetd; then |
377 |
- insinto /etc/xinetd.d |
378 |
- newins "doc/example/xinetd" distcc |
379 |
- fi |
380 |
- |
381 |
- insinto /usr/share/shadowman/tools |
382 |
- newins - distcc <<<"${EPREFIX}/usr/lib/distcc/bin" |
383 |
- newins - distccd <<<"${EPREFIX}/usr/lib/distcc" |
384 |
- |
385 |
- rm -r "${ED}/etc/default" || die |
386 |
- rm "${ED}/etc/distcc/clients.allow" || die |
387 |
- rm "${ED}/etc/distcc/commands.allow.sh" || die |
388 |
-} |
389 |
- |
390 |
-pkg_postinst() { |
391 |
- # remove the old paths when switching from libXX to lib |
392 |
- if [[ $(get_libdir) != lib && ${SYMLINK_LIB} != yes && \ |
393 |
- -d ${EROOT%/}/usr/$(get_libdir)/distcc ]]; then |
394 |
- rm -r -f "${EROOT%/}/usr/$(get_libdir)/distcc" || die |
395 |
- fi |
396 |
- |
397 |
- if [[ ${ROOT} == / ]]; then |
398 |
- eselect compiler-shadow update distcc |
399 |
- eselect compiler-shadow update distccd |
400 |
- fi |
401 |
- |
402 |
- use gnome && xdg_desktop_database_update |
403 |
- |
404 |
- elog |
405 |
- elog "Tips on using distcc with Gentoo can be found at" |
406 |
- elog "https://wiki.gentoo.org/wiki/Distcc" |
407 |
- elog |
408 |
- elog "distcc-pump is known to cause breakage with multiple packages." |
409 |
- elog "Do NOT enable it globally." |
410 |
- elog |
411 |
- elog "To use the distccmon programs with Gentoo you should use this command:" |
412 |
- elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5" |
413 |
- |
414 |
- if use gnome || use gtk; then |
415 |
- elog "Or:" |
416 |
- elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-gnome" |
417 |
- fi |
418 |
- |
419 |
- elog |
420 |
- elog "***SECURITY NOTICE***" |
421 |
- elog "Since distcc-3.3, whitelist is used for what distccd could execute. The whilelist" |
422 |
- elog "has been generated by compiler-shadow distccd. To revert to the old behavior, " |
423 |
- elog "you need to pass --make-me-a-botnet to distccd in /etc/conf.d/distccd." |
424 |
- elog "Cf. https://github.com/distcc/distcc/pull/243." |
425 |
-} |
426 |
- |
427 |
-pkg_prerm() { |
428 |
- if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then |
429 |
- eselect compiler-shadow remove distcc |
430 |
- fi |
431 |
-} |
432 |
- |
433 |
-pkg_postrm() { |
434 |
- use gnome && xdg_desktop_database_update |
435 |
-} |
436 |
|
437 |
diff --git a/sys-devel/distcc/distcc-3.3.ebuild b/sys-devel/distcc/distcc-3.3.ebuild |
438 |
deleted file mode 100644 |
439 |
index 995a109a07b..00000000000 |
440 |
--- a/sys-devel/distcc/distcc-3.3.ebuild |
441 |
+++ /dev/null |
442 |
@@ -1,196 +0,0 @@ |
443 |
-# Copyright 1999-2019 Gentoo Authors |
444 |
-# Distributed under the terms of the GNU General Public License v2 |
445 |
- |
446 |
-EAPI=6 |
447 |
- |
448 |
-PYTHON_COMPAT=( python3_{5,6} ) |
449 |
- |
450 |
-inherit flag-o-matic python-single-r1 systemd toolchain-funcs user xdg-utils prefix |
451 |
- |
452 |
-MY_P="${P/_}" |
453 |
-DESCRIPTION="Distribute compilation of C code across several machines on a network" |
454 |
-HOMEPAGE="http://distcc.org/" |
455 |
-SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz" |
456 |
- |
457 |
-LICENSE="GPL-2+" |
458 |
-SLOT="0" |
459 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
460 |
-IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf" |
461 |
- |
462 |
-RESTRICT="test" |
463 |
- |
464 |
-CDEPEND="${PYTHON_DEPS} |
465 |
- dev-libs/popt |
466 |
- gnome? ( |
467 |
- >=gnome-base/libgnome-2 |
468 |
- >=gnome-base/libgnomeui-2 |
469 |
- x11-libs/gtk+:2 |
470 |
- x11-libs/pango |
471 |
- ) |
472 |
- gssapi? ( net-libs/libgssglue ) |
473 |
- gtk? ( x11-libs/gtk+:2 ) |
474 |
- zeroconf? ( >=net-dns/avahi-0.6[dbus] ) |
475 |
-" |
476 |
-DEPEND="${CDEPEND} |
477 |
- sys-libs/binutils-libs |
478 |
- virtual/pkgconfig" |
479 |
-RDEPEND="${CDEPEND} |
480 |
- !net-misc/pump |
481 |
- dev-util/shadowman |
482 |
- >=sys-devel/gcc-config-1.4.1 |
483 |
- selinux? ( sec-policy/selinux-distcc ) |
484 |
- xinetd? ( sys-apps/xinetd )" |
485 |
- |
486 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
487 |
- |
488 |
-S="${WORKDIR}/${MY_P}" |
489 |
- |
490 |
-pkg_setup() { |
491 |
- enewuser distcc 240 -1 -1 daemon |
492 |
- python-single-r1_pkg_setup |
493 |
-} |
494 |
- |
495 |
-src_prepare() { |
496 |
- eapply "${FILESDIR}/${PN}-3.0-xinetd.patch" |
497 |
- # bug #255188 |
498 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-freedesktop.patch" |
499 |
- # SOCKSv5 support needed for Portage, bug #537616 |
500 |
- eapply "${FILESDIR}/${PN}-3.2_rc1-socks5.patch" |
501 |
- eapply_user |
502 |
- |
503 |
- # Bugs #120001, #167844 and probably more. See patch for description. |
504 |
- use hardened && eapply "${FILESDIR}/distcc-hardened.patch" |
505 |
- |
506 |
- sed -i \ |
507 |
- -e "/PATH/s:\$distcc_location:${EPREFIX}/usr/lib/distcc/bin:" \ |
508 |
- -e "s:@PYTHON@:${EPYTHON}:" \ |
509 |
- pump.in || die "sed failed" |
510 |
- |
511 |
- sed \ |
512 |
- -e "s:@EPREFIX@:${EPREFIX:-/}:" \ |
513 |
- -e "s:@libdir@:/usr/lib:" \ |
514 |
- "${FILESDIR}/3.2/distcc-config" > "${T}/distcc-config" || die |
515 |
- |
516 |
- hprefixify update-distcc-symlinks.py src/{serve,daemon}.c |
517 |
-} |
518 |
- |
519 |
-src_configure() { |
520 |
- local myconf=( |
521 |
- --disable-Werror |
522 |
- $(use_with gtk) |
523 |
- $(use_with gnome) |
524 |
- $(use_with gssapi auth) |
525 |
- $(use_with zeroconf avahi) |
526 |
- ) |
527 |
- |
528 |
- # --disable-rfc2553 b0rked, bug #254176 |
529 |
- use ipv6 && myconf+=(--enable-rfc2553) |
530 |
- |
531 |
- econf "${myconf[@]}" |
532 |
-} |
533 |
- |
534 |
-src_install() { |
535 |
- # override GZIP_BIN to stop it from compressing manpages |
536 |
- emake DESTDIR="${D}" GZIP_BIN=false install |
537 |
- python_optimize |
538 |
- |
539 |
- newinitd "${FILESDIR}/3.2/init" distccd |
540 |
- systemd_dounit "${FILESDIR}/distccd.service" |
541 |
- systemd_install_serviced "${FILESDIR}/distccd.service.conf" |
542 |
- |
543 |
- cp "${FILESDIR}/3.2/conf" "${T}/distccd" || die |
544 |
- if use zeroconf; then |
545 |
- cat >> "${T}/distccd" <<-EOF || die |
546 |
- |
547 |
- # Enable zeroconf support in distccd |
548 |
- DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf" |
549 |
- EOF |
550 |
- |
551 |
- sed -i '/ExecStart/ s|$| --zeroconf|' "${D}$(systemd_get_systemunitdir)"/distccd.service || die |
552 |
- fi |
553 |
- doconfd "${T}/distccd" |
554 |
- |
555 |
- newenvd - 02distcc <<-EOF || die |
556 |
- # This file is managed by distcc-config; use it to change these settings. |
557 |
- # DISTCC_LOG and DISTCC_DIR should not be set. |
558 |
- DISTCC_VERBOSE="${DISTCC_VERBOSE:-0}" |
559 |
- DISTCC_FALLBACK="${DISTCC_FALLBACK:-1}" |
560 |
- DISTCC_SAVE_TEMPS="${DISTCC_SAVE_TEMPS:-0}" |
561 |
- DISTCC_TCP_CORK="${DISTCC_TCP_CORK}" |
562 |
- DISTCC_SSH="${DISTCC_SSH}" |
563 |
- UNCACHED_ERR_FD="${UNCACHED_ERR_FD}" |
564 |
- DISTCC_ENABLE_DISCREPANCY_EMAIL="${DISTCC_ENABLE_DISCREPANCY_EMAIL}" |
565 |
- DCC_EMAILLOG_WHOM_TO_BLAME="${DCC_EMAILLOG_WHOM_TO_BLAME}" |
566 |
- EOF |
567 |
- |
568 |
- keepdir /usr/lib/distcc |
569 |
- |
570 |
- dobin "${T}/distcc-config" |
571 |
- |
572 |
- if use gnome || use gtk; then |
573 |
- einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui" |
574 |
- einfo "This is to have a little sensability in naming schemes between distccmon programs" |
575 |
- mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die |
576 |
- dosym distccmon-gui /usr/bin/distccmon-gnome |
577 |
- fi |
578 |
- |
579 |
- if use xinetd; then |
580 |
- insinto /etc/xinetd.d |
581 |
- newins "doc/example/xinetd" distcc |
582 |
- fi |
583 |
- |
584 |
- insinto /usr/share/shadowman/tools |
585 |
- newins - distcc <<<"${EPREFIX}/usr/lib/distcc/bin" |
586 |
- newins - distccd <<<"${EPREFIX}/usr/lib/distcc" |
587 |
- |
588 |
- rm -r "${ED}/etc/default" || die |
589 |
- rm "${ED}/etc/distcc/clients.allow" || die |
590 |
- rm "${ED}/etc/distcc/commands.allow.sh" || die |
591 |
-} |
592 |
- |
593 |
-pkg_postinst() { |
594 |
- # remove the old paths when switching from libXX to lib |
595 |
- if [[ $(get_libdir) != lib && ${SYMLINK_LIB} != yes && \ |
596 |
- -d ${EROOT%/}/usr/$(get_libdir)/distcc ]]; then |
597 |
- rm -r -f "${EROOT%/}/usr/$(get_libdir)/distcc" || die |
598 |
- fi |
599 |
- |
600 |
- if [[ ${ROOT} == / ]]; then |
601 |
- eselect compiler-shadow update distcc |
602 |
- eselect compiler-shadow update distccd |
603 |
- fi |
604 |
- |
605 |
- use gnome && xdg_desktop_database_update |
606 |
- |
607 |
- elog |
608 |
- elog "Tips on using distcc with Gentoo can be found at" |
609 |
- elog "https://wiki.gentoo.org/wiki/Distcc" |
610 |
- elog |
611 |
- elog "distcc-pump is known to cause breakage with multiple packages." |
612 |
- elog "Do NOT enable it globally." |
613 |
- elog |
614 |
- elog "To use the distccmon programs with Gentoo you should use this command:" |
615 |
- elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5" |
616 |
- |
617 |
- if use gnome || use gtk; then |
618 |
- elog "Or:" |
619 |
- elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-gnome" |
620 |
- fi |
621 |
- |
622 |
- elog |
623 |
- elog "***SECURITY NOTICE***" |
624 |
- elog "Since distcc-3.3, whitelist is used for what distccd could execute. The whilelist" |
625 |
- elog "has been generated by compiler-shadow distccd. To revert to the old behavior, " |
626 |
- elog "you need to pass --make-me-a-botnet to distccd in /etc/conf.d/distccd." |
627 |
- elog "Cf. https://github.com/distcc/distcc/pull/243." |
628 |
-} |
629 |
- |
630 |
-pkg_prerm() { |
631 |
- if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then |
632 |
- eselect compiler-shadow remove distcc |
633 |
- fi |
634 |
-} |
635 |
- |
636 |
-pkg_postrm() { |
637 |
- use gnome && xdg_desktop_database_update |
638 |
-} |