Commit 5e823375 authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

gpsd: new package

parent e9ae739c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@

	Alpha, Cris, IA64 and Sparc64 architecture support removed.

	New packages: gdk-pixbuf, gst-ffmpeg, libmpeg2, librsvg,
	New packages: gdk-pixbuf, gpsd, gst-ffmpeg, libmpeg2, librsvg,
	rrdtool, xz

	Updated/fixed packages: acpid, alsa-lib, argus, at, autoconf,
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ source "package/fis/Config.in"
source "package/gadgetfs-test/Config.in"
source "package/genext2fs/Config.in"
source "package/genromfs/Config.in"
source "package/gpsd/Config.in"
source "package/gvfs/Config.in"
source "package/hal/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS

package/gpsd/Config.in

0 → 100644
+238 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_GPSD
	bool "gpsd"
	help
	 gpsd is a service daemon that monitors one or more GPSes or AIS
	  receivers attached to a host computer through serial or USB ports,
	  making all data on the location/course/velocity of the sensors
	  available to be queried on TCP port 2947 of the host computer.

	  http://gpsd.berlios.de/

config BR2_PACKAGE_GPSD_DEVICES
	string "Where to look for GPSes"
	default "/dev/ttyS1"
	depends on BR2_PACKAGE_GPSD

menu "Features"
	depends on BR2_PACKAGE_GPSD

config BR2_PACKAGE_GPSD_TIMING
	bool "latency timing support"
	default y

config BR2_PACKAGE_GPSD_CLIENT_DEBUG
	bool "client debugging support"
	default y

config BR2_PACKAGE_GPSD_OLDSTYLE
	bool "oldstyle (pre-JSON) protocol support"
	default y

config BR2_PACKAGE_GPSD_PROFILING
	bool "profiling support"

config BR2_PACKAGE_GPSD_NTP_SHM
	bool "NTP time hinting support"
	default y

config BR2_PACKAGE_GPSD_PPS
	bool "PPS time syncing support"
	default y

config BR2_PACKAGE_GPSD_PPS_ON_CTS
	bool "PPS pulse on CTS rather than DCD"
	depends on BR2_PACKAGE_GPSD_PPS

config BR2_PACKAGE_GPSD_USER
	bool "GPSD privilege revocation user"
config BR2_PACKAGE_GPSD_USER_VALUE
	string ""
	default "nobody"
	depends on BR2_PACKAGE_GPSD_USER

config BR2_PACKAGE_GPSD_GROUP
	bool "GPSD privilege revocation group"
config BR2_PACKAGE_GPSD_GROUP_VALUE
	string ""
	default "nobody"
	depends on BR2_PACKAGE_GPSD_GROUP

config BR2_PACKAGE_GPSD_FIXED_PORT_SPEED
	bool "compile with fixed serial port speed"
config BR2_PACKAGE_GPSD_FIXED_PORT_SPEED_VALUE
	string ""
	default "9600"
	depends on BR2_PACKAGE_GPSD_FIXED_PORT_SPEED

config BR2_PACKAGE_GPSD_MAX_CLIENT
	bool "compile with limited maximum clients"
config BR2_PACKAGE_GPSD_MAX_CLIENT_VALUE
	string "compile with limited maximum clients"
	default "10"
	depends on BR2_PACKAGE_GPSD_MAX_CLIENT

config BR2_PACKAGE_GPSD_MAX_DEV
	bool "compile with maximum allowed devices"
config BR2_PACKAGE_GPSD_MAX_DEV_VALUE
	string "compile with maximum allowed devices"
	default "2"
	depends on BR2_PACKAGE_GPSD_MAX_DEV

config BR2_PACKAGE_GPSD_RECONFIGURE
	bool "allow gpsd to change device settings"
	default y

config BR2_PACKAGE_GPSD_CONTROLSEND
	bool "allow gpsctl/gpsmon to change device settings"
	default y

config BR2_PACKAGE_GPSD_RAW
	bool "enable raw measurement processing"

config BR2_PACKAGE_GPSD_SQUELCH
	bool "squelch gpsd_report and gpsd_hexdump to save cpu"

endmenu

menu "Protocols"
	depends on BR2_PACKAGE_GPSD

config BR2_PACKAGE_GPSD_ASHTECH
	bool "Ashtech"
	default y
	help
	  Ashtech support

config BR2_PACKAGE_GPSD_AIVDM
	bool "Aivdm"
	default y
	help
	  Aivdm support

config BR2_PACKAGE_GPSD_EARTHMATE
	bool "Earthmate"
	default y
	help
	  DeLorme EarthMate Zodiac support

config BR2_PACKAGE_GPSD_EVERMORE
	bool "EverMore"
	default y
	help
	  EverMore binary support

config BR2_PACKAGE_GPSD_FV18
	bool "FV-18"
	default y
	help
	  San Jose Navigation FV-18 support

config BR2_PACKAGE_GPSD_GARMIN
	bool "Garmin (kernel)"
	default y
	help
	  Garmin kernel driver support

config BR2_PACKAGE_GPSD_GARMIN_SIMPLE_TXT
	bool "Garmin (simple text)"
	default n
	help
	  Garmin Simple Text support

config BR2_PACKAGE_GPSD_GPSCLOCK
	bool "GPSClock"
	default y
	help
	  GPSClock support

