From 8ad3835a2a5d45e325276d405c045f1bdd5a8bf1 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 11 Jul 2009 19:41:33 +0200 Subject: Install files with proper perms, restart haldaemon --- gpsd-devices.spec | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/gpsd-devices.spec b/gpsd-devices.spec index 8e0eead..6329d14 100644 --- a/gpsd-devices.spec +++ b/gpsd-devices.spec @@ -49,18 +49,19 @@ make -f /usr/share/selinux/devel/Makefile %install rm -rf "%{buildroot}" -install -d "%{buildroot}/usr/share/hal/fdi/information" -install %{SOURCE0} "%{buildroot}/usr/share/hal/fdi/information/" +install -d -m 0755 "%{buildroot}/usr/share/hal/fdi/information" +install -m 0644 %{SOURCE0} "%{buildroot}/usr/share/hal/fdi/information/" -install -d "%{buildroot}/usr/share/hal/fdi/policy" -install %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/" +install -d -m 0755 "%{buildroot}/usr/share/hal/fdi/policy" +install -d 0644 %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/" # FIXME: HACK! -install -d "%{buildroot}/usr/share/selinux/targeted" -install gps-device.pp gpsd-devices.pp "%{buildroot}/usr/share/selinux/targeted/" +install -d -m 0755 "%{buildroot}/usr/share/selinux/targeted" +install -m 0644 gps-device.pp gpsd-devices.pp "%{buildroot}/usr/share/selinux/targeted/" -install -d "%{buildroot}%{_datadir}/gpsd" +install -d -m 0755 "%{buildroot}%{_datadir}/gpsd" mkfifo "%{buildroot}%{_datadir}/gpsd/dummy-device" +chmod 0644 "%{buildroot}%{_datadir}/gpsd/dummy-device" %pre @@ -70,6 +71,7 @@ exit 0 %post semodule -i "%{_datadir}/selinux/targeted/gps-device.pp" "%{_datadir}/selinux/targeted/gpsd-devices.pp" || semodule -u "%{_datadir}/selinux/targeted/gps-device.pp" "%{_datadir}/selinux/targeted/gpsd-devices.pp" +service haldaemon restart exit 0 -- cgit