summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Coval <philippe.coval@eurogiciel.fr>2013-04-23 10:48:29 +0200
committerPhilippe Coval <philippe.coval@eurogiciel.fr>2013-04-23 10:48:29 +0200
commitbbd93ca661f4e0c7997c385cb07da58d7206b287 (patch)
tree2ea9841e1adbc804146502bef7c410b79e6981c9
parent686988fe71512ad2bc727acc5c699ca480eae183 (diff)
downloadconnman-bbd93ca661f4e0c7997c385cb07da58d7206b287.tar.gz
connman-bbd93ca661f4e0c7997c385cb07da58d7206b287.tar.bz2
connman-bbd93ca661f4e0c7997c385cb07da58d7206b287.zip
spec: add uninstallsubmit/devel/20130423.084940
-rw-r--r--packaging/connman.spec15
1 files changed, 11 insertions, 4 deletions
diff --git a/packaging/connman.spec b/packaging/connman.spec
index 078dfbf7..3d3fa132 100644
--- a/packaging/connman.spec
+++ b/packaging/connman.spec
@@ -80,6 +80,17 @@ ln -s ../connman.service %{buildroot}%{_unitdir}/network.target.wants/connman.se
%install_service multi-user.target.wants connman.service
+
+%post
+d=/var/lib/%{name}
+f=$d/settings
+install -d $d
+[ -r $f ] || printf '[WiFi]\nEnable=true\n' > $f
+
+%postun
+rm -f /var/lib/connman/settings
+
+
%files
%manifest connman.manifest
%{_sbindir}/*
@@ -88,10 +99,6 @@ ln -s ../connman.service %{buildroot}%{_unitdir}/network.target.wants/connman.se
%{_unitdir}/network.target.wants/connman.service
%{_unitdir}/multi-user.target.wants/connman.service
-%post
-conf=/var/lib/connman/settings
-[ -r $conf ] || printf '[WiFi]\nEnable=True\n' > $conf
-
%files test
%{_libdir}/%{name}/test/*