summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2019-12-06 00:40:54 +0100
committerConrad Kostecki <conikost@gentoo.org>2019-12-06 00:56:00 +0100
commit06efa701e5e82191262d9999441bdce9891d8671 (patch)
treeeeda2c06fc80da09dd4fdf876fc7b1e5fc997747 /app-misc/fr24feed/files
parentdev-tex/dot2tex: 2.11.3 bump (diff)
downloadgentoo-06efa701e5e82191262d9999441bdce9891d8671.tar.gz
gentoo-06efa701e5e82191262d9999441bdce9891d8671.tar.bz2
gentoo-06efa701e5e82191262d9999441bdce9891d8671.zip
app-misc/fr24feed: New package
The package app-misc/fr24feed is used for collecting ADS-B data and submitting to Flightradar24. Closes: https://github.com/gentoo/gentoo/pull/12926 Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/fr24feed/files')
-rw-r--r--app-misc/fr24feed/files/fr24feed.confd5
-rw-r--r--app-misc/fr24feed/files/fr24feed.ini2
-rw-r--r--app-misc/fr24feed/files/fr24feed.initd25
3 files changed, 32 insertions, 0 deletions
diff --git a/app-misc/fr24feed/files/fr24feed.confd b/app-misc/fr24feed/files/fr24feed.confd
new file mode 100644
index 000000000000..90288849bf59
--- /dev/null
+++ b/app-misc/fr24feed/files/fr24feed.confd
@@ -0,0 +1,5 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Pass various options to the daemon.
+FR24FEED_OPTS="--log-rotate=2 --quiet"
diff --git a/app-misc/fr24feed/files/fr24feed.ini b/app-misc/fr24feed/files/fr24feed.ini
new file mode 100644
index 000000000000..fdeb5adb6e4f
--- /dev/null
+++ b/app-misc/fr24feed/files/fr24feed.ini
@@ -0,0 +1,2 @@
+bs=yes
+raw=yes
diff --git a/app-misc/fr24feed/files/fr24feed.initd b/app-misc/fr24feed/files/fr24feed.initd
new file mode 100644
index 000000000000..a0f1b9aa6b93
--- /dev/null
+++ b/app-misc/fr24feed/files/fr24feed.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Flightradar24 data sharing software"
+name="Flightradar24 feed daemon"
+pidfile="/run/${RC_SVCNAME}.pid"
+retry="TERM/10"
+dev_shm_path="/dev/shm"
+stopsig="SIGTERM"
+
+command="/usr/bin/fr24feed"
+command_args="--monitor-file=${dev_shm_path}/${RC_SVCNAME}.txt --write-pid=${pidfile} ${FR24FEED_OPTS}"
+command_background="true"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ if [ ! -d "${dev_shm_path}" ]; then
+ eerror "A mounted ${dev_shm_path} is needed in order to run fr24feed!'"
+ return 1
+ fi
+}