Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From e07133dbcf3c52e1ddd2f12797dcd16145269273 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Mon, 8 May 2017 03:54:12 -0400 |
| 4 | Subject: [PATCH 10/13] use oe variable to replace hardcoded dir |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 9 | --- |
| 10 | setup.py | 8 ++++---- |
| 11 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 12 | |
| 13 | diff --git a/setup.py b/setup.py |
| 14 | index 4d06a33..a994d06 100644 |
| 15 | --- a/setup.py |
| 16 | +++ b/setup.py |
| 17 | @@ -61,10 +61,10 @@ class blivet_sdist(sdist): |
| 18 | |
| 19 | |
| 20 | data_files = [ |
| 21 | - ('/etc/dbus-1/system.d', ['dbus/blivet.conf']), |
| 22 | - ('/usr/share/dbus-1/system-services', ['dbus/com.redhat.Blivet1.service']), |
| 23 | - ('/usr/libexec', ['dbus/blivetd']), |
| 24 | - ('/usr/lib/systemd/system', ['dbus/blivet.service']) |
| 25 | + (os.environ.get('sysconfdir')+'/dbus-1/system.d', ['dbus/blivet.conf']), |
| 26 | + (os.environ.get('datadir')+'/dbus-1/system-services', ['dbus/com.redhat.Blivet1.service']), |
| 27 | + (os.environ.get('libexecdir'), ['dbus/blivetd']), |
| 28 | + (os.environ.get('systemd_system_unitdir'), ['dbus/blivet.service']) |
| 29 | ] |
| 30 | |
| 31 | |
| 32 | -- |
| 33 | 2.7.4 |
| 34 | |