summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD25
-rw-r--r--traccar.service16
3 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f124c7c5e1b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = traccar-bin
+ pkgdesc = Open source GPS tracking system
+ pkgver = 4.0
+ pkgrel = 1
+ url = http://www.traccar.org/
+ arch = i686
+ arch = x86_64
+ license = APACHE
+ depends = java-runtime
+ source = https://github.com/tananaev/traccar/releases/download/v4.0/traccar-linux-4.0.zip
+ source = traccar.service
+ md5sums = 2b3149854f56de4ad3212f0c8c1bf31e
+ md5sums = 3e230b1b98fb5d0ae71ee08ab96a7c92
+
+pkgname = traccar-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2f8669d2dff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: robertfoster
+# Contributor: kehon
+
+pkgname=traccar-bin
+pkgver=4.0
+pkgrel=1
+pkgdesc="Open source GPS tracking system"
+arch=('i686' 'x86_64')
+url="http://www.traccar.org/"
+license=('APACHE')
+depends=(java-runtime)
+source=("https://github.com/tananaev/traccar/releases/download/v${pkgver}/${pkgname%%-*}-linux-$pkgver.zip"
+"${pkgname%%-*}.service")
+
+package() {
+ cd ${srcdir}
+ ./traccar.run --noexec --target $pkgdir/opt/traccar/
+ install -m755 -d "${pkgdir}/usr/lib/systemd/system"
+ install -m644 "${srcdir}/traccar.service" "${pkgdir}/usr/lib/systemd/system/"
+ install -m755 -d "${pkgdir}/opt/traccar/init.d"
+ chmod 755 -R $pkgdir/opt/*
+}
+
+md5sums=('2b3149854f56de4ad3212f0c8c1bf31e'
+ '3e230b1b98fb5d0ae71ee08ab96a7c92')
diff --git a/traccar.service b/traccar.service
new file mode 100644
index 00000000000..505615fdbae
--- /dev/null
+++ b/traccar.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Traccar GPS System
+After=network.target
+
+[Service]
+Type=forking
+WorkingDirectory=/opt/traccar
+ExecStart=/usr/bin/java -Dwrapper.daemon.dir=/opt/traccar/init.d -Dwrapper.pidfile=/var/run/wrapper.traccar.pid -Dwrapper.service=true -Dwrapper.visible=false -Djna_tmpdir=/opt/traccar/tmp -jar /opt/traccar/wrapper.jar -tx /opt/traccar/conf/wrapper.conf
+ExecStop=/usr/bin/java -Dwrapper.daemon.dir=/opt/traccar/init.d -Dwrapper.pidfile=/var/run/wrapper.traccar.pid -Dwrapper.service=true -Dwrapper.visible=false -Djna_tmpdir=/opt/traccar/tmp -jar /opt/traccar/wrapper.jar -px /opt/traccar/conf/wrapper.conf
+
+PIDFile=/var/run/wrapper.traccar.pid
+SuccessExitStatus=143
+TimeoutStopSec=30
+
+[Install]
+WantedBy=multi-user.target