--- httpd.spec.~1~ 2012-04-30 05:52:31.000000000 -0400 +++ httpd.spec 2012-05-22 23:31:12.397142763 -0400 @@ -9,7 +9,7 @@ Summary: Apache HTTP Server Name: httpd Version: 2.2.22 -Release: 4%{?dist} +Release: 4%{?dist}.scripts.%{scriptsversion} URL: http://httpd.apache.org/ Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2 Source1: index.html @@ -58,6 +58,15 @@ Requires(postun): systemd-units Requires(post): systemd-units +Provides: scripts-httpd = %{version}-%{release} +Patch1000: httpd-suexec-scripts.patch +Patch1003: httpd-2.2.x-mod_status-security.patch +Patch1004: httpd-2.2.x-304.patch +Patch1005: httpd-2.2.x-mod_ssl-sessioncaching.patch +Patch1006: httpd-suexec-cloexec.patch +Patch1007: httpd-fixup-vhost.patch +Patch1008: httpd-SSLCompression.patch + %description The Apache HTTP Server is a powerful, efficient, and extensible web server. @@ -68,6 +78,7 @@ Obsoletes: secureweb-devel, apache-devel, stronghold-apache-devel Requires: apr-devel, apr-util-devel, pkgconfig Requires: httpd = %{version}-%{release} +Provides: scripts-httpd-devel = %{version}-%{release} %description devel The httpd-devel package contains the APXS binary and other files @@ -106,6 +117,7 @@ Requires(post): openssl, /bin/cat Requires(pre): httpd Requires: httpd = 0:%{version}-%{release}, httpd-mmn = %{mmnisa} +Provides: scripts-mod_ssl Obsoletes: stronghold-mod_ssl %description -n mod_ssl @@ -133,6 +150,14 @@ # Patch in vendor/release string sed "s/@RELEASE@/%{vstring}/" < %{PATCH20} | patch -p1 +%patch1000 -p1 -b .scripts +%patch1003 -p1 -b .permitstatus +%patch1004 -p1 -b .scripts-304 +%patch1005 -p1 -b .ssl-sessioncache +%patch1006 -p1 -b .cloexec +%patch1007 -p1 -b .fixup-vhost +%patch1008 -p1 -b .sslcompression + # Safety check: prevent build if defined MMN does not equal upstream MMN. vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'` if test "x${vmmn}" != "x%{mmn}"; then @@ -193,10 +219,12 @@ --with-apr=%{_prefix} --with-apr-util=%{_prefix} \ --enable-suexec --with-suexec \ --with-suexec-caller=%{suexec_caller} \ - --with-suexec-docroot=%{contentdir} \ + --with-suexec-docroot=/ \ + --with-suexec-userdir=web_scripts \ + --with-suexec-trusteddir=/usr/libexec/scripts-trusted \ --with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \ --with-suexec-bin=%{_sbindir}/suexec \ - --with-suexec-uidmin=500 --with-suexec-gidmin=100 \ + --with-suexec-uidmin=50 --with-suexec-gidmin=50 \ --enable-pie \ --with-pcre \ $*