04680bb10f
Request inclusion of package with hardware project before submitting to Factory OBS-URL: https://build.opensuse.org/request/show/178908 OBS-URL: https://build.opensuse.org/package/show/hardware/numad?expand=0&rev=1
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From 746214b0903025b4d36b3fffe915d02bb72a0b47 Mon Sep 17 00:00:00 2001
|
|
From: Mel Gorman <mgorman@suse.de>
|
|
Date: Thu, 23 May 2013 00:16:27 +0100
|
|
Subject: [PATCH] Install numad to sbin
|
|
|
|
numad requires root privileges so install it to sbin
|
|
|
|
Signed-off-by: Mel Gorman <mgorman@suse.de>
|
|
---
|
|
Makefile | 4 ++--
|
|
numad.service | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index f1e64cc..07539d5 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -41,9 +41,9 @@ RANLIB ?= ranlib
|
|
# BB_FIXME MANPAGES := numa.3 numactl.8 numastat.8 migratepages.8 migspeed.8
|
|
|
|
install: numad
|
|
- mkdir -p ${prefix}/bin
|
|
+ mkdir -p ${prefix}/sbin
|
|
mkdir -p ${prefix}/share/man/man8
|
|
- install -m 0755 numad ${prefix}/bin
|
|
+ install -m 0755 numad ${prefix}/sbin
|
|
install -m 0644 numad.8 ${prefix}/share/man/man8
|
|
|
|
clean:
|
|
diff --git a/numad.service b/numad.service
|
|
index 478559a..3f096d8 100644
|
|
--- a/numad.service
|
|
+++ b/numad.service
|
|
@@ -5,7 +5,7 @@ After=syslog.target
|
|
[Service]
|
|
Type=forking
|
|
EnvironmentFile=/etc/numad.conf
|
|
-ExecStart=/usr/bin/numad -i $INTERVAL
|
|
+ExecStart=/usr/sbin/numad -i $INTERVAL
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|