Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Commit 79a5d89

Browse files
committed
rvi: change install path from /opt to /usr/share
We updated the branch we fetch from "develop" to "install_to_usr" because there where a lot of hardcoded paths pointing to /opt. Once this is merged upstream we drop the SRC_URI change. Also adjust install paths (/etc/opt/rvi -> /etc/rvi), which was changed on "install_to_usr" branch [GDP-611] Prepare system for libostree Signed-off-by: Mirza Krak <mirza.krak@endian.se>
1 parent 6bd36ba commit 79a5d89

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

meta-genivi-dev/meta-rvi/recipes-connectivity/rvi/files/rvi.service

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ After=getty@tty2.service
77
[Service]
88
Environment="HOME=/opt/rvi_core"
99
Environment="RVI_PORT=8900"
10-
Environment="CONFIG=/etc/opt/rvi/rvi.config"
10+
Environment="CONFIG=/etc/rvi/rvi.config"
1111
Environment="RVI_BACKEND=38.101.164.230"
1212

1313
StandardOutput=journal
1414
StandardError=journal
15-
ExecStart=/bin/sh -c "RVI_MYIP=$(/sbin/ip route | /usr/bin/awk '/default/ { print $3 }') CONFIG=/etc/opt/rvi/rvi.config RVI_BACKEND=38.101.164.230 /opt/rvi_core/rvi_ctl -c /etc/opt/rvi/rvi.config console"
16-
ExecStop=/opt/rvi_core/rvi_ctl stop
15+
ExecStart=/bin/sh -c "RVI_MYIP=$(/sbin/ip route | /usr/bin/awk '/default/ { print $3 }') CONFIG=/etc/rvi/rvi.config RVI_BACKEND=38.101.164.230 /usr/share/rvi_core/rvi_ctl -c /etc/rvi/rvi.config console"
16+
ExecStop=/usr/share/rvi_core/rvi_ctl stop
1717
GuessMainPID=yes
1818
RemainAfterExit=yes
1919

meta-genivi-dev/meta-rvi/recipes-connectivity/rvi/rvi_git.bbappend

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
2-
SRC_URI += "\
2+
3+
# NOTE! install_to_usr branch might be temporary.
4+
# When updating next time, consider changing to master or develop
5+
# (assuming that installing to /usr has been merged, that is)
6+
SRC_URI = "\
7+
git://github.com/GENIVI/rvi_core;branch=install_to_usr;name=rvi;protocol=https \
38
file://rvi.service \
49
file://device_id \
510
file://0001-rvi_ctl.template-get-rid-of-dependecy-on-install.patch \
611
"
712

13+
RVI_DIR = "${datadir}/rvi_core"
14+
815
do_install_append () {
916
install -d ${D}${systemd_system_unitdir}
1017
install -m 0644 ${WORKDIR}/rvi.service ${D}${systemd_system_unitdir}
11-
install -m 0644 ${WORKDIR}/device_id ${D}${sysconfdir}/opt/rvi/device_id
18+
19+
# install RVI default configuration file
20+
install -d ${D}${sysconfdir}/rvi/
21+
install -m 0644 ${WORKDIR}/device_id ${D}${sysconfdir}/rvi/device_id
22+
install -m 0644 ./priv/config/rvi_yocto.config ${D}${sysconfdir}/rvi.config
23+
1224
rm ${D}${sysconfdir}/init.d/rvi
25+
rm -r ${D}${sysconfdir}/opt
1326
}
1427

1528
inherit systemd
@@ -21,3 +34,5 @@ pkg_postinst_${PN} () {
2134
#!/bin/sh -e
2235
true
2336
}
37+
38+
FILES_${PN} += "${datadir}/rvi_core"

0 commit comments

Comments
 (0)