summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-08-10 22:00:56 +0200
committerMichał Górny <mgorny@gentoo.org>2017-08-26 15:36:54 +0200
commitfc3b00694bc89671f1356062dc658dac0af95ec1 (patch)
tree62928282623f0e3eb51c9ce1778eeedea4965c90 /sys-devel/distcc/distcc-3.2_rc1-r5.ebuild
parentsys-devel/distcc: Install dev-util/shadowman data file (diff)
downloadgentoo-fc3b00694bc89671f1356062dc658dac0af95ec1.tar.gz
gentoo-fc3b00694bc89671f1356062dc658dac0af95ec1.tar.bz2
gentoo-fc3b00694bc89671f1356062dc658dac0af95ec1.zip
sys-devel/distcc: Use dev-util/shadowman for postinst/prerm
Diffstat (limited to 'sys-devel/distcc/distcc-3.2_rc1-r5.ebuild')
-rw-r--r--sys-devel/distcc/distcc-3.2_rc1-r5.ebuild24
1 files changed, 10 insertions, 14 deletions
diff --git a/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild b/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild
index c91826e107c4..2107168d7cef 100644
--- a/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild
+++ b/sys-devel/distcc/distcc-3.2_rc1-r5.ebuild
@@ -14,8 +14,8 @@ SRC_URI="https://distcc.googlecode.com/files/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="crossdev gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome gssapi gtk hardened ipv6 selinux xinetd zeroconf"
RESTRICT="test"
@@ -35,6 +35,7 @@ DEPEND="${CDEPEND}
virtual/pkgconfig"
RDEPEND="${CDEPEND}
!net-misc/pump
+ dev-util/shadowman
>=sys-devel/gcc-config-1.4.1
selinux? ( sec-policy/selinux-distcc )
xinetd? ( sys-apps/xinetd )"
@@ -155,12 +156,8 @@ src_install() {
}
pkg_postinst() {
- if [ -x "${EPREFIX}/usr/bin/distcc-config" ] ; then
- if use crossdev; then
- "${EPREFIX}/usr/bin/distcc-config" --update-masquerade-with-crossdev
- else
- "${EPREFIX}/usr/bin/distcc-config" --update-masquerade
- fi
+ if [[ ${ROOT} == / ]]; then
+ eselect compiler-shadow update distcc
fi
use gnome && xdg_desktop_database_update
@@ -190,13 +187,12 @@ pkg_postinst() {
elog
}
-pkg_postrm() {
- # delete the masquerade directory
- if [ ! -f "${EPREFIX}/usr/bin/distcc" ] ; then
- einfo "Remove masquerade symbolic links."
- rm "${EPREFIX}${DCCC_PATH}/"*{cc,c++,gcc,g++}
- rmdir "${EPREFIX}${DCCC_PATH}"
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]]; then
+ eselect compiler-shadow remove distcc
fi
+}
+pkg_postrm() {
use gnome && xdg_desktop_database_update
}