diff options
-rw-r--r-- | packaging/dlog.spec | 18 |
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 |