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

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

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

[apr-util]
25
recipe = hexagonit.recipe.download
26
version = 1.5.3
27
url = http://mir2.ovh.net/ftp.apache.org/dist/apr/apr-util-${:version}.tar.bz2
28
md5sum = 6f3417691c7a27090f36e7cf4d94b36e
29

30 31
[apache]
# inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
32
recipe = slapos.recipe.cmmi
33 34
depends =
  ${gdbm:version}
35
version = 2.4.9
36
revision = 1
37
url = http://mir2.ovh.net/ftp.apache.org/dist/httpd/httpd-${:version}.tar.bz2
38
md5sum = 2ef4e65353497606b24fa9bb3e5a3c40
39 40 41
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
42 43 44 45 46 47 48 49
                    --enable-authn-alias
                    --enable-bucketeer
                    --enable-cache
                    --enable-case-filter
                    --enable-case-filter-in
                    --enable-cgid
                    --enable-charset-lite
                    --enable-disk-cache
50
                    --enable-mem-cache
51 52 53 54 55 56 57 58 59 60 61 62 63 64
                    --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
65
                    --enable-dav
66
                    --enable-dav-fs
67 68
                    --enable-so
                    --enable-ssl
69
                    --disable-lua
70
                    --with-included-apr
71 72 73
                    --with-ssl=${openssl:location}
                    --with-z=${zlib:location}
                    --with-expat=${libexpat:location}
74
                    --with-libxml2=${libxml2:location}/include/libxml2
75 76
                    --with-pcre=${pcre:location}
                    --with-sqlite3=${sqlite3:location}
77
                    --with-gdbm=${gdbm:location}
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 =
91
  PATH=${perl:location}/bin:${pkgconfig:location}/bin:%(PATH)s
92
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
93
  CPPFLAGS =-I${libuuid:location}/include -I${openssl:location}/include
94
  LDFLAGS =-Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib -L${libuuid:location}/lib -Wl,-rpath=${libuuid:location}/lib -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${gdbm:location}/lib
95 96 97

[apache-antiloris]
# Note: Shall react on each build of apache and reinstall itself
98
recipe = slapos.recipe.cmmi
99
url = http://downloads.sourceforge.net/project/mod-antiloris/mod_antiloris-0.4.tar.bz2
100
md5sum = 66862bf10e9be3a023e475604a28a0b4
101
patch-options = -p0
102 103
# http://www.apachelounge.com/viewtopic.php?p=19139
# http://www.apachelounge.com/viewtopic.php?p=20551
104
patches =
105
  ${:_profile_base_location_}/mod_antiloris-apache-2.4.patch#4f074f035d3b37f3f3e71cd9616440f3
106 107
depends =
  ${apache:version}
108
  ${apache:revision}
109
  ${gdbm:version}
110 111 112 113 114
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 =
115 116 117

[apache-2.2]
# inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
118
recipe = slapos.recipe.cmmi
119
version = 2.2.27
120
url = http://mir2.ovh.net/ftp.apache.org/dist/httpd/httpd-${:version}.tar.bz2
121
md5sum = 8faef0decf3fa7e69b2568eb2105a3d8
122 123 124 125 126 127 128 129 130 131
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
132
                    --enable-mem-cache
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
                    --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
149
                    --enable-dav-lock
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
                    --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 =
172
  PATH=${perl:location}/bin:${pkgconfig:location}/bin:%(PATH)s
173 174 175 176 177 178
  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
179
recipe = slapos.recipe.cmmi
180
url = http://downloads.sourceforge.net/project/mod-antiloris/mod_antiloris-0.4.tar.bz2
181
md5sum = 66862bf10e9be3a023e475604a28a0b4
182 183
depends =
  ${apache-2.2:version}
184 185 186 187 188
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 =