- don't use deprecated SYSFS{} in udev rules (#569089)

- fix init script LSB compliance
This commit is contained in:
Miroslav Lichvar 2010-03-02 17:00:43 +00:00
parent 079990867d
commit 0e1ecc8b46
2 changed files with 9 additions and 1 deletions

View File

@ -41,6 +41,7 @@ CONTROL_SOCKET=/var/run/gpsd.sock
lockfile=/var/lock/subsys/$prog lockfile=/var/lock/subsys/$prog
start() { start() {
[ "$EUID" != "0" ] && exit 4
echo -n $"Starting $prog: " echo -n $"Starting $prog: "
daemon $exec -P $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE daemon $exec -P $PIDFILE -F $CONTROL_SOCKET $OPTIONS $DEVICE
retval=$? retval=$?
@ -50,6 +51,7 @@ start() {
} }
stop() { stop() {
[ "$EUID" != "0" ] && exit 4
echo -n $"Stopping $prog: " echo -n $"Stopping $prog: "
killproc $prog killproc $prog
retval=$? retval=$?

View File

@ -2,7 +2,7 @@
Name: gpsd Name: gpsd
Version: 2.39 Version: 2.39
Release: 6%{?dist} Release: 7%{?dist}
Summary: Service daemon for mediating access to a GPS Summary: Service daemon for mediating access to a GPS
Group: System Environment/Daemons Group: System Environment/Daemons
@ -78,6 +78,8 @@ can run on a serial terminal or terminal emulator.
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
sed -i 's/SYSFS/ATTRS/g' gpsd.rules
%build %build
%configure \ %configure \
--disable-rpath \ --disable-rpath \
@ -231,6 +233,10 @@ fi
%changelog %changelog
* Tue Mar 02 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.39-7
- don't use deprecated SYSFS{} in udev rules (#569089)
- fix init script LSB compliance
* Mon Feb 15 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.39-6 * Mon Feb 15 2010 Miroslav Lichvar <mlichvar@redhat.com> - 2.39-6
- fix linking with --no-add-needed (#564662) - fix linking with --no-add-needed (#564662)
- use %%global macro instead of %%define - use %%global macro instead of %%define