public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/labone/
@ 2017-04-19 14:46 Andreas Hüttel
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Hüttel @ 2017-04-19 14:46 UTC (permalink / raw
  To: gentoo-commits

commit:     d408fb0bbcf75d13189635d26d50af9c8708e85d
Author:     Andreas K. Huettel <andreas.huettel <AT> ur <DOT> de>
AuthorDate: Wed Apr 19 14:09:48 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Apr 19 14:44:43 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d408fb0b

sci-electronics/labone: New package

 sci-electronics/labone/Manifest                  |  1 +
 sci-electronics/labone/labone-16.12.42529.ebuild | 74 ++++++++++++++++++++++++
 sci-electronics/labone/metadata.xml              |  8 +++
 3 files changed, 83 insertions(+)

diff --git a/sci-electronics/labone/Manifest b/sci-electronics/labone/Manifest
new file mode 100644
index 00000000000..73049156a1e
--- /dev/null
+++ b/sci-electronics/labone/Manifest
@@ -0,0 +1 @@
+DIST LabOneLinux64-16.12.42529.tar.gz 120562203 SHA256 c31db918afc031fbef440269e4707d461373cc4cb64c7dae9c5ca980ed5a002e SHA512 31068792ca4c2ab88490eacf35a84f8a2c31b330087ee91154e5ecdae63bcf557563c80e45af4a855df9d7d9a1d5b5a761ef5d957ce357368706307ea5ea196b WHIRLPOOL 6d4ff6b625b3e1a3d6c5483aab71e293eb56e3714d7bb7a7cba47d01d76e32150bb9a1e763249c6dadf9f0934b322b87730bbb55bb6bf25b6fbf05f0efdcecb9

diff --git a/sci-electronics/labone/labone-16.12.42529.ebuild b/sci-electronics/labone/labone-16.12.42529.ebuild
new file mode 100644
index 00000000000..8b14560bdd6
--- /dev/null
+++ b/sci-electronics/labone/labone-16.12.42529.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Platform independent instrument control for Zurich Instruments devices"
+HOMEPAGE="https://www.zhinst.com/labone"
+SRC_URI="https://www.zhinst.com/system/files/downloads/files/LabOneLinux64-${PV}.tar.gz"
+
+LICENSE="zi-labone"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+RESTRICT="mirror bindist"
+IUSE="minimal"
+
+QA_PREBUILT="*"
+
+RDEPEND=""
+
+S=${WORKDIR}/LabOneLinux64-${PV}
+
+src_install() {
+	local instPath=/opt/zi
+	local instrDir="LabOne64-${PV}"
+
+	if ! use minimal ; then
+
+		dodir ${instPath}/${instrDir}
+		for dir in API DataServer Documentation WebServer release_notes_16.12.txt ; do
+			cp -a "$dir" "${D}${instPath}/${instrDir}/" || die
+		done
+
+		dosym ../..${instPath}/${instrDir}/DataServer/ziServer /opt/bin/ziServer
+		dosym ../..${instPath}/${instrDir}/DataServer/ziDataServer /opt/bin/ziDataServer
+
+		echo "#!/bin/bash" > "${T}/startWebServer" || die
+		echo "${instPath}/${instrDir}/WebServer/ziWebServer -r ${instPath}/${instrDir}/WebServer/html --ip 127.0.0.1 --server-port 8004" >> "${T}/startWebServer" || die
+		chmod 755 "${T}/startWebServer" || die
+		exeinto /opt/bin
+		doexe "${T}/startWebServer"
+		elog For security reasons the startWebServer script listens on the localhost interface only.
+	else
+
+		insinto "${instPath}/${instrDir}/API/C/lib"
+		doins API/C/lib/*.so
+		insinto "${instPath}/${instrDir}/API/C/include"
+		doins API/C/lib/*.h
+
+	fi
+
+	dosym "../..${instPath}/${instrDir}/API/C/include/ziAPI.h" "usr/include/ziAPI.h"
+	dosym "../..${instPath}/${instrDir}/API/C/lib/libziAPI-linux64.so" "usr/$(get_libdir)/libziAPI-linux64.so"
+
+	# the udev integration
+
+	sed -e 's:/usr/bin/ziServer:/opt/bin/ziServer:g' -i Installer/udev/config || die
+	insinto /etc/ziService
+	doins Installer/udev/config
+	sed -e 's:/usr/bin/ziServer:/opt/bin/ziServer:g' -i Installer/udev/55-zhinst.rules || die
+	insinto /lib/udev/rules.d
+	doins Installer/udev/55-zhinst.rules
+	exeinto /opt/bin
+	doexe Installer/udev/ziService
+
+	# just to make sure
+	dosym ../../opt/bin/ziService usr/bin/ziService
+}
+
+pkg_prerm() {
+	if [[ -x /opt/bin/ziService ]]; then
+		einfo "Stopping ziService for safe unmerge"
+		/opt/bin/ziService stop
+	fi
+}

diff --git a/sci-electronics/labone/metadata.xml b/sci-electronics/labone/metadata.xml
new file mode 100644
index 00000000000..765a8e365b5
--- /dev/null
+++ b/sci-electronics/labone/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>dilfridge@gentoo.org</email>
+		<name>Andreas K. Huettel</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/labone/
@ 2017-04-19 17:04 Andreas Hüttel
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Hüttel @ 2017-04-19 17:04 UTC (permalink / raw
  To: gentoo-commits

commit:     c1eec5d497229ebb3f521ce102b324cff74c4249
Author:     Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 19 17:03:43 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Apr 19 17:04:01 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1eec5d4

sci-electronics/labone: Fix typo

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 sci-electronics/labone/labone-16.12.42529.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-electronics/labone/labone-16.12.42529.ebuild b/sci-electronics/labone/labone-16.12.42529.ebuild
index 8b14560bdd6..d0e0dd38e67 100644
--- a/sci-electronics/labone/labone-16.12.42529.ebuild
+++ b/sci-electronics/labone/labone-16.12.42529.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -44,7 +44,7 @@ src_install() {
 		insinto "${instPath}/${instrDir}/API/C/lib"
 		doins API/C/lib/*.so
 		insinto "${instPath}/${instrDir}/API/C/include"
-		doins API/C/lib/*.h
+		doins API/C/include/*.h
 
 	fi
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/labone/
@ 2021-11-09 14:13 Andreas K. Hüttel
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas K. Hüttel @ 2021-11-09 14:13 UTC (permalink / raw
  To: gentoo-commits

commit:     0353a26999a4380e1ac9e5eabcf2928167b876c7
Author:     Andreas K. Hüttel <andreas.huettel <AT> ur <DOT> de>
AuthorDate: Tue Nov  9 14:10:18 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Nov  9 14:13:25 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0353a269

sci-electronics/labone: Remove old

Closes: https://bugs.gentoo.org/750980
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sci-electronics/labone/Manifest                  |  1 -
 sci-electronics/labone/labone-16.12.42529.ebuild | 74 ------------------------
 2 files changed, 75 deletions(-)

diff --git a/sci-electronics/labone/Manifest b/sci-electronics/labone/Manifest
index fa395e14a4f..0c19990b3df 100644
--- a/sci-electronics/labone/Manifest
+++ b/sci-electronics/labone/Manifest
@@ -1,2 +1 @@
-DIST LabOneLinux64-16.12.42529.tar.gz 120562203 BLAKE2B 5d5e3816ad47e79b8b029b318f76b72908949fb4f92b5497d4b03abf5562144951d2a95832cdd2112df8922a9ea002a508f0d81c5f1fee3a017540dceb70233a SHA512 31068792ca4c2ab88490eacf35a84f8a2c31b330087ee91154e5ecdae63bcf557563c80e45af4a855df9d7d9a1d5b5a761ef5d957ce357368706307ea5ea196b
 DIST LabOneLinux64-21.08.20515.tar.gz 399058267 BLAKE2B 624c4dc4a01edb69f9b36a435744d10b3638c91c7ac0c1e9765cf913e605fe32d1935fa131d650f38a5b713df916d92b985ac5f6489b031bba9b6ec8a1370d4a SHA512 f229a885ea91cc518c4819ad76a928829eb1699603ba48fb745d4a99faca116b100831c17a48243922912c68de27b7938387677ffa2e996a122f36c33d0a205c

diff --git a/sci-electronics/labone/labone-16.12.42529.ebuild b/sci-electronics/labone/labone-16.12.42529.ebuild
deleted file mode 100644
index d0e0dd38e67..00000000000
--- a/sci-electronics/labone/labone-16.12.42529.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Platform independent instrument control for Zurich Instruments devices"
-HOMEPAGE="https://www.zhinst.com/labone"
-SRC_URI="https://www.zhinst.com/system/files/downloads/files/LabOneLinux64-${PV}.tar.gz"
-
-LICENSE="zi-labone"
-SLOT="0"
-KEYWORDS="-* ~amd64"
-RESTRICT="mirror bindist"
-IUSE="minimal"
-
-QA_PREBUILT="*"
-
-RDEPEND=""
-
-S=${WORKDIR}/LabOneLinux64-${PV}
-
-src_install() {
-	local instPath=/opt/zi
-	local instrDir="LabOne64-${PV}"
-
-	if ! use minimal ; then
-
-		dodir ${instPath}/${instrDir}
-		for dir in API DataServer Documentation WebServer release_notes_16.12.txt ; do
-			cp -a "$dir" "${D}${instPath}/${instrDir}/" || die
-		done
-
-		dosym ../..${instPath}/${instrDir}/DataServer/ziServer /opt/bin/ziServer
-		dosym ../..${instPath}/${instrDir}/DataServer/ziDataServer /opt/bin/ziDataServer
-
-		echo "#!/bin/bash" > "${T}/startWebServer" || die
-		echo "${instPath}/${instrDir}/WebServer/ziWebServer -r ${instPath}/${instrDir}/WebServer/html --ip 127.0.0.1 --server-port 8004" >> "${T}/startWebServer" || die
-		chmod 755 "${T}/startWebServer" || die
-		exeinto /opt/bin
-		doexe "${T}/startWebServer"
-		elog For security reasons the startWebServer script listens on the localhost interface only.
-	else
-
-		insinto "${instPath}/${instrDir}/API/C/lib"
-		doins API/C/lib/*.so
-		insinto "${instPath}/${instrDir}/API/C/include"
-		doins API/C/include/*.h
-
-	fi
-
-	dosym "../..${instPath}/${instrDir}/API/C/include/ziAPI.h" "usr/include/ziAPI.h"
-	dosym "../..${instPath}/${instrDir}/API/C/lib/libziAPI-linux64.so" "usr/$(get_libdir)/libziAPI-linux64.so"
-
-	# the udev integration
-
-	sed -e 's:/usr/bin/ziServer:/opt/bin/ziServer:g' -i Installer/udev/config || die
-	insinto /etc/ziService
-	doins Installer/udev/config
-	sed -e 's:/usr/bin/ziServer:/opt/bin/ziServer:g' -i Installer/udev/55-zhinst.rules || die
-	insinto /lib/udev/rules.d
-	doins Installer/udev/55-zhinst.rules
-	exeinto /opt/bin
-	doexe Installer/udev/ziService
-
-	# just to make sure
-	dosym ../../opt/bin/ziService usr/bin/ziService
-}
-
-pkg_prerm() {
-	if [[ -x /opt/bin/ziService ]]; then
-		einfo "Stopping ziService for safe unmerge"
-		/opt/bin/ziService stop
-	fi
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/labone/
@ 2023-04-03 20:36 Andreas K. Hüttel
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas K. Hüttel @ 2023-04-03 20:36 UTC (permalink / raw
  To: gentoo-commits

commit:     4bc6ac52f670b36d747cee528cfe61e10ee2576b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  3 20:36:14 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Mon Apr  3 20:36:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bc6ac52

sci-electronics/labone: add postinst and postrm

Closes: https://bugs.gentoo.org/843308
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 ...ne-21.08.20515-r1.ebuild => labone-21.08.20515-r2.ebuild} | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/sci-electronics/labone/labone-21.08.20515-r1.ebuild b/sci-electronics/labone/labone-21.08.20515-r2.ebuild
similarity index 95%
rename from sci-electronics/labone/labone-21.08.20515-r1.ebuild
rename to sci-electronics/labone/labone-21.08.20515-r2.ebuild
index 0c0c263143ff..679237f6487e 100644
--- a/sci-electronics/labone/labone-21.08.20515-r1.ebuild
+++ b/sci-electronics/labone/labone-21.08.20515-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -83,3 +83,13 @@ src_install() {
 
 	udev_dorules Installer/udev/55-zhinst.rules
 }
+
+pkg_postinst() {
+	xdg_pkg_postinst
+	udev_reload
+}
+
+pkg_postrm() {
+	xdg_pkg_postrm
+	udev_reload
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/labone/
@ 2023-05-23 19:41 Andreas K. Hüttel
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas K. Hüttel @ 2023-05-23 19:41 UTC (permalink / raw
  To: gentoo-commits

commit:     fe129a8df9fecb094ede36c8207794bdd58282dc
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Tue May 23 19:40:55 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue May 23 19:41:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe129a8d

sci-electronics/labone: add 23.02.42414

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sci-electronics/labone/Manifest                  |  1 +
 sci-electronics/labone/labone-23.02.42414.ebuild | 97 ++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

diff --git a/sci-electronics/labone/Manifest b/sci-electronics/labone/Manifest
index 0c19990b3df3..3eca86897a17 100644
--- a/sci-electronics/labone/Manifest
+++ b/sci-electronics/labone/Manifest
@@ -1 +1,2 @@
 DIST LabOneLinux64-21.08.20515.tar.gz 399058267 BLAKE2B 624c4dc4a01edb69f9b36a435744d10b3638c91c7ac0c1e9765cf913e605fe32d1935fa131d650f38a5b713df916d92b985ac5f6489b031bba9b6ec8a1370d4a SHA512 f229a885ea91cc518c4819ad76a928829eb1699603ba48fb745d4a99faca116b100831c17a48243922912c68de27b7938387677ffa2e996a122f36c33d0a205c
+DIST LabOneLinux64-23.02.42414.tar.gz 509402101 BLAKE2B 3bd083830b6dd286ba58227fcfaaed9ec3f7c7ceae8c3eb6b92976bb6b13b9a55389a67da4c71897b4a38200b2e833b4f197e738fff17281c3d0f5c7b3f65226 SHA512 5b4dd91f37b2c3212e9c93e7492756e8534f23d85a12af33cae7ce8150fa182286f37e2d4f3ca7369cb13613b24146e1ba0bb5d889db37634e561b0f921be58a

diff --git a/sci-electronics/labone/labone-23.02.42414.ebuild b/sci-electronics/labone/labone-23.02.42414.ebuild
new file mode 100644
index 000000000000..cecf87806ce5
--- /dev/null
+++ b/sci-electronics/labone/labone-23.02.42414.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg desktop systemd udev
+
+DESCRIPTION="Platform independent instrument control for Zurich Instruments devices"
+HOMEPAGE="https://www.zhinst.com/labone"
+
+# Seriously...
+SRC_URI="https://pub-a579c9a7a5ee41a2ba57327584974c85.r2.dev/${PV}/LabOneLinux64-${PV}.tar.gz"
+
+LICENSE="zi-labone"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+RESTRICT="mirror bindist"
+IUSE="minimal"
+
+QA_PREBUILT="*"
+
+RDEPEND=""
+
+S=${WORKDIR}/LabOneLinux64-${PV}
+
+src_install() {
+	local application_directory=/opt/zi
+	local installation_directory="${application_directory}/LabOne64-${PV}"
+
+	if ! use minimal ; then
+
+		# the applications
+
+		dodir ${installation_directory}
+		for dir in API DataServer Firmware Documentation WebServer ; do
+			mv "$dir" "${D}${installation_directory}/" || die
+		done
+
+		cp "release_notes_$(ver_cut 1-2).html" "${D}${installation_directory}/" || die
+
+		dosym ../..${installation_directory}/DataServer/ziServer /opt/bin/ziServer
+		dosym ../..${installation_directory}/DataServer/ziDataServer /opt/bin/ziDataServer
+
+		# the services
+
+		# LabOne comes with systemd support.
+
+		local service
+		for service in labone-data-server hf2-data-server ; do
+			sed -e 's:/usr/local/bin/:/opt/bin/:g' -i Installer/systemd/${service}.service || die
+			systemd_dounit Installer/systemd/${service}.service
+		done
+
+		# For OpenRC we need to do our own thing...
+
+		for service in labone-data-server hf2-data-server ; do
+			doinitd "${FILESDIR}/${service}"
+			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.
+
+		newicon "${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"
+
+		keepdir /var/log/labone
+		fowners nobody /var/log/labone
+	else
+
+		insinto "${installation_directory}/API/C/lib"
+		doins API/C/lib/*.so
+		insinto "${installation_directory}/API/C/include"
+		doins API/C/include/*.h
+
+	fi
+
+	dosym "../..${installation_directory}/API/C/include/ziAPI.h" "usr/include/ziAPI.h"
+	dosym "../..${installation_directory}/API/C/lib/libziAPI-linux64.so" "usr/$(get_libdir)/libziAPI-linux64.so"
+
+	udev_dorules Installer/udev/55-zhinst.rules
+}
+
+pkg_postinst() {
+	xdg_pkg_postinst
+	udev_reload
+}
+
+pkg_postrm() {
+	xdg_pkg_postrm
+	udev_reload
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-23 19:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-03 20:36 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/labone/ Andreas K. Hüttel
  -- strict thread matches above, loose matches on Subject: below --
2023-05-23 19:41 Andreas K. Hüttel
2021-11-09 14:13 Andreas K. Hüttel
2017-04-19 17:04 Andreas Hüttel
2017-04-19 14:46 Andreas Hüttel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox