summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuval Adam2015-08-01 22:15:45 +0300
committerYuval Adam2015-08-01 22:15:45 +0300
commit0058c6ceed9336c14487eb844f0e5768204371ea (patch)
treeb7ea928bf21a356a35985d9f0493f89d2ed3f1b5
parent7e769cf201f79286e9eb65edef63927eb8b1110a (diff)
downloadaur-0058c6ceed9336c14487eb844f0e5768204371ea.tar.gz
Bump to v3.0.2080 add ARM support, and add .service and .install files
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD42
-rw-r--r--pfclient.install9
-rw-r--r--pfclient.service15
4 files changed, 67 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 90b665b9a39..3c947e62a1b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,16 @@
pkgbase = pfclient
pkgdesc = Planefinder.net sharing client
- pkgver = 2.1.23
+ pkgver = 3.0.2080
pkgrel = 1
- url = http://planefinder.net/
+ url = https://planefinder.net/sharing/client
+ install = pfclient.install
arch = any
license = unknown
depends = nodejs
- source = http://clientfiles.planefinder.net/pfclient-2.1.23.tgz
- sha1sums = ef84f7adb844286cc5118005b3212f0723aeeffb
+ optdepends = lib32-glibc: necessary for 64-bit systems
+ optdepends = lib32-gcc-libs: necessary for 64-bit systems
+ source = pfclient.service
+ sha256sums = db0cb3ad55568b259ba8be08709c37eb4c0aa2ca83f7417456b9f0d8dcd54d0a
pkgname = pfclient
diff --git a/PKGBUILD b/PKGBUILD
index 3681c713789..ef03c2a9988 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,49 @@
# Maintainer: Yuval Adam <yuv dot adm at gmail dot com> PGP-Key: CC2115C12D99D2F0
pkgname=pfclient
-pkgver=2.1.23
+pkgver=3.0.2080
pkgrel=1
pkgdesc="Planefinder.net sharing client"
arch=('any')
-url="http://planefinder.net/"
+url="https://planefinder.net/sharing/client"
license=(unknown)
depends=(nodejs)
-source=("http://clientfiles.planefinder.net/pfclient-${pkgver}.tgz")
-sha1sums=('ef84f7adb844286cc5118005b3212f0723aeeffb')
+optdepends=(
+ "lib32-glibc: necessary for 64-bit systems"
+ "lib32-gcc-libs: necessary for 64-bit systems"
+)
+install=pfclient.install
+
+source=('pfclient.service')
+sha256sums=('db0cb3ad55568b259ba8be08709c37eb4c0aa2ca83f7417456b9f0d8dcd54d0a')
+
+source_i686=("http://client.planefinder.net/pfclient_${pkgver}_i386.tar.gz")
+sha256sums_i686=('46e25f75ff90edc61918bd3380591adeae5ec810a59c8e260ab38d5b8d79728d')
+
+source_x86_64=("http://client.planefinder.net/pfclient_${pkgver}_i386.tar.gz")
+sha256sums_x86_64=('46e25f75ff90edc61918bd3380591adeae5ec810a59c8e260ab38d5b8d79728d')
+
+source_armv6h=("http://client.planefinder.net/pfclient_${pkgver}_armhf.tar.gz")
+sha256sums_armv6h=('e32de0ca910d6e02fe10ffeb57adf0e4cc95ca585cefde5b4f6cf703578e6597')
+
+source_armv7h=("http://client.planefinder.net/pfclient_${pkgver}_armhf.tar.gz")
+sha256sums_armv7h=('e32de0ca910d6e02fe10ffeb57adf0e4cc95ca585cefde5b4f6cf703578e6597')
+
+prepare() {
+ if [[ $CARCH == 'i686' || $CARCH == 'x86_64' ]]; then
+ __pfarch="i386"
+ else
+ __pfarch="armhf"
+ fi
+
+ cd "$srcdir"
+ tar -xzf pfclient_${pkgver}_$__pfarch.tar.gz
+}
package() {
- cd $srcdir/package
- npm install -g --prefix "$pkgdir/usr"
+ 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/pfclient.install b/pfclient.install
new file mode 100644
index 00000000000..8bd21c628d9
--- /dev/null
+++ b/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/pfclient.service b/pfclient.service
new file mode 100644
index 00000000000..94cd36bf16a
--- /dev/null
+++ b/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-beta --daemon --log_path=/var/log --config_path=/etc/pfclient/pfclient-config.json --pid_file=/var/run/pfclient-beta.pid
+ExecStop=/usr/bin/kill -INT $MAINPID
+Type=forking
+PIDFile=/var/run/pfclient-beta.pid
+
+[Install]
+WantedBy=multi-user.target