summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGunnar Andersson <gandersson@genivi.org>2018-05-30 16:19:10 +0200
committerGunnar Andersson <gandersson@genivi.org>2018-07-27 16:33:10 +0200
commit90f8589f899e924e3c1a9f167897d1f1c2440b49 (patch)
tree2cc7651727901de6037f2f1c377ee610830781ad /Makefile
parentd63dd1c7c9659a2d99a7f1a4f47906a01f5619ae (diff)
downloadrvi_core-90f8589f899e924e3c1a9f167897d1f1c2440b49.tar.gz
Change all paths from /opt to /usr/shareinstall_to_usr
/opt can't be used in an normal OS-tree compatible layout - program files should now reside under /usr. /etc/opt/<rvi config files> changed to remove opt which looks odd there anyway: --> /etc/rvi/<config files>. Also moved default log location to /run/log/rvi_core because ${target_dir}/log is not adequate when the installation (target) dir is read-only. Note that /run is non-persistent, so /var/log might be preferred later. Signed-off-by: Gunnar Andersson <gandersson@genivi.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4157863..b3cc27e 100644
--- a/Makefile
+++ b/Makefile
@@ -172,7 +172,7 @@ ifndef STRIPPATH
-r priv/certificates/insecure_root_cert.crt \
-d priv/certificates/insecure_device_cert.crt \
-c priv/credentials/insecure_credential.jwt \
- $(DESTDIR)/opt/rvi_core
+ $(DESTDIR)/usr/share/rvi_core
else
./scripts/rvi_install \
-k priv/keys/insecure_device_key.pem \
@@ -180,8 +180,8 @@ else
-d priv/certificates/insecure_device_cert.crt \
-c priv/credentials/insecure_credential.jwt \
-s $(STRIPPATH) \
- $(DESTDIR)/opt/rvi_core
+ $(DESTDIR)/usr/share/rvi_core
endif
- install -m 0755 -d $(DESTDIR)/etc/opt/rvi/
- install -m 0644 priv/config/rvi_sample.config $(DESTDIR)/etc/opt/rvi/rvi_sample.config
+ install -m 0755 -d $(DESTDIR)/etc/rvi/
+ install -m 0644 priv/config/rvi_sample.config $(DESTDIR)/etc/rvi/rvi_sample.config