Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/distcc/
Date: Sun, 09 Dec 2018 08:04:26
Message-Id: 1544342643.6e05bc52827a6a82decc8d980e24f2cfef577940.gyakovlev@gentoo
1 commit: 6e05bc52827a6a82decc8d980e24f2cfef577940
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 9 08:01:43 2018 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 9 08:04:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e05bc52
7
8 sys-devel/distcc: drop 3.3.2-r1
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 sys-devel/distcc/distcc-3.3.2-r1.ebuild | 196 --------------------------------
14 1 file changed, 196 deletions(-)
15
16 diff --git a/sys-devel/distcc/distcc-3.3.2-r1.ebuild b/sys-devel/distcc/distcc-3.3.2-r1.ebuild
17 deleted file mode 100644
18 index 100daf4ce2c..00000000000
19 --- a/sys-devel/distcc/distcc-3.3.2-r1.ebuild
20 +++ /dev/null
21 @@ -1,196 +0,0 @@
22 -# Copyright 1999-2018 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -PYTHON_COMPAT=( python3_{5,6} )
28 -
29 -inherit autotools flag-o-matic python-single-r1 systemd \
30 - toolchain-funcs user xdg-utils prefix
31 -
32 -DESCRIPTION="Distribute compilation of C code across several machines on a network"
33 -HOMEPAGE="http://distcc.org/"
34 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
35 -
36 -LICENSE="GPL-2+"
37 -SLOT="0"
38 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
39 -IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf"
40 -
41 -RESTRICT="test"
42 -
43 -CDEPEND="${PYTHON_DEPS}
44 - dev-libs/popt
45 - gnome? (
46 - >=gnome-base/libgnome-2
47 - >=gnome-base/libgnomeui-2
48 - x11-libs/gtk+:2
49 - x11-libs/pango
50 - )
51 - gssapi? ( net-libs/libgssglue )
52 - gtk? ( x11-libs/gtk+:2 )
53 - zeroconf? ( >=net-dns/avahi-0.6[dbus] )
54 -"
55 -DEPEND="${CDEPEND}
56 - sys-libs/binutils-libs
57 - virtual/pkgconfig"
58 -RDEPEND="${CDEPEND}
59 - !net-misc/pump
60 - dev-util/shadowman
61 - >=sys-devel/gcc-config-1.4.1
62 - selinux? ( sec-policy/selinux-distcc )
63 - xinetd? ( sys-apps/xinetd )"
64 -
65 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
66 -
67 -S="${WORKDIR}/distcc"
68 -
69 -pkg_setup() {
70 - enewuser distcc 240 -1 -1 daemon
71 - python-single-r1_pkg_setup
72 -}
73 -
74 -src_prepare() {
75 - eapply "${FILESDIR}/${PN}-3.0-xinetd.patch"
76 - # bug #255188
77 - eapply "${FILESDIR}/${PN}-3.3.2-freedesktop.patch"
78 - # SOCKSv5 support needed for Portage, bug #537616
79 - eapply "${FILESDIR}/${PN}-3.2_rc1-socks5.patch"
80 - eapply_user
81 -
82 - # Bugs #120001, #167844 and probably more. See patch for description.
83 - use hardened && eapply "${FILESDIR}/distcc-hardened.patch"
84 -
85 - sed -i \
86 - -e "/PATH/s:\$distcc_location:${EPREFIX}/usr/lib/distcc/bin:" \
87 - -e "s:@PYTHON@:${EPYTHON}:" \
88 - pump.in || die "sed failed"
89 -
90 - sed \
91 - -e "s:@EPREFIX@:${EPREFIX:-/}:" \
92 - -e "s:@libdir@:/usr/lib:" \
93 - "${FILESDIR}/3.2/distcc-config" > "${T}/distcc-config" || die
94 -
95 - hprefixify update-distcc-symlinks.py src/{serve,daemon}.c
96 - python_fix_shebang update-distcc-symlinks.py "${T}/distcc-config"
97 - eautoreconf
98 -}
99 -
100 -src_configure() {
101 - local myconf=(
102 - --disable-Werror
103 - $(use_enable ipv6 rfc2553)
104 - $(use_with gtk)
105 - $(use_with gnome)
106 - $(use_with gssapi auth)
107 - $(use_with zeroconf avahi)
108 - )
109 -
110 - econf "${myconf[@]}"
111 -}
112 -
113 -src_install() {
114 - # override GZIP_BIN to stop it from compressing manpages
115 - emake DESTDIR="${D}" GZIP_BIN=false install
116 - python_optimize
117 -
118 - newinitd "${FILESDIR}/distccd.initd" distccd
119 - systemd_dounit "${FILESDIR}/distccd.service"
120 - systemd_install_serviced "${FILESDIR}/distccd.service.conf"
121 -
122 - cp "${FILESDIR}/distccd.confd" "${T}/distccd" || die
123 - if use zeroconf; then
124 - cat >> "${T}/distccd" <<-EOF || die
125 -
126 - # Enable zeroconf support in distccd
127 - DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf"
128 - EOF
129 -
130 - sed -i '/ExecStart/ s|$| --zeroconf|' "${D}$(systemd_get_systemunitdir)"/distccd.service || die
131 - fi
132 - doconfd "${T}/distccd"
133 -
134 - newenvd - 02distcc <<-EOF || die
135 - # This file is managed by distcc-config; use it to change these settings.
136 - # DISTCC_LOG and DISTCC_DIR should not be set.
137 - DISTCC_VERBOSE="${DISTCC_VERBOSE:-0}"
138 - DISTCC_FALLBACK="${DISTCC_FALLBACK:-1}"
139 - DISTCC_SAVE_TEMPS="${DISTCC_SAVE_TEMPS:-0}"
140 - DISTCC_TCP_CORK="${DISTCC_TCP_CORK}"
141 - DISTCC_SSH="${DISTCC_SSH}"
142 - UNCACHED_ERR_FD="${UNCACHED_ERR_FD}"
143 - DISTCC_ENABLE_DISCREPANCY_EMAIL="${DISTCC_ENABLE_DISCREPANCY_EMAIL}"
144 - DCC_EMAILLOG_WHOM_TO_BLAME="${DCC_EMAILLOG_WHOM_TO_BLAME}"
145 - EOF
146 -
147 - keepdir /usr/lib/distcc
148 -
149 - dobin "${T}/distcc-config"
150 -
151 - if use gnome || use gtk; then
152 - einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui"
153 - einfo "This is to have a little sensability in naming schemes between distccmon programs"
154 - mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die
155 - dosym distccmon-gui /usr/bin/distccmon-gnome
156 - fi
157 -
158 - if use xinetd; then
159 - insinto /etc/xinetd.d
160 - newins "doc/example/xinetd" distcc
161 - fi
162 -
163 - insinto /usr/share/shadowman/tools
164 - newins - distcc <<<"${EPREFIX}/usr/lib/distcc/bin"
165 - newins - distccd <<<"${EPREFIX}/usr/lib/distcc"
166 -
167 - rm -r "${ED}/etc/default" || die
168 - rm "${ED}/etc/distcc/clients.allow" || die
169 - rm "${ED}/etc/distcc/commands.allow.sh" || die
170 -}
171 -
172 -pkg_postinst() {
173 - # remove the old paths when switching from libXX to lib
174 - if [[ $(get_libdir) != lib && ${SYMLINK_LIB} != yes && \
175 - -d ${EROOT%/}/usr/$(get_libdir)/distcc ]]; then
176 - rm -r -f "${EROOT%/}/usr/$(get_libdir)/distcc" || die
177 - fi
178 -
179 - if [[ ${ROOT} == / ]]; then
180 - eselect compiler-shadow update distcc
181 - eselect compiler-shadow update distccd
182 - fi
183 -
184 - use gnome && xdg_desktop_database_update
185 -
186 - elog
187 - elog "Tips on using distcc with Gentoo can be found at"
188 - elog "https://wiki.gentoo.org/wiki/Distcc"
189 - elog
190 - elog "distcc-pump is known to cause breakage with multiple packages."
191 - elog "Do NOT enable it globally."
192 - elog
193 - elog "To use the distccmon programs with Gentoo you should use this command:"
194 - elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-text 5"
195 -
196 - if use gnome || use gtk; then
197 - elog "Or:"
198 - elog "# DISTCC_DIR=\"${DISTCC_DIR:-${BUILD_PREFIX}/.distcc}\" distccmon-gnome"
199 - fi
200 -
201 - elog
202 - elog "***SECURITY NOTICE***"
203 - elog "Since distcc-3.3, whitelist is used for what distccd could execute. The whilelist"
204 - elog "has been generated by compiler-shadow distccd. To revert to the old behavior, "
205 - elog "you need to pass --make-me-a-botnet to distccd in /etc/conf.d/distccd."
206 - elog "Cf. https://github.com/distcc/distcc/pull/243."
207 -}
208 -
209 -pkg_prerm() {
210 - if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then
211 - eselect compiler-shadow remove distcc
212 - fi
213 -}
214 -
215 -pkg_postrm() {
216 - use gnome && xdg_desktop_database_update
217 -}