]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - collecty/patches/0001-Install-daemon-to-usr-sbin.patch
collecty: New package.
[people/amarx/ipfire-3.x.git] / collecty / patches / 0001-Install-daemon-to-usr-sbin.patch
CommitLineData
18de5133
MT
1From 82c136f87bb13aea4f27b669ee98ff7e798ad8b3 Mon Sep 17 00:00:00 2001
2From: Michael Tremer <michael.tremer@ipfire.org>
3Date: Sat, 1 Sep 2012 18:56:19 +0000
4Subject: [PATCH] Install daemon to /usr/sbin.
5
6---
7 Makefile | 5 ++++-
8 collecty.service | 2 +-
9 2 files changed, 5 insertions(+), 2 deletions(-)
10
11diff --git a/Makefile b/Makefile
12index 7d679af..6fcc787 100644
13--- a/Makefile
14+++ b/Makefile
15@@ -24,6 +24,7 @@ PACKAGE_VERSION = 0.0.2
16 DESTDIR =
17 PREFIX = /usr
18 BINDIR = $(PREFIX)/bin
19+SBINDIR = $(PREFIX)/sbin
20 LOCALEDIR = $(PREFIX)/share/locale
21 UNITDIR = $(PREFIX)/lib/systemd/system
22
23@@ -55,7 +56,9 @@ dist:
24 install: $(MO_FILES)
25 -mkdir -pv $(PYTHON_DIR)
26 cp -rvf collecty $(PYTHON_DIR)
27- install -v -m 755 collectyd $(DESTDIR)$(BINDIR)
28+
29+ -mkdir -pv $(DESTDIR)$(SBINDIR)
30+ install -v -m 755 collectyd $(DESTDIR)$(SBINDIR)
31
32 # Install configuration
33 -mkdir -pv $(DESTDIR)/etc/$(PACKAGE_NAME)
34diff --git a/collecty.service b/collecty.service
35index ac4a893..78bd26e 100644
36--- a/collecty.service
37+++ b/collecty.service
38@@ -2,7 +2,7 @@
39 Description=collecty - A system data collecting daemon
40
41 [Service]
42-ExecStart=/usr/bin/collectyd
43+ExecStart=/usr/sbin/collectyd
44 ExecReload=/bin/kill -HUP $MAINPID
45
46 [Install]
47--
481.7.8.2
49