diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-16 13:15:25 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-16 13:15:25 -0400 |
commit | 2cd5a18a03d679dc5f667e1402762cb741c5c122 (patch) | |
tree | 92705cf5c9959c6a6c853c08c9cb7984335e31e5 | |
parent | c726476b2584f9d37e73f9417c9a1214e81b1662 (diff) |
Don't hardcode sbindir in the .service files
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | parabolaweb-reporead-inotify.service.in (renamed from parabolaweb-reporead-inotify.service) | 2 | ||||
-rw-r--r-- | parabolaweb.service.in (renamed from parabolaweb.service) | 2 |
4 files changed, 6 insertions, 2 deletions
@@ -1 +1,2 @@ depends.txt +*.service @@ -16,6 +16,9 @@ install: \ depends.txt: list-depends depends_static.txt bash $< > $@ +%.service: %.service.in + sed 's|@sbindir@|$(sbindir)|' < $< > $@ + $(DESTDIR)$(sbindir)/%: % install -Dm755 $< $@ diff --git a/parabolaweb-reporead-inotify.service b/parabolaweb-reporead-inotify.service.in index 243fce7..099db8d 100644 --- a/parabolaweb-reporead-inotify.service +++ b/parabolaweb-reporead-inotify.service.in @@ -5,7 +5,7 @@ Description=ParabolaWeb reporead_inotify daemon [Service] Type=simple -ExecStart=/usr/sbin/parabolaweb-reporead-inotify +ExecStart=@sbindir@/parabolaweb-reporead-inotify [Install] WantedBy=multi-user.target diff --git a/parabolaweb.service b/parabolaweb.service.in index 011f3de..e5a06ce 100644 --- a/parabolaweb.service +++ b/parabolaweb.service.in @@ -5,7 +5,7 @@ Description=ParabolaWeb [Service] Type=simple -ExecStart=/usr/sbin/parabolaweb-fcgi daemonize=false +ExecStart=@sbindir@/parabolaweb-fcgi daemonize=false [Install] WantedBy=multi-user.target |