buildout.cfg 8.22 KB
Newer Older
1 2 3 4 5 6
[buildout]
parts =
  apache
  apache-antiloris

extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
7 8 9
  ../libexpat/buildout.cfg
  ../libuuid/buildout.cfg
  ../gdbm/buildout.cfg
Jondy Zhao's avatar
Jondy Zhao committed
10
  ../openldap/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
11 12 13 14 15
  ../openssl/buildout.cfg
  ../pcre/buildout.cfg
  ../pkgconfig/buildout.cfg
  ../sqlite3/buildout.cfg
  ../zlib/buildout.cfg
16

17
[apr]
18 19 20
recipe = hexagonit.recipe.download
version = 1.4.6
url = http://mir2.ovh.net/ftp.apache.org/dist/apr/apr-${:version}.tar.bz2
21 22 23
md5sum = ffee70a111fd07372982b0550bbb14b7

[apr-util]
24
recipe = hexagonit.recipe.download
Jondy Zhao's avatar
Jondy Zhao committed
25
version = 1.5.2
26
url = http://psg.mtu.edu/pub/apache/apr/apr-util-${:version}.tar.bz2
Jondy Zhao's avatar
Jondy Zhao committed
27
md5sum = 89c1348aa79e898d7c34a6206311c9c2
28

29 30
[apache]
# inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
31
recipe = slapos.recipe.cmmi
32 33
depends =
  ${gdbm:version}
34 35
version = 2.4.4
revision = 1
36
url = http://mir2.ovh.net/ftp.apache.org/dist/httpd/httpd-${:version}.tar.bz2
37
md5sum = 0e712ee2119cd798c8ae39d5f11a9206
38 39 40
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
configure-options = --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
                    --disable-static
41 42 43 44 45 46 47 48
                    --enable-authn-alias
                    --enable-bucketeer
                    --enable-cache
                    --enable-case-filter
                    --enable-case-filter-in
                    --enable-cgid
                    --enable-charset-lite
                    --enable-disk-cache
49
                    --enable-mem-cache
50 51 52 53 54 55 56 57 58 59 60 61 62 63
                    --enable-echo
                    --enable-exception-hook
                    --enable-mods-shared=all
                    --enable-optional-fn-export
                    --enable-optional-fn-import
                    --enable-optional-hook-export
                    --enable-optional-hook-import
                    --enable-proxy
                    --enable-proxy-ajp
                    --enable-proxy-balancer
                    --enable-proxy-connect
                    --enable-proxy-ftp
                    --enable-proxy-http
                    --enable-proxy-scgi
64
                    --enable-dav
65
                    --enable-dav-fs
66 67
                    --enable-so
                    --enable-ssl
68
                    --disable-lua
69
                    --with-included-apr
70 71 72 73 74
                    --with-ssl=${openssl:location}
                    --with-z=${zlib:location}
                    --with-expat=${libexpat:location}
                    --with-pcre=${pcre:location}
                    --with-sqlite3=${sqlite3:location}
75
                    --with-gdbm=${gdbm:location}
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
                    --without-lber
                    --without-ldap
                    --without-ndbm
                    --without-berkeley-db
                    --without-pgsql
                    --without-mysql
                    --without-sqlite2
                    --without-oracle
                    --without-freedts
                    --without-odbc
                    --without-iconv

environment =
  PATH=${pkgconfig:location}/bin:%(PATH)s
  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
[mod_antiloris-apache-2.4.patch]
95
# http://www.apachelounge.com/viewtopic.php?p=19139
96 97 98 99 100
# http://www.apachelounge.com/viewtopic.php?p=20551
recipe = hexagonit.recipe.download
url =${:_profile_base_location_}/${:filename}
filename = mod_antiloris-apache-2.4.patch
download-only = true
101
md5sum = 4f074f035d3b37f3f3e71cd9616440f3
102

103 104
[apache-antiloris]
# Note: Shall react on each build of apache and reinstall itself
105
recipe = slapos.recipe.cmmi
106 107
url = http://sourceforge.net/projects/mod-antiloris/files/mod_antiloris-0.4.tar.bz2/download
md5sum = 66862bf10e9be3a023e475604a28a0b4
108 109 110 111 112
patch-options = -p0
patches =
  ${mod_antiloris-apache-2.4.patch:location}/${mod_antiloris-apache-2.4.patch:filename}
