summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Douglas <william.douglas@intel.com>2012-06-21 21:49:18 -0700
committerWilliam Douglas <william.douglas@intel.com>2012-06-21 21:49:18 -0700
commit0247141a958ff3690ae919c48b920f2807d8c055 (patch)
tree5b257f79bf673539e6bff6822ed9d1ae1c5d84e5
parent03a14000f03ab9287f76b466b88012ecd88ab581 (diff)
downloaddlog-0247141a958ff3690ae919c48b920f2807d8c055.tar.gz
dlog-0247141a958ff3690ae919c48b920f2807d8c055.tar.bz2
dlog-0247141a958ff3690ae919c48b920f2807d8c055.zip
Fix post section.
Remove dlog-util's post file creation, move into install section. Signed-off-by: William Douglas <william.douglas@intel.com>
-rw-r--r--packaging/dlog.spec18
1 files changed, 11 insertions, 7 deletions
diff --git a/packaging/dlog.spec b/packaging/dlog.spec
index 2b5c7b0..6609e38 100644
--- a/packaging/dlog.spec
+++ b/packaging/dlog.spec
@@ -2,7 +2,7 @@ Name: dlog
Summary: Logging service
Version: 0.4.1
Release: 5.1
-Group: TO_BE/FILLED_IN
+Group: System/Main
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/dlog.manifest
@@ -54,13 +54,15 @@ make %{?jobs:-j%jobs}
rm -rf %{buildroot}
%make_install
-%post -n dlogutil
-#Add boot sequence script
-mkdir -p /etc/rc.d/rc5.d
-rm -f /etc/rc.d/rc3.d/S05dlog /etc/rc.d/rc5.d/S05dlog
-ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc3.d/S05dlog
-ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc5.d/S05dlog
+mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/rc3.d
+mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/rc5.d
+rm -f %{buildroot}/%{_sysconfdir}/etc/rc.d/rc3.d/S05dlog
+rm -f %{buildroot}/%{_sysconfdir}/etc/rc.d/rc5.d/S05dlog
+ln -s ../etc/rc.d/init.d/dlog.sh %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S05dlog
+ln -s ../etc/rc.d/init.d/dlog.sh %{buildroot}/%{_sysconfdir}/rc.d/rc5.d/S05dlog
+
+%post -n dlogutil
%post -n libdlog -p /sbin/ldconfig
@@ -71,6 +73,8 @@ ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc5.d/S05dlog
%manifest dlog.manifest
%{_bindir}/dlogutil
%{_sysconfdir}/rc.d/init.d/dlog.sh
+%{_sysconfdir}/rc.d/rc3.d/S05dlog
+%{_sysconfdir}/rc.d/rc5.d/S05dlog
%files -n libdlog
%manifest dlog.manifest