summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Douglas <william.douglas@intel.com>2012-06-21 21:22:20 (GMT)
committerWilliam Douglas <william.douglas@intel.com>2012-06-21 21:22:20 (GMT)
commit2969d836abbeea777fd896550f56a39239ad246d (patch)
treed329232f7a510c3964ffd0a12c2627e579968955
parent894e95badfa8ffe2708b8ebcd1d0085e52b1f81b (diff)
downloadaudio-session-manager-2969d836abbeea777fd896550f56a39239ad246d.zip
audio-session-manager-2969d836abbeea777fd896550f56a39239ad246d.tar.gz
audio-session-manager-2969d836abbeea777fd896550f56a39239ad246d.tar.bz2
fix post section
Signed-off-by: William Douglas <william.douglas@intel.com>
-rw-r--r--packaging/audio-session-manager.spec14
1 files changed, 6 insertions, 8 deletions
diff --git a/packaging/audio-session-manager.spec b/packaging/audio-session-manager.spec
index 6d548f6..8528bf9 100644
--- a/packaging/audio-session-manager.spec
+++ b/packaging/audio-session-manager.spec
@@ -57,6 +57,10 @@ make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
+mkdir -p %{buildroot}/etc/rc.d/rc3.d
+mkdir -p %{buildroot}/etc/rc.d/rc4.d
+ln -s ../etc/rc.d/init.d/audiosessionmanager %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S30audiosessionmanager
+ln -s ../etc/rc.d/init.d/audiosessionmanager %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S30audiosessionmanager
%post
@@ -64,21 +68,15 @@ rm -rf %{buildroot}
vconftool set -t int memory/Sound/SoundStatus "0" -i
-mkdir -p /etc/rc.d/rc3.d
-mkdir -p /etc/rc.d/rc4.d
-ln -s /etc/rc.d/init.d/audiosessionmanager /etc/rc.d/rc3.d/S30audiosessionmanager
-ln -s /etc/rc.d/init.d/audiosessionmanager /etc/rc.d/rc4.d/S30audiosessionmanager
-
%postun
/sbin/ldconfig
-rm -f /etc/rc.d/rc3.d/S30audiosessionmanager
-rm -f /etc/rc.d/rc4.d/S30audiosessionmanager
-
%files
%manifest audio-session-manager.manifest
%{_sysconfdir}/rc.d/init.d/audiosessionmanager
+%{_sysconfdir}/rc.d/rc3.d/S30audiosessionmanager
+%{_sysconfdir}/rc.d/rc4.d/S30audiosessionmanager
%{_bindir}/audio-session-mgr-server
%{_libdir}/libaudio-session-mgr.so.*