diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2023-09-21 21:13:39 +0200 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2023-09-21 21:13:39 +0200 |
commit | 2a03937a699aa74eeee8dd801176f0c49e3b8192 (patch) | |
tree | c642b63b12ce0f3004998a13521255868f6e9636 /sci-libs/indilib/files | |
parent | 328af69d7704b707b1c3925034946d52baa66021 (diff) | |
download | brancik-overlay-2a03937a699aa74eeee8dd801176f0c49e3b8192.tar.gz brancik-overlay-2a03937a699aa74eeee8dd801176f0c49e3b8192.tar.bz2 |
Remove unmaintained ebuilds for sci-libs/indilib & co.
Diffstat (limited to 'sci-libs/indilib/files')
-rw-r--r-- | sci-libs/indilib/files/indiserver.conf | 39 | ||||
-rw-r--r-- | sci-libs/indilib/files/indiserver.sh | 49 |
2 files changed, 0 insertions, 88 deletions
diff --git a/sci-libs/indilib/files/indiserver.conf b/sci-libs/indilib/files/indiserver.conf deleted file mode 100644 index 19b4d98..0000000 --- a/sci-libs/indilib/files/indiserver.conf +++ /dev/null @@ -1,39 +0,0 @@ -# This is configuration file for indiserver init script -# -# INDISERVER_OPTS can be used to set flags and options passed to the indiserver binary. -# Available options are -# -# -p <number> Sets the number TCP/IP port number indiserver will listen to. -# Default value is 7624 if not set. -# -# -v, -vv, -vvv Increase verbosity of the output. -# -# -l <dir> Sets the directory where the log will be created. File will -# be named YYYY-MM-DD.islog (this cannot be changed). Use -# app-admin/logrotate to automatically remove old logs if necessary -# -# -m <number> If the client is <number> of MBs behind the server, it should -# be killed. Defaults value is 64. -# -# If you want to use indiserver with the -f flag enabled see INDISERVER_FIFO variable. - -INDISERVER_OPTS="-l /var/log/ -v" - -# You should set INDISERVER_DRIVERS variable to include any driver you want to use, unless -# you use dynamic startup and shutdown of drivers (see the description to the -f option). -# You can get all available drivers by issuing command ls -al /usr/bin/indi_*. Just include -# filenames of the binary drivers you want to use. - -INDISERVER_DRIVERS="" - -# If you want to use indiserver in fifo mode for dynamic startup and shutdown of -# drivers, set the absolute path to the FIFO file (pipe). Init script will create this file -# automaticaly and pass the -f option to the indiserver binary. - -INDISERVER_FIFO="" - -# Configure owner of the indiserver process. This must be existing user account. If you use devices -# connected by USB and serial link this user has to be member of the usb and uucp groups. Defaults to -# indiserver created when sci-libs/indilib has been installed. - -INDISERVER_USER="" diff --git a/sci-libs/indilib/files/indiserver.sh b/sci-libs/indilib/files/indiserver.sh deleted file mode 100644 index 8444109..0000000 --- a/sci-libs/indilib/files/indiserver.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/sbin/openrc-run - -if [ ! "${INDISERVER_USER}" ]; then - INDISERVER_USER="indiserver" -fi - -description="indiserver - INDI astronomical control library server" -command="/usr/bin/indiserver" - -if [ "${INDISERVER_FIFO}" ]; then - command_args="${INDISERVER_OPTS} -f ${INDISERVER_FIFO} ${INDISERVER_DRIVERS}" -else - command_args="${INDISERVER_OPTS} ${INDISERVER_DRIVERS}" -fi - -pidfile="/var/run/indiserver.pid" -start_stop_daemon_args="--pidfile ${pidfile} --make-pidfile --background --user ${INDISERVER_USER}" - -start_pre() { - IFS=' ' read -ra DRIVER <<< "${INDISERVER_DRIVERS}" - for file in "${DRIVER[@]}"; do - if [ ! -x /usr/bin/"${file}" ]; then - eerror "Driver ${file} not found. Please check configuration file." - exit 1 - fi - done - if [ "${INDISERVER_FIFO}" ]; then - INDISERVER_OPTS="-f ${INDISERVER_FIFO} ${INDISERVER_OPTS}" - if [ ! -p "${INDISERVER_FIFO}" ]; then - if ! /usr/bin/mkfifo ${INDISERVER_FIFO}; then - eerror "Could not create FIFO file in ${INDISERVER_FIFO}!" - eerror "indiserver is started with user ${INDISERVER_USER}" - eerror "Check permissions or unset INDISERVER_FIFO in config." - exit 1 - fi - chown indiserver:indiserver ${INDISERVER_FIFO} - else - ewarn "Strange. FIFO file ${INDISERVER_FIFO} already exists" - fi - fi - return 0 - } - -stop_post() { - if [ -p "${INDISERVER_FIFO}" ]; then - rm -rf "${INDISERVER_FIFO}" - fi - return 0 - } |