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