summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 20:15:08 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2009-07-11 20:16:11 +0200
commit73ec09583d98a0bf48354dd2a588a1dba506d612 (patch)
tree5ddc3e4acc24b8cf25cdaad6b6b5eb455e8e0042
parentd0a4952d45678e73df27b961877a6d5c9d2e95f1 (diff)
downloadgps-devices-package-73ec09583d98a0bf48354dd2a588a1dba506d612.zip
gps-devices-package-73ec09583d98a0bf48354dd2a588a1dba506d612.tar.gz
gps-devices-package-73ec09583d98a0bf48354dd2a588a1dba506d612.tar.xz
Rename SELinux policy modules: _ instead of -
-rw-r--r--gps_device.fc (renamed from gps-device.fc)0
-rw-r--r--gps_device.if (renamed from gps-device.if)0
-rw-r--r--gps_device.te.in (renamed from gps-device.te.in)2
-rw-r--r--gpsd-devices.spec26
-rw-r--r--gpsd_devices.fc (renamed from gpsd-devices.fc)0
-rw-r--r--gpsd_devices.if (renamed from gpsd-devices.if)0
-rw-r--r--gpsd_devices.te.in (renamed from gpsd-devices.te.in)2
7 files changed, 15 insertions, 15 deletions
diff --git a/gps-device.fc b/gps_device.fc
index cfe57b6..cfe57b6 100644
--- a/gps-device.fc
+++ b/gps_device.fc
diff --git a/gps-device.if b/gps_device.if
index 71e904a..71e904a 100644
--- a/gps-device.if
+++ b/gps_device.if
diff --git a/gps-device.te.in b/gps_device.te.in
index 24817aa..1a9483d 100644
--- a/gps-device.te.in
+++ b/gps_device.te.in
@@ -1,4 +1,4 @@
-policy_module(gps-device,@VERSION@)
+policy_module(gps_device,@VERSION@)
########################################
#
diff --git a/gpsd-devices.spec b/gpsd-devices.spec
index 1bbde61..8c8bfb7 100644
--- a/gpsd-devices.spec
+++ b/gpsd-devices.spec
@@ -1,5 +1,5 @@
Name: gpsd-devices
-Version: 0.0.13
+Version: 0.0.14
Release: 0%{?dist}
Summary: GPS Devices for navigation
@@ -8,12 +8,12 @@ License: GPLv2+
URL: http://none/
Source0: gps-devices-information.fdi
Source1: gpsd-devices-policy.fdi
-Source11: gps-device.fc
-Source12: gps-device.if
-Source13: gps-device.te.in
-Source21: gpsd-devices.fc
-Source22: gpsd-devices.if
-Source23: gpsd-devices.te.in
+Source11: gps_device.fc
+Source12: gps_device.if
+Source13: gps_device.te.in
+Source21: gpsd_devices.fc
+Source22: gpsd_devices.if
+Source23: gpsd_devices.te.in
Source30: README
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
@@ -36,9 +36,9 @@ be added to and removed from gpsd automatically.
%prep
%setup -c -T
cp %{SOURCE11} %{SOURCE12} .
-sed 's|[@]VERSION@|%{version}|' %{SOURCE13} > gps-device.te
+sed 's|[@]VERSION@|%{version}|' %{SOURCE13} > gps_device.te
cp %{SOURCE21} %{SOURCE22} .
-sed 's|[@]VERSION@|%{version}|' %{SOURCE23} > gpsd-devices.te
+sed 's|[@]VERSION@|%{version}|' %{SOURCE23} > gpsd_devices.te
cp %{SOURCE30} .
@@ -57,7 +57,7 @@ install -m 0644 %{SOURCE1} "%{buildroot}/usr/share/hal/fdi/policy/20thirdpart
# FIXME: HACK!
install -d -m 0755 "%{buildroot}/usr/share/selinux/targeted"
-install -m 0644 gps-device.pp gpsd-devices.pp "%{buildroot}/usr/share/selinux/targeted/"
+install -m 0644 gps_device.pp gpsd_devices.pp "%{buildroot}/usr/share/selinux/targeted/"
install -d -m 0755 "%{buildroot}%{_datadir}/gpsd"
mkfifo "%{buildroot}%{_datadir}/gpsd/dummy-device"
@@ -70,7 +70,7 @@ exit 0
%post
-semodule -u "%{_datadir}/selinux/targeted/gps-device.pp" "%{_datadir}/selinux/targeted/gpsd-devices.pp" || 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" || semodule -i "%{_datadir}/selinux/targeted/gps_device.pp" "%{_datadir}/selinux/targeted/gpsd_devices.pp"
restorecon -v %{_datadir}/gpsd/dummy-device
service haldaemon restart
exit 0
@@ -90,8 +90,8 @@ rm -rf "%{buildroot}"
%doc README
%{_datadir}/hal/fdi/information/20thirdparty/10-gps-devices.fdi
%{_datadir}/hal/fdi/policy/20thirdparty/10-gps-devices.fdi
-%{_datadir}/selinux/targeted/gps-device.pp
-%{_datadir}/selinux/targeted/gpsd-devices.pp
+%{_datadir}/selinux/targeted/gps_device.pp
+%{_datadir}/selinux/targeted/gpsd_devices.pp
%attr(0644,root,gps) %{_datadir}/gpsd/dummy-device
diff --git a/gpsd-devices.fc b/gpsd_devices.fc
index e5071f1..e5071f1 100644
--- a/gpsd-devices.fc
+++ b/gpsd_devices.fc
diff --git a/gpsd-devices.if b/gpsd_devices.if
index a24defd..a24defd 100644
--- a/gpsd-devices.if
+++ b/gpsd_devices.if
diff --git a/gpsd-devices.te.in b/gpsd_devices.te.in
index 2e3181b..900b2be 100644
--- a/gpsd-devices.te.in
+++ b/gpsd_devices.te.in
@@ -1,4 +1,4 @@
-policy_module(gpsd-devices,@VERSION@)
+policy_module(gpsd_devices,@VERSION@)
########################################
#