fsotdld: add a config file
authorKlaus Kurzmann <mok@fluxnetz.de>
Sat, 9 Jan 2010 20:54:36 +0000 (21:54 +0100)
committerKlaus Kurzmann <mok@fluxnetz.de>
Sat, 9 Jan 2010 20:54:36 +0000 (21:54 +0100)
Signed-off-by: Klaus Kurzmann <mok@fluxnetz.de>
recipes/freesmartphone/fsotdld/fsotdld.conf [new file with mode: 0644]
recipes/freesmartphone/fsotdld_git.bb

diff --git a/recipes/freesmartphone/fsotdld/fsotdld.conf b/recipes/freesmartphone/fsotdld/fsotdld.conf
new file mode 100644 (file)
index 0000000..07e91b0
--- /dev/null
@@ -0,0 +1,43 @@
+#######################################################################################
+# FSO Time Date Location Daemon Configuration File -- for SYSTEM INTEGRATORS only
+########################################################################################
+[logging]
+# Log level: DEBUG, INFO (default), WARNING, ERROR
+# Override via environment as FSO_LOG_LEVEL
+log_level = INFO
+# Where to log to: none (default), stderr, stderr:colors, file, syslog
+# Override via environment as FSO_LOG_TO
+log_to = file
+# Log Destination (valid only for log_to = file)
+# Override via environment as FSO_LOG_DESTINATION
+log_destination = /var/log/fsotdld.log
+
+[fsotdl]
+gps_receiver_transport = serial
+gps_receiver_port = /dev/rfcomm0
+gps_receiver_speed = 9600
+
+[fsotdl.alarm]
+# No settings yet
+
+[fsotdl.source_ntp]
+# Which server to use; default is 'pool.ntp.org'
+server = time.windows.com
+
+[fsotdl.source_gsm]
+# No settings yet
+
+[fsotdl.provider_gps_nmea]
+# No settings yet
+
+[fsotdl.provider_gps]
+provider_type = nmea
+
+[fsotdl.sync_time]
+# Which sources to use; what is available depends on the loaded modules
+sources = ntp;gsm
+# Which current timezone file to use; default is /etc/timezone
+timezone_file = /etc/timezone
+# Path to zoneinfo files, default is /usr/share/zoneinfo
+zoneinfo_dir = /usr/share/zoneinfo
+
index a70bf59..14659bd 100644 (file)
@@ -1,6 +1,15 @@
 require cornucopia.inc
 inherit fso-plugin
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
 PV = "0.0.0+gitr${SRCREV}"
 
 DEPENDS += "libfsotransport libfsoresource"
+
+SRC_URI += "file://fsotdld.conf"
+
+do_install_append() {
+       install -d ${D}${sysconfdir}/freesmartphone/
+       install -m 0644 ${WORKDIR}/fsotdld.conf ${D}${sysconfdir}/freesmartphone/
+}
+
+FILES_${PN} += "${sysconfdir}/freesmartphone/fsotdld.conf"