From 0e1ecc8b466989c217d31e65f40573030ea26eb1 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 2 Mar 2010 17:00:43 +0000 Subject: [PATCH] - don't use deprecated SYSFS{} in udev rules (#569089) - fix init script LSB compliance --- gpsd.init | 2 ++ gpsd.spec | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gpsd.init b/gpsd.init index ed5ab52..85fab36 100644 --- a/gpsd.init +++ b/gpsd.init @@ -41,6 +41,7 @@ CONTROL_SOCKET=/var/run/gpsd.sock lockfile=/var/lock/subsys/$prog start() { + [ "$EUID" != "0" ] && exit 4 echo -n $"Starting $prog: " daemon $exec -P $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE retval=$? @@ -50,6 +51,7 @@ start() { } stop() { + [ "$EUID" != "0" ] && exit 4 echo -n $"Stopping $prog: " killproc $prog retval=$? diff --git a/gpsd.spec b/gpsd.spec index 64f619f..e76dfe6 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -2,7 +2,7 @@ Name: gpsd Version: 2.39 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Service daemon for mediating access to a GPS Group: System Environment/Daemons @@ -78,6 +78,8 @@ can run on a serial terminal or terminal emulator. %patch2 -p1 %patch3 -p1 +sed -i 's/SYSFS/ATTRS/g' gpsd.rules + %build %configure \ --disable-rpath \ @@ -231,6 +233,10 @@ fi %changelog +* Tue Mar 02 2010 Miroslav Lichvar - 2.39-7 +- don't use deprecated SYSFS{} in udev rules (#569089) +- fix init script LSB compliance + * Mon Feb 15 2010 Miroslav Lichvar - 2.39-6 - fix linking with --no-add-needed (#564662) - use %%global macro instead of %%define