]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- webapps.d support
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 20 Nov 2005 19:33:53 +0000 (19:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1.spec -> 1.118

apache1.spec

index 7683f96ba5b92e127247a75c436df482eba346e7..ec046ddf61c202ed9a4683c5f883eb946f2b3890 100644 (file)
@@ -30,7 +30,7 @@ Summary(uk):  
 Summary(zh_CN):        Internet ÉÏÓ¦ÓÃ×î¹ã·ºµÄ Web ·þÎñ³ÌÐò¡£
 Name:          apache1
 Version:       1.3.34
-Release:       3
+Release:       3.3
 License:       Apache Group
 Group:         Networking/Daemons
 Source0:       http://www.apache.org/dist/httpd/apache_%{version}.tar.gz
@@ -1304,7 +1304,7 @@ rm -f src/modules/standard/mod_rewrite.so
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig,monit} \
        $RPM_BUILD_ROOT%{_datadir}/errordocs \
-       $RPM_BUILD_ROOT%{_sysconfdir}/conf.d \
+       $RPM_BUILD_ROOT%{_sysconfdir}/{webapps.d,conf.d} \
        $RPM_BUILD_ROOT%{_libexecdir} \
        $RPM_BUILD_ROOT/var/{log/{apache,archiv/apache},run/apache}
 
@@ -1485,6 +1485,17 @@ if [ -f /etc/sysconfig/apache1.rpmsave ]; then
        mv -f /etc/sysconfig/apache{1.rpmsave,}
 fi
 
+%triggerpostun -- %{name} < 1.3.34-3.3
+# make sure webapps.d is included
+cp -f /etc/apache/apache.conf{,.rpmsave}
+sed -i -e '
+       /^Include conf.d/{
+               a
+               a# Include webapps config
+               aInclude webapps.d/*.conf
+       }
+' /etc/apache/apache.conf
+
 %triggerpostun mod_auth_db -- apache-mod_auth_db <= 1.3.20-2
 sed -i -e '/^\(Add\|Load\)Module.*mod_auth_dbm\.\(so\|c\)/d' /etc/apache/apache.conf
 
@@ -1782,6 +1793,7 @@ fi
 %{_sysconfdir}/modules
 %{_sysconfdir}/logs
 %attr(750,root,root) %dir %{_sysconfdir}/conf.d
+%attr(750,root,root) %dir %{_sysconfdir}/webapps.d
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_common.conf
 
This page took 0.064654 seconds and 4 git commands to generate.