diff options
Diffstat (limited to 'aur/pfclient')
| -rw-r--r-- | aur/pfclient/.AURINFO | 12 | ||||
| -rw-r--r-- | aur/pfclient/.SRCINFO | 15 | ||||
| -rw-r--r-- | aur/pfclient/PKGBUILD | 48 | ||||
| -rw-r--r-- | aur/pfclient/pfclient.install | 9 | ||||
| -rw-r--r-- | aur/pfclient/pfclient.service | 15 |
5 files changed, 99 insertions, 0 deletions
diff --git a/aur/pfclient/.AURINFO b/aur/pfclient/.AURINFO new file mode 100644 index 0000000..80c283b --- /dev/null +++ b/aur/pfclient/.AURINFO @@ -0,0 +1,12 @@ +pkgbase = pfclient + pkgdesc = Planefinder.net sharing client + pkgver = 2.1.23 + pkgrel = 1 + url = http://planefinder.net/ + arch = any + license = unknown + depends = nodejs + source = http://clientfiles.planefinder.net/pfclient-2.1.23.tgz + +pkgname = pfclient + diff --git a/aur/pfclient/.SRCINFO b/aur/pfclient/.SRCINFO new file mode 100644 index 0000000..55cbcb3 --- /dev/null +++ b/aur/pfclient/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = pfclient + pkgdesc = Planefinder.net sharing client + pkgver = 4.1.1 + pkgrel = 1 + url = https://planefinder.net/sharing/client + install = pfclient.install + arch = any + license = unknown + optdepends = lib32-glibc: necessary for 64-bit systems + optdepends = lib32-gcc-libs: necessary for 64-bit systems + source = pfclient.service + sha256sums = 9346331884c38fcb669f1f40bd9461eeb7ed729f9f4600b3b47155e69536ddf5 + +pkgname = pfclient + diff --git a/aur/pfclient/PKGBUILD b/aur/pfclient/PKGBUILD new file mode 100644 index 0000000..77c52c4 --- /dev/null +++ b/aur/pfclient/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Yuval Adam <yuv dot adm at gmail dot com> PGP-Key: CC2115C12D99D2F0 + +pkgname=pfclient +pkgver=4.1.1 +pkgrel=1 +pkgdesc="Planefinder.net sharing client" +arch=('any') +url="https://planefinder.net/sharing/client" +license=(unknown) +optdepends=( + "lib32-glibc: necessary for 64-bit systems" + "lib32-gcc-libs: necessary for 64-bit systems" +) +install=pfclient.install + +source=('pfclient.service') +sha256sums=('9346331884c38fcb669f1f40bd9461eeb7ed729f9f4600b3b47155e69536ddf5') + +source_i686=("http://client.planefinder.net/pfclient_${pkgver}_i386.tar.gz") +sha256sums_i686=('8ed6740074eb0f0616f94919626f4056cf20bffe3046b49acc7c0a9ee9d98b30') + +source_x86_64=("http://client.planefinder.net/pfclient_${pkgver}_i386.tar.gz") +sha256sums_x86_64=('8ed6740074eb0f0616f94919626f4056cf20bffe3046b49acc7c0a9ee9d98b30') + +source_armv6h=("http://client.planefinder.net/pfclient_${pkgver}_armhf.tar.gz") +sha256sums_armv6h=('f262205d2aff125870a070312e44190786ac043fd2d3eba3bf7d2a3bb38f8928') + +source_armv7h=("http://client.planefinder.net/pfclient_${pkgver}_armhf.tar.gz") +sha256sums_armv7h=('f262205d2aff125870a070312e44190786ac043fd2d3eba3bf7d2a3bb38f8928') + +prepare() { + if [[ $CARCH == 'i686' || $CARCH == 'x86_64' ]]; then + __pfarch="i386" + else + __pfarch="armhf" + fi + + cd "$srcdir" + tar -xzf pfclient_${pkgver}_$__pfarch.tar.gz +} + +package() { + install -Dm755 "${srcdir}/pfclient" "${pkgdir}/usr/bin/pfclient" + install -Dm644 "${srcdir}/pfclient.service" "${pkgdir}/usr/lib/systemd/system/pfclient.service" + install -Dm644 /dev/null "${pkgdir}/etc/pfclient/pfclient-config.json" +} + +# vim:set ts=2 sw=2 et: diff --git a/aur/pfclient/pfclient.install b/aur/pfclient/pfclient.install new file mode 100644 index 0000000..8bd21c6 --- /dev/null +++ b/aur/pfclient/pfclient.install @@ -0,0 +1,9 @@ +post_install() { + echo " + In order to use the client, it's necessary to start the service and + configure it by HTML interface at http://<your-ip>:30053. + " +} + +# vim:set ts=2 sw=2 et: + diff --git a/aur/pfclient/pfclient.service b/aur/pfclient/pfclient.service new file mode 100644 index 0000000..9bf0455 --- /dev/null +++ b/aur/pfclient/pfclient.service @@ -0,0 +1,15 @@ +[Unit] +Description=Plane Finder ADS-B Client +Wants=network-online.target +After=syslog.target network-online.target + +[Service] +Restart=always +RestartSec=30 +ExecStart=/usr/bin/pfclient --daemon --log_path=/var/log --config_path=/etc/pfclient/pfclient-config.json --pid_file=/var/run/pfclient.pid +ExecStop=/usr/bin/kill -INT $MAINPID +Type=forking +PIDFile=/var/run/pfclient.pid + +[Install] +WantedBy=multi-user.target |
