From: Stefan Paetow Date: Fri, 19 Sep 2014 16:26:10 +0000 (+0100) Subject: Update trust_router.spec X-Git-Tag: 1.4^2~2 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=de0fcc814f02c4e64f0e4c4d1b50f487a36f2397;p=trust_router.git Update trust_router.spec Add the TIDS script to the SPEC file to be added to the installation. It does *not* mean that TIDS is auto-started or enabled in chkconfig. That is a manual step when the admin is ready to do so. --- diff --git a/trust_router.spec b/trust_router.spec index 4247fe4..a4f456b 100644 --- a/trust_router.spec +++ b/trust_router.spec @@ -56,10 +56,12 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # Install config files install -D -m 755 redhat/init $RPM_BUILD_ROOT/%{_initrddir}/trust_router +install -D -m 755 tids.initd $RPM_BUILD_ROOT/%{_initrddir}/tids install -D -m 640 redhat/trusts.cfg $RPM_BUILD_ROOT/%{_sysconfdir}/trust_router/trusts.cfg install -D -m 640 redhat/default-main.cfg $RPM_BUILD_ROOT/%{_sysconfdir}/trust_router/conf.d/default/main.cfg install -D -m 640 redhat/tr-test-main.cfg $RPM_BUILD_ROOT/%{_sysconfdir}/trust_router/conf.d/tr-test/main.cfg install -D -m 640 redhat/sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/trust_router +install -D -m 640 redhat/sysconfig.tids $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/tids # Link shared config ln -s ../../trusts.cfg $RPM_BUILD_ROOT/%{_sysconfdir}/trust_router/conf.d/default/trusts.cfg @@ -67,6 +69,7 @@ ln -s ../../trusts.cfg $RPM_BUILD_ROOT/%{_sysconfdir}/trust_router/conf.d/tr-tes # Install wrapper scripts install -D -m 755 redhat/tidc-wrapper $RPM_BUILD_ROOT/%{_bindir}/tidc-wrapper +install -D -m 755 redhat/tids-wrapper $RPM_BUILD_ROOT/%{_bindir}/tids-wrapper install -D -m 755 redhat/trust_router-wrapper $RPM_BUILD_ROOT/%{_bindir}/trust_router-wrapper # As we're building an RPM, we don't need the init scripts etc. in /usr/share @@ -110,8 +113,10 @@ chmod 770 /var/log/trust_router #/lib/systemd/system/tids.service %{_initrddir}/trust_router +%{_initrddir}/tids %config(noreplace) %{_sysconfdir}/sysconfig/trust_router +%config(noreplace) %{_sysconfdir}/sysconfig/tids %dir %attr(755,root,trustrouter) %{_sysconfdir}/trust_router %dir %attr(755,root,trustrouter) %{_sysconfdir}/trust_router/conf.d/ @@ -132,6 +137,3 @@ chmod 770 /var/log/trust_router %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.so - - -