diff options
author | M0Rf30 | 2015-06-17 16:34:33 +0200 |
---|---|---|
committer | M0Rf30 | 2015-06-17 16:34:33 +0200 |
commit | 80affa73e3f9a1b8048955b03c0b8c75f94a9e8c (patch) | |
tree | 99b6f525ae1ab6a8cddf7b738e22aa202ae4891e | |
download | aur-80affa73e3f9a1b8048955b03c0b8c75f94a9e8c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | traccar.service | 13 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d15b469ad1ed --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = traccar + pkgdesc = Open source GPS tracking system + pkgver = 2.10 + pkgrel = 2 + url = http://www.traccar.org/ + arch = i686 + arch = x86_64 + license = APACHE + depends = java-runtime + source = http://prdownloads.sourceforge.net/traccar/traccar-linux--2.10.zip + source = traccar.service + md5sums = 0ea6fb9d40e32b32a4755e20490d5df6 + md5sums = 0c5ebc020df4d1710c555b67e87e104f + +pkgname = traccar + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3dc3e99bca29 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: M0Rf30 + +pkgname=traccar +pkgver=2.10 +pkgrel=2 +[[ "$CARCH" == 'x86_64' ]] && arch=64 +[[ "$CARCH" == 'i686' ]] && arch=32 +_pkgver=linux-$arch-$pkgver +pkgdesc="Open source GPS tracking system" +arch=('i686' 'x86_64') +url="http://www.traccar.org/" +license=('APACHE') +depends=(java-runtime) +source=(http://prdownloads.sourceforge.net/$pkgname/$pkgname-${_pkgver}.zip + "traccar.service") +md5sums=('0ea6fb9d40e32b32a4755e20490d5df6' + '0c5ebc020df4d1710c555b67e87e104f') +[[ "$CARCH" == 'x86_64' ]] && md5sums[0]='24f9492fa0b9c2cda91e4f8461386f36' + +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/" +} + + diff --git a/traccar.service b/traccar.service new file mode 100644 index 000000000000..94afc31fb791 --- /dev/null +++ b/traccar.service @@ -0,0 +1,13 @@ +[Unit] +Description=Traccar GPS System +After=network.target + +[Service] +Type=forking +PIDFile=/opt/traccar/bin/traccar.pid +ExecStart=/opt/traccar/bin/traccar start +ExecStop=/opt/traccar/bin/traccar stop +ExecReload=/opt/traccar/bin/traccar restart + +[Install] +WantedBy=multi-user.target |