2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-22 23:58:13 +00:00
Files
xcat-core/xCAT-test/fixtures/package-lifecycle/legacy-apache.spec
T
2026-10-11 11:41:45 -03:00

27 lines
945 B
RPMSpec

Name: %{test_package}
Version: 2.0
Release: 1
%if "%{test_package}" == "xCATsn"
Epoch: 4
%endif
Summary: Legacy Apache configuration ownership fixture
License: EPL
BuildArch: noarch
%{!?test_httpconfigdir:%global test_httpconfigdir xcat}
%description
Ordinary payload and saved defaults from before configuration-file ownership.
%install
mkdir -p %{buildroot}/etc/httpd/conf.d %{buildroot}/etc/apache2/conf.d %{buildroot}/etc/%{test_httpconfigdir}/conf.orig
printf '# recorded payload\n' > %{buildroot}/etc/httpd/conf.d/xcat.conf
printf '# recorded payload\n' > %{buildroot}/etc/apache2/conf.d/xcat.conf
printf '# prior Apache 2.4 default\n' > %{buildroot}/etc/%{test_httpconfigdir}/conf.orig/xcat.conf.apach24
printf '# prior Apache 2.2 default\n' > %{buildroot}/etc/%{test_httpconfigdir}/conf.orig/xcat.conf.apach22
%files
%defattr(-,root,root)
/etc/httpd/conf.d/xcat.conf
/etc/apache2/conf.d/xcat.conf
/etc/%{test_httpconfigdir}/conf.orig