From 97850aa13059e2f6af04dd642fc1ab1b54c77e01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Wed, 22 Feb 2012 01:36:46 +0100 Subject: [PATCH] - build all mpms as module, prefork is default --- apache.spec | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apache.spec b/apache.spec index 8f232f8..626b70c 100644 --- a/apache.spec +++ b/apache.spec @@ -17,7 +17,6 @@ %bcond_without ssl # build without SSL support %bcond_without ldap # build without LDAP support %bcond_without peruser # peruser MPM -%bcond_without event # event MPM %bcond_with itk # ITK MPM %bcond_with distcache # distcache support %bcond_with bucketeer # debug one @@ -1878,9 +1877,7 @@ CPPFLAGS="-DMAX_SERVER_LIMIT=200000 -DBIG_SECURITY_HOLE=1" --enable-so \ --with-program-name=httpd \ --with-mpm=prefork \ - --with-mpm=worker \ - --with-mpm=event \ - --enable-mpms-shared \ + --enable-mpms-shared=all \ --with-suexec-bin=%{_sbindir}/suexec \ --with-suexec-caller=http \ --with-suexec-docroot=%{_datadir} \ @@ -1904,13 +1901,13 @@ install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \ $RPM_BUILD_ROOT/usr/lib/tmpfiles.d # prefork is default one -%{__make} -C buildmpm-prefork install \ +%{__make} install \ DESTDIR=$RPM_BUILD_ROOT -ln -s httpd.prefork $RPM_BUILD_ROOT%{_sbindir}/httpd ln -s %{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules ln -s %{_localstatedir}/run/httpd $RPM_BUILD_ROOT%{_sysconfdir}/run ln -s %{_var}/log/httpd $RPM_BUILD_ROOT%{_sysconfdir}/logs +mv $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf.orig ln -s conf.d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd -- 2.46.0