From 370ad9c6d2568999e63354571965767ff889b39e Mon Sep 17 00:00:00 2001 From: Shady Squirrel Date: Sat, 14 Jul 2018 22:23:50 +0200 Subject: [PATCH] Fix systemd service install for builds with DESTDIR defined (#68) --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f79a8d4b..6658d254 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,10 @@ install: all chmod 0775 $(DESTDIR)/var/log/onedrive install -D onedrive $(DESTDIR)$(PREFIX)/bin/onedrive install -D -m 644 logrotate/onedrive.logrotate $(DESTDIR)/etc/logrotate.d/onedrive - cp -af *.service $(DESTDIR)/usr/lib/systemd/user/ + mkdir -p $(DESTDIR)/usr/lib/systemd/user/ + chown root.root $(DESTDIR)/usr/lib/systemd/user/ + chmod 0755 $(DESTDIR)/usr/lib/systemd/user/ + cp -raf *.service $(DESTDIR)/usr/lib/systemd/user/ chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive*.service onedrive: version $(SOURCES)