diff options
author | 2021-11-09 14:45:37 +0100 | |
---|---|---|
committer | 2021-11-09 14:45:37 +0100 | |
commit | e81c8180eb034db7c0266aaa0b9388b93709445c (patch) | |
tree | 75bd36dabf6a529666333f32d62cfbff9f627b8f | |
parent | sci-electronics/labone: Fix another symlink (diff) | |
download | dilfridge-e81c8180eb034db7c0266aaa0b9388b93709445c.tar.gz dilfridge-e81c8180eb034db7c0266aaa0b9388b93709445c.tar.bz2 dilfridge-e81c8180eb034db7c0266aaa0b9388b93709445c.zip |
More iprovements, web server start script
Signed-off-by: Andreas K. Hüttel <andreas.huettel@ur.de>
-rw-r--r-- | sci-electronics/labone/labone-21.08.20515.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sci-electronics/labone/labone-21.08.20515.ebuild b/sci-electronics/labone/labone-21.08.20515.ebuild index 94d28c1..9df4fc8 100644 --- a/sci-electronics/labone/labone-21.08.20515.ebuild +++ b/sci-electronics/labone/labone-21.08.20515.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit systemd udev +inherit xdg systemd udev DESCRIPTION="Platform independent instrument control for Zurich Instruments devices" HOMEPAGE="https://www.zhinst.com/labone" @@ -38,7 +38,6 @@ src_install() { dosym ../..${installation_directory}/DataServer/ziServer /opt/bin/ziServer dosym ../..${installation_directory}/DataServer/ziDataServer /opt/bin/ziDataServer - dosym ../..${installation_directory}/WebServer/ziWebServer /opt/bin/ziWebServer # the services @@ -57,6 +56,17 @@ src_install() { doconfd "${FILESDIR}/${service}.conf" done + echo "#!/bin/bash" > "${T}/startziWebServer" || die + echo "${installation_directory}/WebServer/ziWebServer -r ${installation_directory}/WebServer/html --ip 127.0.0.1 --server-port 8004 -a 1" '$@ &' >> "${T}/startziWebServer" || die + chmod 755 "${T}/startziWebServer" || die + exeinto /opt/bin + doexe "${T}/startziWebServer" + elog For security reasons the startziWebServer script listens on the localhost interface only. + + doicon "${D}${installation_directory}/WebServer/html/images/favicons/firefox_app_128x128.png" zi-labone.png + + make_desktop_entry /opt/bin/startziWebServer "ZI LabOne" zi-labone "Science;Physics;Engineering" + else insinto "${installation_directory}/API/C/lib" |