From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F26C21382C5 for ; Tue, 20 Mar 2018 14:47:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08787E0916; Tue, 20 Mar 2018 14:47:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF8E6E0916 for ; Tue, 20 Mar 2018 14:47:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02372335C2C for ; Tue, 20 Mar 2018 14:47:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B6562216 for ; Tue, 20 Mar 2018 14:47:52 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1521557207.d1377aaa818973deae073a82bdd57e8aa0601ac5.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/distcc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/distcc/distcc-3.3.ebuild X-VCS-Directories: sys-devel/distcc/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: d1377aaa818973deae073a82bdd57e8aa0601ac5 X-VCS-Branch: master Date: Tue, 20 Mar 2018 14:47:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4ce5a3f7-b959-4986-80d3-6a5640e89d6f X-Archives-Hash: 3a4e0fa46e098465496bc3200285d50f commit: d1377aaa818973deae073a82bdd57e8aa0601ac5 Author: Benda Xu gentoo org> AuthorDate: Tue Mar 20 14:46:11 2018 +0000 Commit: Benda XU gentoo org> CommitDate: Tue Mar 20 14:46:47 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1377aaa sys-devel/distcc: install distccd whitelist by shadowman. - remove redundant "|| die". - fix the libdir names. Closes: https://bugs.gentoo.org/650986 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sys-devel/distcc/distcc-3.3.ebuild | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/sys-devel/distcc/distcc-3.3.ebuild b/sys-devel/distcc/distcc-3.3.ebuild index 4a7e74e0c42..b088b559a6a 100644 --- a/sys-devel/distcc/distcc-3.3.ebuild +++ b/sys-devel/distcc/distcc-3.3.ebuild @@ -74,7 +74,7 @@ src_prepare() { -e "s:@libdir@:/usr/$(get_libdir):" \ "${FILESDIR}/3.2/distcc-config" > "${T}/distcc-config" || die - hprefixify update-distcc-symlinks.py src/{serve,daemon}.c + hprefixify -e "s,/lib/,/$(get_libdir)/," update-distcc-symlinks.py src/{serve,daemon}.c } src_configure() { @@ -109,7 +109,7 @@ src_install() { sed -i '/ExecStart/ s|$| --zeroconf|' "${D}$(systemd_get_systemunitdir)"/distccd.service || die fi - doconfd "${T}/distccd" || die + doconfd "${T}/distccd" cat > "${T}/02distcc" <<-EOF || die # This file is managed by distcc-config; use it to change these settings. @@ -123,26 +123,27 @@ src_install() { DISTCC_ENABLE_DISCREPANCY_EMAIL="${DISTCC_ENABLE_DISCREPANCY_EMAIL}" DCC_EMAILLOG_WHOM_TO_BLAME="${DCC_EMAILLOG_WHOM_TO_BLAME}" EOF - doenvd "${T}/02distcc" || die + doenvd "${T}/02distcc" - keepdir "${DCCC_PATH}" || die + keepdir "${DCCC_PATH%bin}" - dobin "${T}/distcc-config" || die + dobin "${T}/distcc-config" if use gnome || use gtk; then einfo "Renaming /usr/bin/distccmon-gnome to /usr/bin/distccmon-gui" einfo "This is to have a little sensability in naming schemes between distccmon programs" mv "${ED}/usr/bin/distccmon-gnome" "${ED}/usr/bin/distccmon-gui" || die - dosym distccmon-gui /usr/bin/distccmon-gnome || die + dosym distccmon-gui /usr/bin/distccmon-gnome fi if use xinetd; then - insinto /etc/xinetd.d || die - newins "doc/example/xinetd" distcc || die + insinto /etc/xinetd.d + newins "doc/example/xinetd" distcc fi insinto /usr/share/shadowman/tools newins - distcc <<<"${EPREFIX}${DCCC_PATH}" + newins - distccd <<<"${EPREFIX}${DCCC_PATH%bin}" rm -r "${ED}/etc/default" || die rm "${ED}/etc/distcc/clients.allow" || die @@ -152,6 +153,7 @@ src_install() { pkg_postinst() { if [[ ${ROOT} == / ]]; then eselect compiler-shadow update distcc + eselect compiler-shadow update distccd fi use gnome && xdg_desktop_database_update @@ -176,9 +178,9 @@ pkg_postinst() { elog elog "***SECURITY NOTICE***" elog "Since distcc-3.3, whitelist is used for what distccd could execute. The whilelist" - elog "has to be generated manually by invoking \`update-distcc-symlinks\`. To revert" - elog "to the old behavior, you need to pass --make-me-a-botnet to distccd in" - elog "/etc/conf.d/distccd. Cf. https://github.com/distcc/distcc/pull/243." + elog "has been generated by compiler-shadow distccd. To revert to the old behavior, " + elog "you need to pass --make-me-a-botnet to distccd in elog /etc/conf.d/distccd." + elog "Cf. https://github.com/distcc/distcc/pull/243." } pkg_prerm() {