On Tue, Oct 01, 2013 at 10:23:52PM +0200, Andrew Lunn wrote:
CHANGELOG | 3 + Makefile | 24 ++- README | 52 +++++- gpsd/Makefile | 81 ++++++++ gpsd/alfred-gpsd.c | 529 +++++++++++++++++++++++++++++++++++++++++++++++++++++ gpsd/alfred-gpsd.h | 102 +++++++++++ 6 files changed, 784 insertions(+), 7 deletions(-) create mode 100644 gpsd/Makefile create mode 100644 gpsd/alfred-gpsd.c create mode 100644 gpsd/alfred-gpsd.h
diff --git a/CHANGELOG b/CHANGELOG index aa0371f..404f3f3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,3 +11,6 @@ alfred 2013.3.0:
- exchanges data via IPv6 unicast/multicast
-- Sun, 28 Jul 2013 18:56:52 +0200
- Add support for distributing geographic location information,
- either fixed, or read from gpsd.
I'd like to do the CHANGELOG the other way around, e.g. newest entries come first - and your changes will not be released in 2013.3.0 or before. :)
Please just drop this change as I'll compile the CHANGELOG when releasing myself anyway. No need to bother. :)
\ No newline at end of file [...] --- /dev/null +++ b/gpsd/Makefile @@ -0,0 +1,81 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# +# Copyright (C) 2013 B.A.T.M.A.N. contributors +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA +#
+# alfred build +BINARY_NAME = alfred-gpsd +OBJ = alfred-gpsd.o
+# alfred flags and options +CFLAGS += -pedantic -Wall -W -std=gnu99 -fno-strict-aliasing -MD -MP +LDLIBS += -lgps
I have no idea if we need some special handling for this to let it work for crosscompiling, OpenWRT etc?
+# disable verbose output +ifneq ($(findstring $(MAKEFLAGS),s),s) +ifndef V
- Q_CC = @echo ' ' CC $@;
- Q_LD = @echo ' ' LD $@;
- export Q_CC
- export Q_LD
+endif +endif [...]
- if ((alt < -1000) || (lon > 9000)) {
/* No support for aircraft or submarines! */
Too bad :D
I haven't tested this, but I like the idea to transport the gpsd information. We will probably seperate the package to let OpenWRT users choose if they want to have this feature (because it comes with gpsd dependency), just as we have done with vis. TBH I didn't expect to fill the alfred repository with feature daemons, but as long as it is maintained, why not. :)
Thanks, Simon