Merge remote-tracking branch 'origin/master' into erp5-component
[slapos.git] / component / apache / buildout.cfg
1 [buildout]
2 parts =
3   apache
4   apache-antiloris
5
6 extends =
7   ../libexpat/buildout.cfg
8   ../libuuid/buildout.cfg
9   ../gdbm/buildout.cfg
10   ../openssl/buildout.cfg
11   ../pcre/buildout.cfg
12   ../pkgconfig/buildout.cfg
13   ../sqlite3/buildout.cfg
14   ../zlib/buildout.cfg
15
16 [apr]
17 recipe = hexagonit.recipe.download
18 version = 1.4.6
19 url = http://mir2.ovh.net/ftp.apache.org/dist/apr/apr-${:version}.tar.bz2
20 md5sum = ffee70a111fd07372982b0550bbb14b7
21
22 [apr-util]
23 recipe = hexagonit.recipe.download
24 version = 1.5.1
25 url = http://mir2.ovh.net/ftp.apache.org/dist/apr/apr-util-${:version}.tar.bz2
26 md5sum = 9c1db8606e520f201c451ec9a0b095f6
27
28 [apache]
29 # inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
30 recipe = hexagonit.recipe.cmmi
31 depends =
32   ${gdbm:version}
33 version = 2.4.4
34 revision = 1
35 url = http://mir2.ovh.net/ftp.apache.org/dist/httpd/httpd-${:version}.tar.bz2
36 md5sum = 0e712ee2119cd798c8ae39d5f11a9206
37 configure-command = cp -ar ${apr:location}/apr-${apr:version} srclib/apr/; cp -ar ${apr-util:location}/apr-util-${apr-util:version} srclib/apr-util; ./configure
38 configure-options = --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
39                     --disable-static
40                     --enable-authn-alias
41                     --enable-bucketeer
42                     --enable-cache
43                     --enable-case-filter
44                     --enable-case-filter-in
45                     --enable-cgid
46                     --enable-charset-lite
47                     --enable-disk-cache
48                     --enable-mem-cache
49                     --enable-echo
50                     --enable-exception-hook
51                     --enable-mods-shared=all
52                     --enable-optional-fn-export
53                     --enable-optional-fn-import
54                     --enable-optional-hook-export
55                     --enable-optional-hook-import
56                     --enable-proxy
57                     --enable-proxy-ajp
58                     --enable-proxy-balancer
59                     --enable-proxy-connect
60                     --enable-proxy-ftp
61                     --enable-proxy-http
62                     --enable-proxy-scgi
63                     --enable-dav
64                     --enable-dav-fs
65                     --enable-so
66                     --enable-ssl
67                     --disable-lua
68                     --with-included-apr
69                     --with-ssl=${openssl:location}
70                     --with-z=${zlib:location}
71                     --with-expat=${libexpat:location}
72                     --with-pcre=${pcre:location}
73                     --with-sqlite3=${sqlite3:location}
74                     --with-gdbm=${gdbm:location}
75                     --without-lber
76                     --without-ldap
77                     --without-ndbm
78                     --without-berkeley-db
79                     --without-pgsql
80                     --without-mysql
81                     --without-sqlite2
82                     --without-oracle
83                     --without-freedts
84                     --without-odbc
85                     --without-iconv
86
87 environment =
88   PATH=${pkgconfig:location}/bin:%(PATH)s
89   PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
90   CPPFLAGS =-I${libuuid:location}/include -I${openssl:location}/include
91   LDFLAGS =-Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib -L${libuuid:location}/lib -Wl,-rpath=${libuuid:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${gdbm:location}/lib
92
93 [mod_antiloris-apache-2.4.patch]
94 # http://www.apachelounge.com/viewtopic.php?p=19139
95 # http://www.apachelounge.com/viewtopic.php?p=20551
96 recipe = hexagonit.recipe.download
97 url =${:_profile_base_location_}/${:filename}
98 filename = mod_antiloris-apache-2.4.patch
99 download-only = true
100 md5sum = 4f074f035d3b37f3f3e71cd9616440f3
101
102 [apache-antiloris]
103 # Note: Shall react on each build of apache and reinstall itself
104 recipe = hexagonit.recipe.cmmi
105 url = http://sourceforge.net/projects/mod-antiloris/files/mod_antiloris-0.4.tar.bz2/download
106 md5sum = 66862bf10e9be3a023e475604a28a0b4
107 patch-options = -p0
108 patches =
109   ${mod_antiloris-apache-2.4.patch:location}/${mod_antiloris-apache-2.4.patch:filename}
110 depends =
111   ${apache:version}
112   ${apache:revision}
113   ${mod_antiloris-apache-2.4.patch:md5sum}
114 configure-command = ${apache:location}/bin/apxs
115 configure-options = -c mod_antiloris.c
116 make-binary = ${:configure-command}
117 make-options = -i -a -n antiloris mod_antiloris.la
118 make-targets =
119
120 [apache-2.2]
121 # inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
122 recipe = hexagonit.recipe.cmmi
123 url = http://mir2.ovh.net/ftp.apache.org/dist//httpd/httpd-2.2.24.tar.gz
124 md5sum = 64a3392018ad60583209a16d728180d3
125 patch-options = -p1
126 configure-options = --disable-static
127                     --enable-authn-alias
128                     --enable-bucketeer
129                     --enable-cache
130                     --enable-case-filter
131                     --enable-case-filter-in
132                     --enable-cgid
133                     --enable-charset-lite
134                     --enable-disk-cache
135                     --enable-mem-cache
136                     --enable-echo
137                     --enable-exception-hook
138                     --enable-mods-shared=all
139                     --enable-optional-fn-export
140                     --enable-optional-fn-import
141                     --enable-optional-hook-export
142                     --enable-optional-hook-import
143                     --enable-proxy
144                     --enable-proxy-ajp
145                     --enable-proxy-balancer
146                     --enable-proxy-connect
147                     --enable-proxy-ftp
148                     --enable-proxy-http
149                     --enable-proxy-scgi
150                     --enable-dav
151                     --enable-dav-fs
152                     --enable-dav-lock
153                     --enable-so
154                     --enable-ssl
155                     --with-included-apr
156                     --with-ssl=${openssl:location}
157                     --with-z=${zlib:location}
158                     --with-expat=${libexpat:location}
159                     --with-pcre=${pcre:location}
160                     --with-sqlite3=${sqlite3:location}
161                     --with-gdbm=${gdbm:location}
162                     --without-lber
163                     --without-ldap
164                     --without-ndbm
165                     --without-berkeley-db
166                     --without-pgsql
167                     --without-mysql
168                     --without-sqlite2
169                     --without-oracle
170                     --without-freedts
171                     --without-odbc
172                     --without-iconv
173
174 environment =
175   PATH=${pkgconfig:location}/bin:%(PATH)s
176   PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
177   CPPFLAGS =-I${libuuid:location}/include
178   LDFLAGS =-Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib -L${libuuid:location}/lib -Wl,-rpath=${libuuid:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${gdbm:location}/lib
179
180 [apache-antiloris-apache-2.2]
181 # Note: Shall react on each build of apache and reinstall itself
182 recipe = hexagonit.recipe.cmmi
183 url = http://sourceforge.net/projects/mod-antiloris/files/mod_antiloris-0.4.tar.bz2/download
184 md5sum = 66862bf10e9be3a023e475604a28a0b4
185 configure-command = ${apache-2.2:location}/bin/apxs
186 configure-options = -c mod_antiloris.c
187 make-binary = ${:configure-command}
188 make-options = -i -a -n antiloris mod_antiloris.la
189 make-targets =