From 0355b944efb2c6e7e6a87b13457fa61085229047 Mon Sep 17 00:00:00 2001 From: Peter Hjalmarsson Date: Fri, 3 Jan 2014 11:21:45 +0100 Subject: [PATCH] Fix install with systemd Install the service file into DESTDIR and do not try to enable it. --- Makefile.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9ce9ee6..c29913b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -376,8 +376,7 @@ install_all: install_base cron/crontab sysstat \ su $(CRON_OWNER) -c "crontab cron/crontab"; \ fi if [ -x $(SYSTEMCTL) -a -d "$(SYSTEMD_UNIT_DIR)" ]; then \ - $(INSTALL_DATA) sysstat.service $(SYSTEMD_UNIT_DIR); \ - $(SYSTEMCTL) enable sysstat.service; \ + $(INSTALL_DATA) -D sysstat.service $(DESTDIR)$(SYSTEMD_UNIT_DIR); \ elif [ -d $(DESTDIR)$(INIT_DIR) ]; then \ $(INSTALL_BIN) sysstat $(DESTDIR)$(INIT_DIR)/sysstat; \ if [ -x $(CHKCONFIG) ]; then \ -- 1.8.5.2