]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pakfire/patches/0018-Fix-installing-unit-files.patch
python: Update to 2.7.5.
[people/ms/ipfire-3.x.git] / pakfire / patches / 0018-Fix-installing-unit-files.patch
1 From cf1301293b1eea70faa2dc47f4c788aa7e52960c Mon Sep 17 00:00:00 2001
2 From: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Mon, 24 Jun 2013 21:34:45 +0000
4 Subject: [PATCH 18/19] Fix installing unit files.
5
6 ---
7 Makeconfig | 3 +++
8 Makefile | 5 ++++-
9 2 files changed, 7 insertions(+), 1 deletion(-)
10
11 diff --git a/Makeconfig b/Makeconfig
12 index b9f7898..ec6a2f2 100644
13 --- a/Makeconfig
14 +++ b/Makeconfig
15 @@ -50,3 +50,6 @@ TOP := $(dir $(lastword $(MAKEFILE_LIST)))
16 # A list of all files that contain translations and need to
17 # be indexed.
18 TRANS_FILES = $(PYTHON_FILES) python/src/*.c
19 +
20 +# systemd unit files
21 +UNIT_FILES = $(wildcard systemd/*.service)
22 diff --git a/Makefile b/Makefile
23 index 00ea0fa..2a1497b 100644
24 --- a/Makefile
25 +++ b/Makefile
26 @@ -40,7 +40,10 @@ install: build
27
28 # Install systemd file.
29 -mkdir -pv $(DESTDIR)/usr/lib/systemd/system
30 - cp -vf systemd/*.systemd $(DESTDIR)/usr/lib/systemd/system
31 + for file in $(UNIT_FILES); do \
32 + install -v -m 644 $${file} \
33 + $(DESTDIR)/usr/lib/systemd/system || exit 1; \
34 + done
35
36 .PHONY: check
37 check: all
38 --
39 1.8.1.4
40