summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 19:41:33 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 19:41:33 +0200
commit8ad3835a2a5d45e325276d405c045f1bdd5a8bf1 (patch)
treea9973802d1bd1e3bed221c67f673098e9e3f7063
parent61ce1535e89cb362e3eb9b1a6a601af62c26513f (diff)
downloadgps-devices-package-8ad3835a2a5d45e325276d405c045f1bdd5a8bf1.tar.gz
gps-devices-package-8ad3835a2a5d45e325276d405c045f1bdd5a8bf1.tar.xz
gps-devices-package-8ad3835a2a5d45e325276d405c045f1bdd5a8bf1.zip
Install files with proper perms, restart haldaemon
-rw-r--r--gpsd-devices.spec16
1 files 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