| [1499] | 1 | --- httpd.spec.orig 2010-02-28 05:01:55.000000000 -0500 |
|---|
| [1505] | 2 | +++ httpd.spec 2010-03-11 05:30:54.000000000 -0500 |
|---|
| [1259] | 3 | @@ -7,7 +7,7 @@ |
|---|
| [926] | 4 | Summary: Apache HTTP Server |
|---|
| 5 | Name: httpd |
|---|
| [1499] | 6 | Version: 2.2.14 |
|---|
| [1306] | 7 | -Release: 1%{?dist} |
|---|
| 8 | +Release: 1.scripts.%{scriptsversion}%{?dist} |
|---|
| [926] | 9 | URL: http://httpd.apache.org/ |
|---|
| 10 | Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz |
|---|
| 11 | Source1: index.html |
|---|
| [1505] | 12 | @@ -57,6 +57,14 @@ |
|---|
| [1] | 13 | Conflicts: pcre < 4.0 |
|---|
| [1259] | 14 | Requires: httpd-tools = %{version}-%{release}, apr-util-ldap |
|---|
| [1] | 15 | |
|---|
| [925] | 16 | +Provides: scripts-httpd |
|---|
| [1] | 17 | +Patch1000: httpd-suexec-scripts.patch |
|---|
| [795] | 18 | +Patch1003: httpd-2.2.x-mod_status-security.patch |
|---|
| [1035] | 19 | +Patch1004: httpd-2.2.x-304.patch |
|---|
| [1348] | 20 | +Patch1005: httpd-2.2.x-mod_ssl-sessioncaching.patch |
|---|
| [1356] | 21 | +Patch1006: httpd-suexec-cloexec.patch |
|---|
| [1505] | 22 | +Patch1007: httpd-2.2.x-CVE-2010-0434.patch |
|---|
| [1] | 23 | + |
|---|
| 24 | %description |
|---|
| 25 | The Apache HTTP Server is a powerful, efficient, and extensible |
|---|
| 26 | web server. |
|---|
| [1505] | 27 | @@ -104,6 +112,7 @@ |
|---|
| [925] | 28 | Requires(post): openssl >= 0.9.7f-4, /bin/cat |
|---|
| [1499] | 29 | Requires(pre): httpd |
|---|
| [925] | 30 | Requires: httpd = 0:%{version}-%{release}, httpd-mmn = %{mmn} |
|---|
| 31 | +Provides: scripts-mod_ssl |
|---|
| 32 | Obsoletes: stronghold-mod_ssl |
|---|
| 33 | |
|---|
| 34 | %description -n mod_ssl |
|---|
| [1505] | 35 | @@ -133,6 +142,13 @@ |
|---|
| [1] | 36 | # Patch in vendor/release string |
|---|
| 37 | sed "s/@RELEASE@/%{vstring}/" < %{PATCH20} | patch -p1 |
|---|
| 38 | |
|---|
| 39 | +%patch1000 -p1 -b .scripts |
|---|
| [795] | 40 | +%patch1003 -p1 -b .permitstatus |
|---|
| [1035] | 41 | +%patch1004 -p1 -b .scripts-304 |
|---|
| [1348] | 42 | +%patch1005 -p1 -b .ssl-sessioncache |
|---|
| [1356] | 43 | +%patch1006 -p1 -b .cloexec |
|---|
| [1505] | 44 | +%patch1007 -p1 -b .cve-2010-0434 |
|---|
| [1] | 45 | + |
|---|
| 46 | # Safety check: prevent build if defined MMN does not equal upstream MMN. |
|---|
| 47 | vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'` |
|---|
| 48 | if test "x${vmmn}" != "x%{mmn}"; then |
|---|
| [1505] | 49 | @@ -181,10 +197,12 @@ |
|---|
| [684] | 50 | --with-apr=%{_prefix} --with-apr-util=%{_prefix} \ |
|---|
| 51 | --enable-suexec --with-suexec \ |
|---|
| 52 | --with-suexec-caller=%{suexec_caller} \ |
|---|
| 53 | - --with-suexec-docroot=%{contentdir} \ |
|---|
| [1288] | 54 | + --with-suexec-docroot=/ \ |
|---|
| [684] | 55 | + --with-suexec-userdir=web_scripts \ |
|---|
| [824] | 56 | + --with-suexec-trusteddir=/usr/libexec/scripts-trusted \ |
|---|
| [684] | 57 | --with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \ |
|---|
| 58 | --with-suexec-bin=%{_sbindir}/suexec \ |
|---|
| 59 | - --with-suexec-uidmin=500 --with-suexec-gidmin=100 \ |
|---|
| 60 | + --with-suexec-uidmin=50 --with-suexec-gidmin=50 \ |
|---|
| 61 | --enable-pie \ |
|---|
| 62 | --with-pcre \ |
|---|
| 63 | $* |
|---|