From b571a3c4169f7eccae98825dba7d033a4fe17720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ctibor=20Bran=C4=8D=C3=ADk?= Date: Mon, 5 Apr 2021 21:39:38 +0200 Subject: Add overlay.xml and repos.conf files and update install guide --- Documentation/README.indilib-drivers | 52 ++++++++++++++--------------------- overlay.xml | 14 ++++++++++ repos.conf | 5 ++++ sci-libs/indilib-drivers/metadata.xml | 12 ++++---- 4 files changed, 46 insertions(+), 37 deletions(-) create mode 100644 overlay.xml create mode 100644 repos.conf diff --git a/Documentation/README.indilib-drivers b/Documentation/README.indilib-drivers index ff703ad..2baa735 100644 --- a/Documentation/README.indilib-drivers +++ b/Documentation/README.indilib-drivers @@ -1,55 +1,42 @@ INDILIB 3rd PARTY DRIVERS INSTALLATION GUIDE -0. Login as root or use sudo. +0. You have to add ebuild repository (overlay) on top of your standard portage tree. You can read about it on https://wiki.gentoo.org/wiki/Ebuild_repository. -1. Install layman to manage overlays if don't have this tool already. -sudo emerge -v app-portage/layman +1. Install overlay using one of these methods: -2. Add brancik-overlay.xml file to the /etc/layman/overlays directory with the following content: +a. Using app-portage/layman (emerge if it is not installed) -sudo nano -w /etc/layman/overlays/brancik-overlay.xml +layman -o https://dev.brancik.cz/git/brancik-overlay/tree/overlay.xml -f -a brancik-overlay - - - - - brancik-overlay - Ctibor Brancik's overlay - https://dev.brancik.cz/git/brancik-overlay/ - - ctibor@brancik.cz - Ctibor Brančík - - https://git.brancik.cz/brancik-overlay.git - - +b. using provided repos.conf -Or you can use layman-overlay-maker tool if you have >=app-portage/layman-2.0.0 installed. +curl -sL https://dev.brancik.cz/git/brancik-overlay/tree/repos.conf > /etc/portage/repos.conf/brancik-overlay.conf -More info about Gentoo overlays and their management can be found on http://wiki.gentoo.org/wiki/Layman and in layman man pages. +2. Sync the ebuild using emaint sync -r brancik-overlay -3. Add overlay: - -sudo layman -f -a brancik-overlay - -4. To install all available indilib drivers simply use provided portage set: +3. To install all available indilib drivers simply use provided portage set: sudo emerge -v @indilib-drivers or sudo emerge -v @indilib-drivers-live if you want bleeding edge drivers straight from git repository. Note that you have to install indilib from git too. -5. If you want to install only drivers for the devices you use (yeah, that is the Gentoo way, isn't it?), you have to set appropriate USE flags: +4. If you want to install only drivers for the devices you use (yeah, that is the Gentoo way, isn't it?), you have to set appropriate USE flags: Available USE flags (Note that only 3rd party drivers are present. All other drivers are installed by sci-libs/indilib itself): - aagcloudwatcher - aagcloudwatcherng + - ahpcorrelator - aok - apogee - armadillo - asi + - asi-power + - astrolink4 + - astromechfoc - atik - avalon - beefocus + - celestronaux - dreamfocuser - dsi - duino @@ -69,14 +56,17 @@ Available USE flags (Note that only 3rd party drivers are present. All other dri - nexdome - nexstarevo - nightscape + - pentax - qhy - qsi + - rtklib - rtlsdr - sbig - shelyak - spectracyber - ssag - starbook + - sv305 - sx - talon6 - toupbase @@ -95,19 +85,19 @@ sci-libs/indilib-drivers gphoto2 qhy sbig sudo emerge sci-libs/indilib::brancik-overlay -6. Note that ebuilds for stable release of indilib drivers (currently 1.8.3) are keyworded unstable (~amd64, ~x86 specifically) and live source ebuilds are all masked by package.mask. You will have to unmask them during +5. Note that ebuilds for stable release of indilib drivers (currently 1.8.3) are keyworded unstable (~amd64, ~x86 specifically) and live source ebuilds are all masked by package.mask. You will have to unmask them during installation (use emerge with --autounmask-write option). See official docs if you do not know this means exactly. -7. You can use provided init script in /etc/init.d/indiserver and respective configuration file in /etc/conf.d/indiserver to set indiserver to start automatically. +6. You can use provided init script in /etc/init.d/indiserver and respective configuration file in /etc/conf.d/indiserver to set indiserver to start automatically. I have tested all the drivers and they compile OK at least on amd64 and arm. Whether they work with your device is up to you to discover :-) I will try to maintain ebuilds as the time goes by and my spare time allows me. -8. Known problems: +7. Known problems: Firmware for SBIG cameras (sci-libs/libsbig) won't cross emerge if the host machine belongs to different ARCH. Firmware for QHY cameras (sci-libs/libqhy) won't cross emerge for armv7a CHOST, because provided binary is only for armv6, which confuses compiler. It can be emerged on RaspberryPi directly -9. The overlay also includes ebuild for sci-astronomy/open-phd-guiding (version 2 directly from git). +9. The overlay also includes ebuild for sci-astronomy/open-phd-guiding (version 2 directly from git) and sci-astronomy/siril (useful tool for astrophotography) and some other software. I hope someone will find this useful and please report any bugs with the ebuilds or compilation failures to the forum: http://indilib.org/forum/general/566-my-gentoo-overlay-with-indilib-3rd-party-drivers diff --git a/overlay.xml b/overlay.xml new file mode 100644 index 0000000..11cc6f6 --- /dev/null +++ b/overlay.xml @@ -0,0 +1,14 @@ + + + + + brancik-overlay + Ctibor Branciks overlay + https://dev.brancik.cz/git/brancik-overlay/ + + ctibor@brancik.cz + Ctibor Brančík + + https://git.brancik.cz/brancik-overlay.git + + diff --git a/repos.conf b/repos.conf new file mode 100644 index 0000000..87828e4 --- /dev/null +++ b/repos.conf @@ -0,0 +1,5 @@ +[hacking-gentoo] +location = /var/db/repos/hacking-gentoo +sync-type = git +sync-uri = https://git.brancik.cz/brancik-overlay.git +auto-sync = yes diff --git a/sci-libs/indilib-drivers/metadata.xml b/sci-libs/indilib-drivers/metadata.xml index 916d210..08200fb 100644 --- a/sci-libs/indilib-drivers/metadata.xml +++ b/sci-libs/indilib-drivers/metadata.xml @@ -11,14 +11,14 @@ Installs sci-libs/indilib-driver-aagcloudwatcher Installs sci-libs/indilib-driver-aagcloudwatcherng - Installs sci-libs/indilib-driver-ahp-correlator - Installs sci-libs/indilib-driver-aok + Installs sci-libs/indilib-driver-ahp-correlator + Installs sci-libs/indilib-driver-aok Installs sci-libs/indilib-driver-apogee Installs sci-libs/indilib-driver-armadillo - Installs sci-libs/indilib-driver-astrolink4 - Installs sci-libs/indilib-driver-astromechfoc Installs sci-libs/indilib-driver-asi Installs sci-libs/indilib-driver-asi-power + Installs sci-libs/indilib-driver-astrolink4 + Installs sci-libs/indilib-driver-astromechfoc Installs sci-libs/indilib-driver-atik Installs sci-libs/indilib-driver-avalon Installs sci-libs/indilib-driver-beefocus @@ -42,10 +42,10 @@ Installs sci-libs/indilib-driver-nexdome Installs sci-libs/indilib-driver-nexstarevo Installs sci-libs/indilib-driver-nightscape - Installs sci-libs/indilib-driver-pentax + Installs sci-libs/indilib-driver-pentax Installs sci-libs/indilib-driver-qhy Installs sci-libs/indilib-driver-qsi - Installs sci-libs/indilib-driver-rtklib + Installs sci-libs/indilib-driver-rtklib Installs sci-libs/indilib-driver-rtlsdr Installs sci-libs/indilib-driver-sbig Installs sci-libs/indilib-driver-shelyak -- cgit v1.2.3