Revision: | 1.4 |
Committed: | Wed Jun 25 14:43:33 2008 UTC (16 years, 10 months ago) by egeland |
Branch: | MAIN |
CVS Tags: | MotT0_1_0_2, MotT0_1_0_1, MotT0_1_0_0, MotT0_100531_1, MotT0_100528_1, T0Mon_100518_1, T0Mon_100503_1, T0Mon_100316_1, T0Mon_100308_2, T0Mon_100308_1, T0Mon_100216_1, T0Mon_100210_1, T0Mon_100204_4, T0Mon_100204_3, T0Mon_100204_1, T0Mon_100127_1, DBS-APP_20100122_slc4, DBS-APP_20100121_slc4, DBS-WEB_20100120_slc4, DBS-APP_20100120_slc4, DBS-APP_20100118_slc4, DBS-WEB_20100118_slc4, DBS-APP_20100114_slc4, DBS-WEB_20100113_slc4, DAS_20091202, FILEMOVER_20091118, DBS-APPS_20090929, pe20091117a-fromDAS_20090709, pe20091116b-fromDAS_20090709, pe20091116a-fromDAS_20090709, T0Mon_091111_1, DAS_20091104, DBS-WEB_20091021, DAS_20091016, DAS_20091014, DBS-WEB_20091012, DBS-WEB_20090921, pe20090910-fromDAS_20090709, FILEMOVER_20090910, DBS-WEB_20090817, FILEMOVER_20090828, DBS-APPS_20090706, T0Mon_090828_1, T0Mon_090822_1, WEBTOOLS_APPS_20090817, DBS-APPS_20090804, DBS-APPS_20090730, DAS_20090709, forPHEDEX-web-20090722, T0Mon_090715_1, DAS_20090607, DBS-WEB_20090618, DBS-APPS_20090619, T0Mon_090612_1, DBS-APPS_20090608, T0Mon_090611_1, T0Mon_090610_1, DBS-APPS_20090604_1, DAS_20090604, DBS-APPS_20090604, DAS_20090603, DBS-APPS_20090603, T0Mon_090601_1, DBS-APPS_20090528, T0Mon_090527_2, T0Mon_090527_1, condcore306, T0Mon_090522_1, forPHEDEX-web-20090520, T0Mon_090519_2, T0Mon_090519_1, DBS_APPS_20090518, T0Mon_090517_1, T0Mon_090516_1, T0Mon_090515_4, T0Mon_090515_3, T0Mon_090515_2, T0Mon_090515_1, DAS_20090514_3, forPHEDEX-web-20090514, DAS_20090514_2, DAS_20090514_1, DAS_20090514, DBS-WEB_20090512, T0Mon_090510_1, DBS-WEB_20090507, DBS_APPS_20090504, DBS_APPS_20090501, DBS-APPS_20090429_2, DBS-WEB_20090429, DBS-APPS_20090429, DBS-WEB_20090428, forPHEDEX-web-services-20090423, DBS-WEB_20090422, DBS-WEB_20090420, DBS-APPS_20090417, DBS-APPS_20090415, DBS-APPS_20090410, DAS_20090408, DBS-APPS_20090406, T0Mon_090406_1, forPHEDEX-web-services-20090406, DAS_20090330, DBS-APPS_20090326, T0Mon_090326_1, T0Mon_090325_1, DAS_20090319_1, DAS_20090319, DBS-APPS_20090318, T0Mon_090318_1, DBS-APPS_20090316, DAS_20090316, T0Mon_090315_1, DAS_20090313, COUCHDB_20090313, forPHEDEX313a, DBS-APPS_20090310, WEBTOOLS-APPS_20090310_1, WEBTOOLS-APPS_20090310, WEBTOOLS-APPS_20090309, DBS-APPS_20090306, DBS-APPS_20090304_1, DBS-APPS_20090304, DBS-APPS_20090303_1, DBS-APPS_20090303, T0Mon_090303_1, DBS-APPS_20090302, DBS-APPS_20090220_1, DBS-APPS_20090220, T0M_0_0_5, MEMCACHED_20090219_1, MEMCACHED_20090219, forPHEDEX313, WEBTOOLS-APPS_20090217_1, WEBTOOLS-APPS_20090217, WEBTOOLS-APPS_20090216, forPHEDEX-web-services-20090216, condcore305, WEBTOOLS-APPS_20090212, WEBTOOLS-APPS_20090209_64bit, zx20090209, forPHEDEX312, WEBTOOLS-APPS_20090206, T0M_0_0_4, T0M_0_0_3, WEBTOOLS-APPS_20090203_1, WEBTOOLS-APPS_20090203, T0M_0_0_2, zx20090201, WEBTOOLS-APPS_20090130, WEBTOOLS-APPS_20090129, PRODAGENT_0_12_10_pre3, PRODAGENT_0_12_10_pre2_20090127_V2, PRODAGENT_0_12_10_20090122, PRODAGENT_0_12_10_pre1_MISC, sw_20090115a, sw_20090115, forPHEDEX311, forPHEDEX310, forPHEDEX310pre2, forPHEDEX-web-services-20081205, forPHEDEX310pre1, ofctest, testofc, T0Mon_081107_1, T0Mon_081105_1, forPHEDEX307, forFrontend-2, forPHEDEX-web-services-20081008, forPHEDEX-web-services-20081007, forPHEDEX-web302_test1, PRODAGENT_0_12_2, forPHEDEX306, forPHEDEX-datasvc120_test1, T0Mon_080926_1, T0Mon_080920_2, T0Mon_080920_1, T0Mon_080916_2, forFrontend-1, forPHEDEX305, T0Mon_080905_1, T0Mon_080905_01, T0Mon_080902_2, T0Mon_080902_1, T0Mon_080824_1, T0Mon_080823_1, buildset_V2_8, forPHEDEX-web301, re-deps-20080722, nr080714_forCRAB, forPHEDEX304, forPHEDEX-web110, re20080627, forPHEDEX-web300, forPHEDEX-datasvc110 |
Changes since 1.3: | +4 -1 lines |
Log Message: | update version |
# | User | Rev | Content |
---|---|---|---|
1 | egeland | 1.4 | ### RPM external apache2 2.2.9 |
2 | egeland | 1.1 | # See: |
3 | # http://httpd.apache.org/docs/2.2/install.html | ||
4 | # for instruction on how to configure. | ||
5 | |||
6 | egeland | 1.2 | # Required for https and compression support |
7 | Requires: openssl zlib expat uuid | ||
8 | |||
9 | # Can't figure out how to get rpm to stop complaining about this... | ||
10 | # should be in e2fsprogs-libs-1.39-7.slc4 ... | ||
11 | # but Requires uuid doesn't cover it | ||
12 | Provides: libcom_err.so.2 | ||
13 | eulisse | 1.3 | Provides: libcom_err.so.2()(64bit) |
14 | egeland | 1.2 | |
15 | egeland | 1.4 | # Note: it appears that Apache doesn't keep old versions of httpd lying around |
16 | # That's probably good for security. | ||
17 | egeland | 1.1 | Source0: http://mirror.switch.ch/mirror/apache/dist/httpd/httpd-%realversion.tar.gz |
18 | egeland | 1.4 | Source1: http://www.apache.org/dist/httpd/httpd-%realversion.tar.gz |
19 | egeland | 1.1 | |
20 | %prep | ||
21 | %setup -n httpd-%realversion | ||
22 | |||
23 | %build | ||
24 | # See here: | ||
25 | # | ||
26 | # http://httpd.apache.org/docs/2.2/programs/configure.html#installationdirectories | ||
27 | # | ||
28 | # for configure options. | ||
29 | |||
30 | ./configure --prefix=%i --with-mpm=prefork \ | ||
31 | --enable-mods-shared=all \ | ||
32 | --enable-so \ | ||
33 | --with-included-apr \ | ||
34 | --enable-cache \ | ||
35 | --enable-proxy \ | ||
36 | --enable-deflate \ | ||
37 | --enable-disk-cache \ | ||
38 | --enable-file-cache \ | ||
39 | --enable-expires \ | ||
40 | --enable-headers \ | ||
41 | --enable-rewrite \ | ||
42 | --enable-ssl \ | ||
43 | --with-openssl=$OPENSSL_ROOT \ | ||
44 | egeland | 1.2 | --with-z=$ZLIB_ROOT \ |
45 | --with-expat=$EXPAT_ROOT \ | ||
46 | --with-uuid=$UUID_ROOT | ||
47 | |||
48 | egeland | 1.1 | |
49 | |||
50 | # %makeprocesses is for multiple compile processes -j X | ||
51 | make %makeprocesses | ||
52 | |||
53 | # Generates the dependencies-setup.{sh,csh} files so that | ||
54 | # sourcing init.{sh,csh} picks up also the environment of | ||
55 | # dependencies. | ||
56 | |||
57 | rm -rf %i/etc/profile.d | ||
58 | mkdir -p %i/etc/profile.d | ||
59 | echo '#!/bin/sh' > %{i}/etc/profile.d/dependencies-setup.sh | ||
60 | echo '#!/bin/tcsh' > %{i}/etc/profile.d/dependencies-setup.csh | ||
61 | echo requiredtools `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` | ||
62 | for tool in `echo %{requiredtools} | sed -e's|\s+| |;s|^\s+||'` | ||
63 | do | ||
64 | case X$tool in | ||
65 | Xdistcc|Xccache ) | ||
66 | ;; | ||
67 | * ) | ||
68 | toolcap=`echo $tool | tr a-z- A-Z_` | ||
69 | eval echo ". $`echo ${toolcap}_ROOT`/etc/profile.d/init.sh" >> %{i}/etc/profile.d/dependencies-setup.sh | ||
70 | eval echo "source $`echo ${toolcap}_ROOT`/etc/profile.d/init.csh" >> %{i}/etc/profile.d/dependencies-setup.csh | ||
71 | ;; | ||
72 | esac | ||
73 | done | ||
74 | |||
75 | perl -p -i -e 's|\. /etc/profile\.d/init\.sh||' %{i}/etc/profile.d/dependencies-setup.sh | ||
76 | perl -p -i -e 's|source /etc/profile\.d/init\.csh||' %{i}/etc/profile.d/dependencies-setup.csh | ||
77 | |||
78 | egeland | 1.2 | find -type f | xargs perl -p -i -e "s|#\!.*perl(.*)|#!/usr/bin/env perl$1|" |
79 | egeland | 1.1 | |
80 | %install | ||
81 | make install | ||
82 | |||
83 | %post | ||
84 | %{relocateConfig}etc/profile.d/dependencies-setup.sh | ||
85 | %{relocateConfig}etc/profile.d/dependencies-setup.csh | ||
86 | # Relocate the configuration files. | ||
87 | %{relocateConfig}/bin/apachectl | ||
88 | %{relocateConfig}/bin/apr-1-config | ||
89 | %{relocateConfig}/bin/apu-1-config | ||
90 | %{relocateConfig}/bin/apxs | ||
91 | %{relocateConfig}/bin/envvars | ||
92 | %{relocateConfig}/bin/envvars-std | ||
93 | %{relocateConfig}/build/apr_rules.mk | ||
94 | %{relocateConfig}/build/config.nice | ||
95 | %{relocateConfig}/build/config_vars.mk | ||
96 | %{relocateConfig}/build/libtool | ||
97 | %{relocateConfig}/conf/extra/httpd-autoindex.conf | ||
98 | %{relocateConfig}/conf/extra/httpd-dav.conf | ||
99 | %{relocateConfig}/conf/extra/httpd-manual.conf | ||
100 | %{relocateConfig}/conf/extra/httpd-multilang-errordoc.conf | ||
101 | %{relocateConfig}/conf/extra/httpd-ssl.conf | ||
102 | %{relocateConfig}/conf/extra/httpd-vhosts.conf | ||
103 | %{relocateConfig}/conf/httpd.conf | ||
104 | %{relocateConfig}/conf/original/extra/httpd-autoindex.conf | ||
105 | %{relocateConfig}/conf/original/extra/httpd-dav.conf | ||
106 | %{relocateConfig}/conf/original/extra/httpd-manual.conf | ||
107 | %{relocateConfig}/conf/original/extra/httpd-multilang-errordoc.conf | ||
108 | %{relocateConfig}/conf/original/extra/httpd-ssl.conf | ||
109 | %{relocateConfig}/conf/original/extra/httpd-vhosts.conf | ||
110 | %{relocateConfig}/conf/original/httpd.conf | ||
111 | %{relocateConfig}/include/ap_config_auto.h | ||
112 | %{relocateConfig}/include/ap_config_layout.h | ||
113 | %{relocateConfig}/lib/libapr-1.la | ||
114 | %{relocateConfig}/lib/libaprutil-1.la | ||
115 | %{relocateConfig}/lib/pkgconfig/apr-1.pc | ||
116 | %{relocateConfig}/lib/pkgconfig/apr-util-1.pc |