From b6be9fdc6290325cf2b39d58d3426752f1c3305b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 16 Feb 2012 16:29:25 +0100 Subject: [PATCH] Do not install non-existing files --- mod_security.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod_security.spec b/mod_security.spec index 3335cc5..7cffd3f 100644 --- a/mod_security.spec +++ b/mod_security.spec @@ -32,7 +32,8 @@ rm -rf %{buildroot} install -D -m755 apache2/.libs/mod_security2.so %{buildroot}/%{_libdir}/httpd/modules/mod_security2.so install -D -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/mod_security.conf install -d %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/ -install -D -m644 rules/*.conf %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/ +test -e rules/*.conf && install -D -m644 rules/*.conf \ + %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/ cp -R rules/base_rules %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/ cp -R rules/optional_rules %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/ install -D -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/httpd/modsecurity.d/modsecurity_localrules.conf @@ -57,6 +58,7 @@ rm -rf %{buildroot} %changelog * Fri Feb 10 2012 Petr Pisar - 2.5.13-3 - Rebuild against PCRE 8.30 +- Do not install non-existing files * Fri Jan 13 2012 Fedora Release Engineering - 2.5.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild