]> git.ipfire.org Git - pakfire.git/commitdiff
Fix installing unit files.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Jun 2013 21:34:45 +0000 (21:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 24 Jun 2013 21:34:45 +0000 (21:34 +0000)
Makeconfig
Makefile

index b9f7898daa27a2acf36c8fd89f14a0af5314e686..ec6a2f25dea7eb3bcd923dd77c8483fd8aba6f7e 100644 (file)
@@ -50,3 +50,6 @@ TOP := $(dir $(lastword $(MAKEFILE_LIST)))
 # A list of all files that contain translations and need to
 # be indexed.
 TRANS_FILES  = $(PYTHON_FILES) python/src/*.c
+
+# systemd unit files
+UNIT_FILES = $(wildcard systemd/*.service)
index 00ea0fa0cfb6a06158f4301af5806f7ff53fef49..2a1497be9fea4cd465d81cf7d399b00a8d89138e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,7 +40,10 @@ install: build
 
        # Install systemd file.
        -mkdir -pv $(DESTDIR)/usr/lib/systemd/system
-       cp -vf systemd/*.systemd $(DESTDIR)/usr/lib/systemd/system
+       for file in $(UNIT_FILES); do \
+               install -v -m 644 $${file} \
+                       $(DESTDIR)/usr/lib/systemd/system || exit 1; \
+       done
 
 .PHONY: check
 check: all