From 8a1ecff3518bcbe1a1700c119e7afd4cb106bbae Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 9 Feb 2013 22:01:47 +1300 Subject: Added Mac OS X installer --- setup/macosx/README.txt | 18 +++++ setup/macosx/macosx.cfg | 179 ++++++++++++++++++++++++++++++++++++++++++++++++ setup/package.sh | 16 +++++ 3 files changed, 213 insertions(+) create mode 100644 setup/macosx/README.txt create mode 100644 setup/macosx/macosx.cfg diff --git a/setup/macosx/README.txt b/setup/macosx/README.txt new file mode 100644 index 000000000..ea4e586d7 --- /dev/null +++ b/setup/macosx/README.txt @@ -0,0 +1,18 @@ +== DESCRIPTION == + +Web page - http://www.traccar.org + +Author - Anton Tananaev (anton.tananaev@gmail.com) + +Traccar software is licensed under the Apache License 2.0. + +== INSTALL == + +1. Make traccar.run executable (sudo chmod +x traccar.run) +2. Run traccar.run (sudo ./traccar.run) +3. Start daemon (sudo /opt/traccar/bin/traccar start) + +== UNINSTALL == + +1. Remove traccar from init (sudo /opt/traccar/bin/traccar remove) +2. Remove traccar directory (sudo rm -R /opt/traccar) diff --git a/setup/macosx/macosx.cfg b/setup/macosx/macosx.cfg new file mode 100644 index 000000000..539921791 --- /dev/null +++ b/setup/macosx/macosx.cfg @@ -0,0 +1,179 @@ + + + + + + + + org.h2.Driver + org.h2.jdbcx.JdbcDataSource + jdbc:h2:/opt/traccar/data/database + sa + + + + 300 + + + id - Long + imei - String + <--> + + SELECT id, uniqueId as imei + FROM devices; + + + + device_id - Long + time - Date + valid - Boolean + latitude - Double + longitude - Double + speed - Double + course - Double + power - Double (NULL for some protocols) + extended_info - String (XML) + <--> + + INSERT INTO positions (device_id, time, valid, latitude, longitude, altitude, speed, course, power) + VALUES (:device_id, :time, :valid, :latitude, :longitude, :altitude, :speed, :course, :power); + + + + device_id - Long + id - Long + <--> + + UPDATE devices SET latestPosition_id = :id WHERE id = :device_id; + + + + true + 8082 + /opt/traccar/traccar-web.war + + + true + /opt/traccar/logs/tracker-server.log + + + true + 5000 + + + true + 5001 + + + true + 5002 + + + true + 5003 + + + true + 5004 + + + true + 5005 + + + true + 5006 + + + true + 5007 + + + true + 5008 + + + true + 5009 + + + true + 5010 + + + true + 5011 + + + true + 5012 + + + true + 5013 + + + true + 5014 + + + true + 5015 + + + true + 5016 + + + true + 5017 + + + true + 5018 + + + true + 5019 + + + true + 5020 + + + true + 5021 + + + true + 5022 + + + true + 5023 + + + true + 5018 + + + true + 5019 + + + true + 5020 + + + true + 5021 + + + true + 5022 + + + true + 5023 + + diff --git a/setup/package.sh b/setup/package.sh index ac0f021a8..cd07fc46c 100755 --- a/setup/package.sh +++ b/setup/package.sh @@ -126,6 +126,22 @@ chmod +x out/bin/traccar makeself out traccar.run "traccar" "mkdir $app; cp -rf * $app; $app/bin/traccar install" zip -j traccar-linux-64.zip traccar.run linux/README.txt +# MACOSX PACKAGE + +rm out/conf/linux.cfg +rm out/lib/libwrapper.so + +cp macosx/macosx.cfg out/conf + +sed -i "s/linux.cfg/macosx.cfg/g" out/conf/wrapper.conf + +cp wrapper/bin/wrapper-macosx-universal-64 out/bin/wrapper +cp wrapper/lib/libwrapper-macosx-universal-64.jnilib out/lib/libwrapper.jnilib +chmod +x out/bin/traccar + +makeself out traccar.run "traccar" "mkdir -p $app; cp -rf * $app; $app/bin/traccar install" +zip -j traccar-macosx-64.zip traccar.run macosx/README.txt + rm traccar.run rm -rf out -- cgit v1.2.3