config BR2_PACKAGE_GPSD_ITRAX
	bool "iTrax"
	default y
	help
	  iTrax support

config BR2_PACKAGE_MTK3301
	bool "MTK-3301"
	default y
	help
	  Mediatek MTK-3301 support

config BR2_PACKAGE_GPSD_NMEA
	bool "NMEA"
	default y
	help
	  Generic NMEA support

config BR2_PACKAGE_GPSD_NTRIP
	bool "NTRIP"
	default y
	help
	  NTRIP support

config BR2_PACKAGE_GPSD_NAVCOM
	bool "Navcom"
	default y
	help
	  Navcom binary support

config BR2_PACKAGE_GPSD_OCEANSERVER
	bool "OceanServer"
	default y
	help
	  OceanServer Digital Compass support

config BR2_PACKAGE_GPSD_ONCORE
	bool "OnCore"
	default y
	help
	  OnCore support

config BR2_PACKAGE_GPSD_RTCM104V2
	bool "RTCM104 v2"
	default y
	help
	  RTCM104 v2 support

config BR2_PACKAGE_GPSD_RTCM104V3
	bool "RTCM104 v3"
	default y
	help
	  RTCM104 v3 support

config BR2_PACKAGE_GPSD_SIRF
	bool "SiRF"
	default y
	help
	  SiRF binary support

config BR2_PACKAGE_GPSD_SUPERSTAR2
	bool "SuperStarII"
	default y
	help
	  Novatel SuperStarII binary support

config BR2_PACKAGE_GPSD_TRIMBLE_TSIP
	bool "Trimble TSIP"
	default y
	help
	  Trimble TSIP support

config BR2_PACKAGE_GPSD_TRIPMATE
	bool "TripMate"
	default y
	help
	  Delorme TripMate support

config BR2_PACKAGE_GPSD_TRUE_NORTH
	bool "True North Technologies"
	default n
	help
	  True North Technologies support

config BR2_PACKAGE_GPSD_UBX
	bool "UBX"
	default y
	help
	  uBlox UBX binary support

endmenu

package/gpsd/S50gpsd

0 → 100644
+40 −0
Original line number Diff line number Diff line
#!/bin/sh
#
# Starts the gps daemon.
#

NAME=gpsd
DAEMON=/usr/sbin/$NAME
DEVICES=/dev/ttyS1
PIDFILE=/var/run/$NAME.pid

start() {
        echo -n "Starting $NAME: "
        start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES && echo "OK" || echo "Failed"
}
stop() {
        echo -n "Stopping $NAME: "
        start-stop-daemon -K -q -p $PIDFILE && echo "OK" || echo "Failed"
        rm -f $PIDFILE
}
restart() {
        stop
        start
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|reload)
        restart
        ;;
  *)
        echo $"Usage: $0 {start|stop|restart}"
        exit 1
esac

exit $?
+23 −0
Original line number Diff line number Diff line
diff -Nura gpsd-2.95.orig/Makefile.in gpsd-2.95.x/Makefile.in
--- gpsd-2.95.orig/Makefile.in	2010-07-13 19:48:24.000000000 -0300
+++ gpsd-2.95.x/Makefile.in	2010-07-27 17:40:28.902568874 -0300
@@ -546,7 +546,7 @@
 libgps_VERSION__REVISION = 0
 libgps_VERSION_AGE = 0
 libgps_VERSION_NUMBER = $(libgps_VERSION_AGE):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE)
-libgps_la_LDFLAGS = -version-number $(libgps_VERSION_CURRENT):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE)
+libgps_la_LDFLAGS = -version-number $(libgps_VERSION_CURRENT):$(libgps_VERSION__REVISION):$(libgps_VERSION_AGE) $(LDFLAGS)
 lib_LTLIBRARIES = libgps.la libgpsd.la
 libgps_SONAME = $(shell expr $(libgps_VERSION_CURRENT) - $(libgps_VERSION_AGE))
 libgps_VERSION = $(libgps_SONAME).$(libgps_VERSION_AGE).$(libgps_VERSION__REVISION)
@@ -612,8 +612,8 @@
 libgpsd_la_SOURCES = $(libgpsd_c_sources) $(libgpsd_h_sources) \
 				driver_rtcm2.h packet_states.h
 
-@LIBGPSMM_ENABLE_FALSE@libgps_la_LINK = /bin/sh ./libtool --tag=CC --mode=link gcc $(libgps_la_LDFLAGS) -o $@
-@LIBGPSMM_ENABLE_TRUE@libgps_la_LINK = /bin/sh ./libtool --tag=CXX --mode=link g++ $(libgps_la_LDFLAGS) -o $@
+@LIBGPSMM_ENABLE_FALSE@libgps_la_LINK = /bin/sh ./libtool --tag=CC --mode=link $(CC) $(libgps_la_LDFLAGS) -o $@
+@LIBGPSMM_ENABLE_TRUE@libgps_la_LINK = /bin/sh ./libtool --tag=CXX --mode=link $(CXX) $(libgps_la_LDFLAGS) -o $@
 nodist_libgpsd_la_SOURCES = packet_names.h ais_json.i
 libgps_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD)
 libgpsd_la_LIBADD = $(LIBM) $(LIBC) $(LIBNSL) $(LIBSOCKET) $(LIBPTHREAD) $(BLUEZ_LIBS) libgps.la
Loading