sys-devel/distcc: Fix hardcoded systemd path, #625478
authorMichał Górny <mgorny@gentoo.org>
Thu, 17 Aug 2017 07:36:11 +0000 (09:36 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 17 Aug 2017 07:44:20 +0000 (09:44 +0200)
sys-devel/distcc/distcc-3.2_rc1-r4.ebuild

index 50e6f33282664f8b51eab167f98e49106c0daee4..94a42143b8a85eb5a21438067de0ffe4b8b6b412 100644 (file)
@@ -114,7 +114,7 @@ src_install() {
                DISTCCD_OPTS="\${DISTCCD_OPTS} --zeroconf"
                EOF
 
-               sed -i '/ExecStart/ s|$| --zeroconf|' "${ED}"/usr/lib/systemd/system/distccd.service || die
+               sed -i '/ExecStart/ s|$| --zeroconf|' "${D}$(systemd_get_systemunitdir)"/distccd.service || die
        fi
        doconfd "${T}/distccd" || die