Changeset 31621
- Timestamp:
- 2012-05-05T23:02:59+02:00 (6 years ago)
- Location:
- packages/net/gpsd
- Files:
-
- 3 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
packages/net/gpsd/Makefile
r29199 r31621 9 9 10 10 PKG_NAME:=gpsd 11 PKG_VERSION:=2.94 12 PKG_RELEASE:=4 11 PKG_REV:=ffcc14068ada0d565f237efa56c7cd723847ca04 12 PKG_VERSION:=3.5-20120414 13 #PKG_VERSION:=20110917 14 PKG_RELEASE:=5 13 15 16 #PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/gpsd/ 17 #PKG_MD5SUM:=c01353459faa68834309109d4e868460 18 19 #PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 20 PKG_SOURCE_URL:=git://git.sv.gnu.org/gpsd.git 21 PKG_SOURCE_PROTO:=git 22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 23 PKG_SOURCE_VERSION:=$(PKG_REV) 14 24 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=http://download.berlios.de/gpsd/16 PKG_MD5SUM:=ce70bcd707ac1df861d4c72f503c09d117 18 PKG_INSTALL:=119 PKG_FIXUP:=libtool20 PKG_REMOVE_FILES:=aclocal.m4 ltmain.sh21 25 22 26 PKG_BUILD_DEPENDS:=libncurses 23 27 24 28 include $(INCLUDE_DIR)/package.mk 29 include $(INCLUDE_DIR)/scons.mk 30 31 define Package/gpsd/Default 32 DEPENDS:=+librt 33 URL:=http://catb.org/gpsd/ 34 endef 35 36 define Package/gpsd/Default/description 37 gpsd is a userland daemon acting as a translator between GPS and AIS receivers 38 and their clients. gpsd listens on port 2947 for clients requesting 39 position/time/velocity information. The receivers are expected to generate 40 position information in a well-known format -- as NMEA-0183 sentences, SiRF 41 binary, Rockwell binary, Garmin binary format, or other vendor binary 42 protocols. gpsd takes this information from the GPS and translates it into 43 something uniform and easier to understand for clients. 44 endef 25 45 26 46 define Package/gpsd 47 $(call Package/gpsd/Default) 27 48 SECTION:=net 28 49 CATEGORY:=Network 29 DEPENDS :=+libpthread +librt +libusb-1.050 DEPENDS+= +libgps +libgpsd 30 51 TITLE:=An interface daemon for GPS receivers 31 URL:=http://gpsd.berlios.de/32 52 endef 33 53 34 CONFIGURE_CMD =./autogen.sh 54 define Package/gpsd/conffiles 55 /etc/config/gpsd 56 endef 35 57 36 CONFIGURE_ARGS += \ 37 --disable-dbus \ 38 --disable-tsip \ 39 --disable-fv18 \ 40 --disable-tripmate \ 41 --disable-earthmate \ 42 --disable-itrax \ 43 --disable-navcom \ 44 --disable-ubx \ 45 --disable-evermore \ 46 --disable-ntrip \ 47 --disable-libgpsmm \ 48 --without-x \ 58 define Package/gpsd/description 59 $(call Package/gpsd/Default/description) 60 This package contains the GPS daemon. 61 endef 49 62 50 EXTRA_CFLAGS:=-I$(STAGING_DIR)/usr/include/libusb-1.0 63 define Package/cgps 64 $(call Package/gpsd/Default) 65 SECTION:=net 66 CATEGORY:=Network 67 DEPENDS+= +libgps +libncurses 68 TITLE:=Test client for gpsd 69 endef 51 70 52 EXTRA_LDFLAGS:=-lusb-1.0 71 define Package/cgps/description 72 $(call Package/gpsd/Default/description) 73 This package contains a GPS test client. 74 endef 75 76 define Package/libgps 77 $(call Package/gpsd/Default) 78 SECTION:=libs 79 CATEGORY:=Libraries 80 TITLE:=C service library for communicating with the GPS daemon 81 endef 82 83 define Package/libgps/description 84 $(call Package/gpsd/Default/description) 85 This package contains the libgps library. 86 endef 87 88 define Package/libgpsd 89 $(call Package/gpsd/Default) 90 SECTION:=libs 91 CATEGORY:=Libraries 92 TITLE:=C service library for GPS applications 93 endef 94 95 define Package/libgpsd/description 96 $(call Package/gpsd/Default/description) 97 This package contains the libgpsd library. 98 endef 99 100 SCONS_OPTIONS += \ 101 dbus_export=no \ 102 tsip=no \ 103 fv18=no \ 104 tripmate=no \ 105 earthmate=no \ 106 itrax=no \ 107 navcom=no \ 108 ubx=no \ 109 evermore=no \ 110 ntrip=no \ 111 libgpsmm=no \ 112 libQgpsmm=no \ 113 bluez=no \ 114 strip=no \ 115 python=no \ 116 usb=no \ 117 implicit_link=no 53 118 54 119 define Build/InstallDev … … 56 121 $(CP) $(PKG_INSTALL_DIR)/usr/include/gps.h $(1)/usr/include/ 57 122 $(INSTALL_DIR) $(1)/usr/lib 58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.{a,so*} $(1)/usr/lib/ 123 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.so* $(1)/usr/lib/ 124 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig 125 $(CP) \ 126 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libgps*.pc \ 127 $(1)/usr/lib/pkgconfig/ 59 128 endef 60 129 … … 66 135 $(INSTALL_DIR) $(1)/etc/hotplug.d/usb 67 136 $(INSTALL_DATA) ./files/gpsd.hotplug $(1)/etc/hotplug.d/usb/20-gpsd 68 $(INSTALL_DIR) $(1)/usr/lib69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps*.so* $(1)/usr/lib/70 137 $(INSTALL_DIR) $(1)/usr/sbin 71 138 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gpsd $(1)/usr/sbin/ 72 139 endef 73 140 74 define Package/gpsd/conffiles 75 /etc/config/gpsd 141 define Package/cgps/install 142 $(INSTALL_DIR) $(1)/usr/bin 143 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cgps $(1)/usr/bin/ 144 endef 145 146 define Package/libgps/install 147 $(INSTALL_DIR) $(1)/usr/lib 148 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgps.so.* $(1)/usr/lib/ 149 endef 150 151 define Package/libgpsd/install 152 $(INSTALL_DIR) $(1)/usr/lib 153 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgpsd.so.* $(1)/usr/lib/ 76 154 endef 77 155 78 156 $(eval $(call BuildPackage,gpsd)) 157 $(eval $(call BuildPackage,cgps)) 158 $(eval $(call BuildPackage,libgps)) 159 $(eval $(call BuildPackage,libgpsd)) -
packages/net/gpsd/files/gpsd.config
r22447 r31621 2 2 option device "/dev/ttyUSB0" 3 3 option port "2947" 4 option listen_globally "false" 4 5 option enabled "true" -
packages/net/gpsd/files/gpsd.init
r22447 r31621 1 1 #!/bin/sh /etc/rc.common 2 # Copyright (C) 2009 OpenWrt.org2 # Copyright (C) 2009-2011 OpenWrt.org 3 3 START=50 4 4 … … 11 11 config_get device core device 12 12 config_get port core port 13 config_get_bool listen_globally core listen_globally 13 14 config_get_bool enabled core enabled 14 15 [ "$enabled" != "1" ] && exit … … 18 19 exit 1 19 20 } 20 $PROG -n -P $PIDF -S $port $device 21 [ "$listen_globally" != "0" ] && append args "-G" 22 $PROG -n -P $PIDF -S $port $args $device 21 23 } 22 24
Note: See TracChangeset
for help on using the changeset viewer.