Revision 0a047678
Added by Alexis Mousset about 7 years ago
rudder-server-relay/SPECS/rudder-server-relay.spec | ||
---|---|---|
#=================================================
|
||
%prep
|
||
|
||
cp -f %{SOURCE5} %{_builddir}
|
||
cp -f %{SOURCE11} %{_builddir}
|
||
cp -f %{SOURCE12} %{_builddir}
|
||
|
||
... | ... | |
cd %{_builddir} && make -f /usr/share/selinux/devel/Makefile
|
||
%endif
|
||
|
||
%if 0%{?suse_version}
|
||
# On SLES, change the Apache DocumentRoot to the OS default
|
||
sed -i "s%^DocumentRoot /var/www$%DocumentRoot /srv/www%" %{_builddir}/%{SOURCE5}
|
||
%endif
|
||
|
||
|
||
#=================================================
|
||
# Installation
|
||
#=================================================
|
||
... | ... | |
|
||
# Others
|
||
install -m 644 %{SOURCE1} %{buildroot}/etc/%{apache_vhost_dir}/rudder.conf
|
||
install -m 644 %{SOURCE5} %{buildroot}%{rudderdir}/etc/rudder-apache-relay-common.conf
|
||
install -m 644 %{_builddir}/%{SOURCE5} %{buildroot}%{rudderdir}/etc/rudder-apache-relay-common.conf
|
||
install -m 644 %{SOURCE6} %{buildroot}/etc/sysconfig/rudder-relay-apache
|
||
install -m 644 %{SOURCE9} %{buildroot}/etc/cron.d/rudder-relay
|
||
install -m 644 %{SOURCE10} %{buildroot}/etc/sudoers.d/rudder-relay
|
||
... | ... | |
fi
|
||
fi
|
||
|
||
# On SLES, change the Apache DocumentRoot to the OS default
|
||
sed -i "s%^DocumentRoot /var/www$%DocumentRoot /srv/www%" %{buildroot}%{rudderdir}/etc/rudder-apache-relay-common.conf
|
||
%endif
|
||
|
||
# Create inventory repositories and add rights to the apache user to
|
||
# access /var/rudder/inventories/incoming
|
||
chmod 751 %{ruddervardir}/inventories
|
Also available in: Unified diff
Fixes #10131: rudder-relay has bad \"sed\" line