]> git.pld-linux.org Git - packages/apache1-mod_ssl.git/commitdiff
- logrotate ssl_{engine,request}_log
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 13 Apr 2001 16:27:57 +0000 (16:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- moved /home/httpd/html/docs/ssl-doc to %%doc
- changed %%postun to %%preun and fixed - don't disable mod_ssl on upgrade
- release 4

Changed files:
    apache-mod_ssl.logrotate -> 1.1
    apache1-mod_ssl.logrotate -> 1.1
    apache1-mod_ssl.spec -> 1.30

apache-mod_ssl.logrotate [new file with mode: 0644]
apache1-mod_ssl.logrotate [new file with mode: 0644]
apache1-mod_ssl.spec

diff --git a/apache-mod_ssl.logrotate b/apache-mod_ssl.logrotate
new file mode 100644 (file)
index 0000000..4ab2c85
--- /dev/null
@@ -0,0 +1,13 @@
+/var/log/httpd/ssl_engine_log {
+    olddir /var/log/archiv/httpd
+    postrotate
+       /bin/killall -HUP httpd
+    endscript
+}
+
+/var/log/httpd/ssl_request_log {
+    olddir /var/log/archiv/httpd
+    postrotate
+       /bin/killall -HUP httpd
+    endscript
+}
diff --git a/apache1-mod_ssl.logrotate b/apache1-mod_ssl.logrotate
new file mode 100644 (file)
index 0000000..4ab2c85
--- /dev/null
@@ -0,0 +1,13 @@
+/var/log/httpd/ssl_engine_log {
+    olddir /var/log/archiv/httpd
+    postrotate
+       /bin/killall -HUP httpd
+    endscript
+}
+
+/var/log/httpd/ssl_request_log {
+    olddir /var/log/archiv/httpd
+    postrotate
+       /bin/killall -HUP httpd
+    endscript
+}
index abff4b8a41df9e45ddc720d664abf0900abb6d48..aace2f28c2cc9537d653287771fa03ad63d04453 100644 (file)
@@ -6,7 +6,7 @@ Summary(fr):    Un module SSL pour le serveur Web Apache
 Summary(pl):   Modu³ SSL dla webserwera Apache
 Name:          apache-mod_ssl
 Version:       %{SSLVER}_%{APACHEVER}
-Release:       3
+Release:       4
 License:       BSD
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
@@ -16,6 +16,7 @@ Source1:      %{name}.conf
 Source2:       %{name}-server.crt
 Source3:       %{name}-server.key
 Source4:       %{name}-sxnet.html
+Source5:       %{name}.logrotate
 Patch0:                mod_ssl-db3.patch
 Patch1:                mod_ssl-cca-openssl-path.patch
 URL:           http://www.modssl.org/
@@ -112,7 +113,7 @@ cd sxnet
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir}/mod_ssl,%{_pkglibdir}} \
        $RPM_BUILD_ROOT%{_sysconfdir}/httpd \
-       $RPM_BUILD_ROOT/home/httpd/html/docs
+       $RPM_BUILD_ROOT/etc/logrotate.d
 
 install pkg.sslmod/libssl.so $RPM_BUILD_ROOT%{_pkglibdir}
 install pkg.contrib/sxnet/mod_sxnet.so $RPM_BUILD_ROOT%{_pkglibdir}
@@ -121,16 +122,11 @@ install pkg.contrib/*.sh $RPM_BUILD_ROOT%{_libdir}/mod_ssl
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/mod_ssl.conf
 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/server.crt
 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/server.key
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/apache-mod_ssl
 
 mv -f pkg.ssldoc ssl-doc
-ln -sf %{_docdir}/%{name}-%{version}/ssl-doc \
-        $RPM_BUILD_ROOT/home/httpd/html/docs/ssl-doc
 
 install %{SOURCE4} sxnet.html
-ln -sf %{_docdir}/%{name}-%{version}/sxnet.html \
-        $RPM_BUILD_ROOT/home/httpd/html/docs/sxnet.html
-
-strip --strip-unneeded $RPM_BUILD_ROOT%{_pkglibdir}/*.so
 
 gzip -9nf ANNOUNCE CHANGES CREDITS NEWS README*
 
@@ -145,12 +141,14 @@ else
         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
 fi
 
-%postun
-grep -E -v "^Include.*mod_ssl.conf" /etc/httpd/httpd.conf > \
-       /etc/httpd/httpd.conf.tmp
-mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-if [ -f /var/lock/subsys/httpd ]; then
-        /etc/rc.d/init.d/httpd restart 1>&2
+%preun
+if [ "$1" = "0" ]; then
+       grep -E -v "^Include.*mod_ssl.conf" %{_sysconfdir}/httpd/httpd.conf > \
+               %{_sysconfdir}/httpd/httpd.conf.tmp
+       mv -f %{_sysconfdir}/httpd/httpd.conf.tmp %{_sysconfdir}/httpd/httpd.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
 fi
 
 %files
@@ -158,9 +156,9 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/mod_ssl.conf
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/server.crt
 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/server.key
+%attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
 %doc *.gz
 %doc ssl-doc
-%doc /home/httpd/html/docs/ssl-doc
 
 %attr(755,root,root) %{_pkglibdir}/libssl.so
 
@@ -171,7 +169,6 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_pkglibdir}/mod_sxnet.so
 %doc sxnet.html
-%doc /home/httpd/html/docs/sxnet.html
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.044144 seconds and 4 git commands to generate.