summaryrefslogtreecommitdiff
path: root/packages/gpsd
diff options
context:
space:
mode:
authorJake Morrison <jake@cogini.com>2007-06-11 15:32:24 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-06-11 15:32:24 +0000
commitc95e380a833881cc95ffe07dbb08536f7c4d4cb1 (patch)
tree1dec846710b1ddab188c86f0b10a4038208b441d /packages/gpsd
parentef828c09c96cdc47f0b6901f2ee83cdb4bbcc8ec (diff)
gpsd: add /etc/default/gpsd config file - close #2465
Diffstat (limited to 'packages/gpsd')
-rwxr-xr-xpackages/gpsd/files/gpsd2
-rw-r--r--packages/gpsd/gpsd.inc3
-rw-r--r--packages/gpsd/gpsd_2.28.bb2
-rw-r--r--packages/gpsd/gpsd_2.32.bb2
-rw-r--r--packages/gpsd/gpsd_2.33.bb2
-rw-r--r--packages/gpsd/gpsd_2.34.bb2
6 files changed, 9 insertions, 4 deletions
diff --git a/packages/gpsd/files/gpsd b/packages/gpsd/files/gpsd
index 289896fb47..2cf26c5f3a 100755
--- a/packages/gpsd/files/gpsd
+++ b/packages/gpsd/files/gpsd
@@ -16,6 +16,8 @@ GPS_DEV="/dev/ttyS3"
RETVAL=0
prog="gpsd"
+test -f /etc/default/$prog && . /etc/default/$prog
+
start() {
# Start daemons.
echo -n "Starting $prog: "
diff --git a/packages/gpsd/gpsd.inc b/packages/gpsd/gpsd.inc
index f7c1de2362..7fa05d4716 100644
--- a/packages/gpsd/gpsd.inc
+++ b/packages/gpsd/gpsd.inc
@@ -10,6 +10,7 @@ EXTRA_OECONF = "--x-includes=${STAGING_INCDIR}/X11 \
--disable-python "
SRC_URI = "http://download.berlios.de/gpsd/gpsd-${PV}.tar.gz \
+ file://gpsd-default \
file://gpsd"
inherit autotools update-rc.d
@@ -40,6 +41,8 @@ do_install_append() {
install -d ${D}/${sysconfdir}/init.d
install -d ${D}/dev
install -m 0755 ${WORKDIR}/gpsd ${D}/${sysconfdir}/init.d/
+ install -d ${D}/${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/gpsd-default ${D}/${sysconfdir}/default/gpsd
}
PACKAGES =+ "libgps"
diff --git a/packages/gpsd/gpsd_2.28.bb b/packages/gpsd/gpsd_2.28.bb
index 1a5e608aa8..12ef7f47a3 100644
--- a/packages/gpsd/gpsd_2.28.bb
+++ b/packages/gpsd/gpsd_2.28.bb
@@ -1,2 +1,2 @@
require gpsd.inc
-PR = "r1"
+PR = "r2"
diff --git a/packages/gpsd/gpsd_2.32.bb b/packages/gpsd/gpsd_2.32.bb
index 4d07974d6e..1a5e608aa8 100644
--- a/packages/gpsd/gpsd_2.32.bb
+++ b/packages/gpsd/gpsd_2.32.bb
@@ -1,2 +1,2 @@
require gpsd.inc
-PR = "r0"
+PR = "r1"
diff --git a/packages/gpsd/gpsd_2.33.bb b/packages/gpsd/gpsd_2.33.bb
index f61c613eb8..02aef515da 100644
--- a/packages/gpsd/gpsd_2.33.bb
+++ b/packages/gpsd/gpsd_2.33.bb
@@ -2,4 +2,4 @@ require gpsd.inc
DEPENDS = "ncurses"
-PR = "r0"
+PR = "r1"
diff --git a/packages/gpsd/gpsd_2.34.bb b/packages/gpsd/gpsd_2.34.bb
index 58e9ebeee2..885a41dbda 100644
--- a/packages/gpsd/gpsd_2.34.bb
+++ b/packages/gpsd/gpsd_2.34.bb
@@ -1,3 +1,3 @@
require gpsd.inc
-PR = "r0"
+PR = "r1"