summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2016-09-22 02:09:44 +0200
committerThomas Deutschmann <whissi@gentoo.org>2016-09-22 02:09:44 +0200
commita7eab628e51515fc91489b4084813714704d2bdf (patch)
tree0ef753f9cb470577a3d18854fe824820d2bdc5dd /app-admin/collectd
parentapp-admin/collectd: Bump to v5.6.0 (diff)
downloadgentoo-a7eab628e51515fc91489b4084813714704d2bdf.tar.gz
gentoo-a7eab628e51515fc91489b4084813714704d2bdf.tar.bz2
gentoo-a7eab628e51515fc91489b4084813714704d2bdf.zip
app-admin/collectd: Fix systemd unit name
Package-Manager: portage-2.3.1
Diffstat (limited to 'app-admin/collectd')
-rw-r--r--app-admin/collectd/collectd-5.6.0.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/app-admin/collectd/collectd-5.6.0.ebuild b/app-admin/collectd/collectd-5.6.0.ebuild
index e64baa96dbb0..8bd07626c061 100644
--- a/app-admin/collectd/collectd-5.6.0.ebuild
+++ b/app-admin/collectd/collectd-5.6.0.ebuild
@@ -280,12 +280,10 @@ src_prepare() {
# There's some strange prefix handling in the default config file, resulting in
# paths like "/usr/var/..."
- #sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die
-
- #sed -i -e "s:/etc/collectd/collectd.conf:/etc/collectd.conf:g" contrib/collectd.service || die
+ sed -i -e "s:@prefix@/var:/var:g" src/collectd.conf.in || die
# fix installdirs for perl, bug 444360
- #sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die
+ sed -i -e 's/INSTALL_BASE=$(DESTDIR)$(prefix) //' bindings/Makefile.am || die
if use collectd_plugins_java; then
# Set javac -source and -target flags according to (R)DEPEND.
@@ -450,7 +448,7 @@ src_install() {
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
- systemd_dounit "contrib/systemd.${PN}.service"
+ systemd_newunit "contrib/systemd.${PN}.service" ${PN}.service
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}.logrotate" ${PN}