| [1539] | 1 | --- httpd.spec.orig 2010-04-06 18:26:08.000000000 -0400 |
|---|
| 2 | +++ httpd.spec 2010-04-14 04:14:13.000000000 -0400 |
|---|
| [1259] | 3 | @@ -7,7 +7,7 @@ |
|---|
| [926] | 4 | Summary: Apache HTTP Server |
|---|
| 5 | Name: httpd |
|---|
| [1539] | 6 | Version: 2.2.15 |
|---|
| 7 | -Release: 1%{?dist}.1 |
|---|
| 8 | +Release: 1%{?dist}.1.scripts.%{scriptsversion} |
|---|
| [926] | 9 | URL: http://httpd.apache.org/ |
|---|
| 10 | Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz |
|---|
| 11 | Source1: index.html |
|---|
| [1539] | 12 | @@ -55,6 +55,13 @@ |
|---|
| [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 |
|---|
| [1] | 22 | + |
|---|
| 23 | %description |
|---|
| 24 | The Apache HTTP Server is a powerful, efficient, and extensible |
|---|
| 25 | web server. |
|---|
| [1539] | 26 | @@ -102,6 +109,7 @@ |
|---|
| [925] | 27 | Requires(post): openssl >= 0.9.7f-4, /bin/cat |
|---|
| [1499] | 28 | Requires(pre): httpd |
|---|
| [925] | 29 | Requires: httpd = 0:%{version}-%{release}, httpd-mmn = %{mmn} |
|---|
| 30 | +Provides: scripts-mod_ssl |
|---|
| 31 | Obsoletes: stronghold-mod_ssl |
|---|
| 32 | |
|---|
| 33 | %description -n mod_ssl |
|---|
| [1539] | 34 | @@ -129,6 +137,12 @@ |
|---|
| [1] | 35 | # Patch in vendor/release string |
|---|
| 36 | sed "s/@RELEASE@/%{vstring}/" < %{PATCH20} | patch -p1 |
|---|
| 37 | |
|---|
| 38 | +%patch1000 -p1 -b .scripts |
|---|
| [795] | 39 | +%patch1003 -p1 -b .permitstatus |
|---|
| [1035] | 40 | +%patch1004 -p1 -b .scripts-304 |
|---|
| [1348] | 41 | +%patch1005 -p1 -b .ssl-sessioncache |
|---|
| [1356] | 42 | +%patch1006 -p1 -b .cloexec |
|---|
| [1] | 43 | + |
|---|
| 44 | # Safety check: prevent build if defined MMN does not equal upstream MMN. |
|---|
| 45 | vmmn=`echo MODULE_MAGIC_NUMBER_MAJOR | cpp -include include/ap_mmn.h | sed -n '/^2/p'` |
|---|
| 46 | if test "x${vmmn}" != "x%{mmn}"; then |
|---|
| [1539] | 47 | @@ -177,10 +191,12 @@ |
|---|
| [684] | 48 | --with-apr=%{_prefix} --with-apr-util=%{_prefix} \ |
|---|
| 49 | --enable-suexec --with-suexec \ |
|---|
| 50 | --with-suexec-caller=%{suexec_caller} \ |
|---|
| 51 | - --with-suexec-docroot=%{contentdir} \ |
|---|
| [1288] | 52 | + --with-suexec-docroot=/ \ |
|---|
| [684] | 53 | + --with-suexec-userdir=web_scripts \ |
|---|
| [824] | 54 | + --with-suexec-trusteddir=/usr/libexec/scripts-trusted \ |
|---|
| [684] | 55 | --with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \ |
|---|
| 56 | --with-suexec-bin=%{_sbindir}/suexec \ |
|---|
| 57 | - --with-suexec-uidmin=500 --with-suexec-gidmin=100 \ |
|---|
| 58 | + --with-suexec-uidmin=50 --with-suexec-gidmin=50 \ |
|---|
| 59 | --enable-pie \ |
|---|
| 60 | --with-pcre \ |
|---|
| 61 | $* |
|---|