- added logrotate
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 25 Apr 2003 13:44:04 +0000 (13:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-mod_gzip.spec -> 1.22

apache-mod_gzip.spec

index ee5fc19..fc91859 100644 (file)
@@ -8,6 +8,7 @@ Release:        2
 License:       Apache
 Group:         Networking/Daemons
 Source0:       http://dl.sourceforge.net/mod-gzip/mod_gzip-%{version}.tgz
+Source1:       mod_%{mod_name}.logrotate
 Patch0:                mod_%{mod_name}-name_clash.patch
 URL:           http://sourceforge.net/projects/mod-gzip/
 BuildRequires: %{apxs}
@@ -39,11 +40,13 @@ spos
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir},/etc/logrotate.d}
 
 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 sed -e 's#logs/mod_gzip.log#/var/log/httpd/mod_gzip.log#g' docs/mod_gzip.conf.sample > $RPM_BUILD_ROOT%{_sysconfdir}/mod_gzip.conf
 
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -74,3 +77,4 @@ fi
 %lang(de) %doc docs/manual/deutsch
 %attr(755,root,root) %{_pkglibdir}/*
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_gzip.conf
+%attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
This page took 0.02988 seconds and 4 git commands to generate.