depends =
  ${apache:version}
113
  ${apache:revision}
114
  ${mod_antiloris-apache-2.4.patch:md5sum}
115 116 117 118 119
configure-command = ${apache:location}/bin/apxs
configure-options = -c mod_antiloris.c
make-binary = ${:configure-command}
make-options = -i -a -n antiloris mod_antiloris.la
make-targets =
120 121 122

[apache-2.2]
# inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
123
recipe = slapos.recipe.cmmi
124 125 126
version = 2.2.25
url = http://mir2.ovh.net/ftp.apache.org/dist/httpd/httpd-${:version}.tar.bz2
md5sum = 9ebe3070c0bb4311f21a0cd0e34f0045
127 128 129 130 131 132 133 134 135 136
patch-options = -p1
configure-options = --disable-static
                    --enable-authn-alias
                    --enable-bucketeer
                    --enable-cache
                    --enable-case-filter
                    --enable-case-filter-in
                    --enable-cgid
                    --enable-charset-lite
                    --enable-disk-cache
137
                    --enable-mem-cache
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
                    --enable-echo
                    --enable-exception-hook
                    --enable-mods-shared=all
                    --enable-optional-fn-export
                    --enable-optional-fn-import
                    --enable-optional-hook-export
                    --enable-optional-hook-import
                    --enable-proxy
                    --enable-proxy-ajp
                    --enable-proxy-balancer
                    --enable-proxy-connect
                    --enable-proxy-ftp
                    --enable-proxy-http
                    --enable-proxy-scgi
                    --enable-dav
                    --enable-dav-fs
Viktor Horvath's avatar
Viktor Horvath committed
154
                    --enable-dav-lock
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
                    --enable-so
                    --enable-ssl
                    --with-included-apr
                    --with-ssl=${openssl:location}
                    --with-z=${zlib:location}
                    --with-expat=${libexpat:location}
                    --with-pcre=${pcre:location}
                    --with-sqlite3=${sqlite3:location}
                    --with-gdbm=${gdbm:location}
                    --without-lber
                    --without-ldap
                    --without-ndbm
                    --without-berkeley-db
                    --without-pgsql
                    --without-mysql
                    --without-sqlite2
                    --without-oracle
                    --without-freedts
                    --without-odbc
                    --without-iconv

environment =
  PATH=${pkgconfig:location}/bin:%(PATH)s
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
  CPPFLAGS =-I${libuuid:location}/include
  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

[apache-antiloris-apache-2.2]
# Note: Shall react on each build of apache and reinstall itself
184
recipe = slapos.recipe.cmmi
185 186
url = http://sourceforge.net/projects/mod-antiloris/files/mod_antiloris-0.4.tar.bz2/download
md5sum = 66862bf10e9be3a023e475604a28a0b4
187 188
depends =
  ${apache-2.2:version}
189 190 191 192 193
configure-command = ${apache-2.2:location}/bin/apxs
configure-options = -c mod_antiloris.c
make-binary = ${:configure-command}
make-options = -i -a -n antiloris mod_antiloris.la
make-targets =
194 195

[apache:cygwin]
Jondy Zhao's avatar
Jondy Zhao committed
196
dependencies = openldap
197
url = ftp://lug.mtu.edu/cygwin/x86/release/apache2/apache2-2.2.23-2-src.tar.bz2
Jondy Zhao's avatar
Jondy Zhao committed
198
md5sum = 797e50a442123946990ce9e7345b5ad4
199 200 201 202 203
configure-command = cygport
configure-options =
  apache2.cygport
  prep
  compile
Jondy Zhao's avatar
Jondy Zhao committed
204 205 206 207 208
make-options = -C apache2-2.2.23-2/build

[apache-antiloris:cygwin]
patches =
configure-command = ${apache:location}/sbin/apxs
209 210 211

[apache-2.2:cygwin]
dependencies = openldap
212
url = ftp://lug.mtu.edu/cygwin/x86/release/apache2/apache2-2.2.23-2-src.tar.bz2
213 214 215 216 217 218 219 220 221 222 223
md5sum = 797e50a442123946990ce9e7345b5ad4
configure-command = cygport
configure-options =
  apache2.cygport
  prep
  compile
make-options = -C apache2-2.2.23-2/build

[apache-antiloris-apache-2.2:cygwin]
patches =
configure-command = ${apache:location}/sbin/apxs