buildout.cfg 7.23 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 21
version = 1.5.1
md5sum = 5486180ec5a23efb5cae6d4292b300ab
22
url = https://archive.apache.org/dist/apr/apr-${:version}.tar.bz2
23 24

[apr-util]
25
recipe = hexagonit.recipe.download
26
version = 1.5.4
27
url = https://archive.apache.org/dist/apr/apr-util-${:version}.tar.bz2
28
md5sum = 2202b18f269ad606d70e1864857ed93c
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
version = 2.4.16
34
url = https://archive.apache.org/dist/httpd/httpd-${:version}.tar.bz2
35
md5sum = 2b19cd338fd526dd5a63c57b1e9bfee2
36 37 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
configure-options = --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
                    --disable-static
39 40 41 42 43 44 45 46
                    --enable-authn-alias
                    --enable-bucketeer
                    --enable-cache
                    --enable-case-filter
                    --enable-case-filter-in
                    --enable-cgid
                    --enable-charset-lite
                    --enable-disk-cache
47
                    --enable-mem-cache
48 49 50 51 52 53 54 55 56 57 58 59 60 61
                    --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
62
                    --enable-dav
63
                    --enable-dav-fs
64 65
                    --enable-so
                    --enable-ssl
66
                    --disable-lua
67
                    --with-included-apr
68 69 70
                    --with-ssl=${openssl:location}
                    --with-z=${zlib:location}
                    --with-expat=${libexpat:location}
71
                    --with-libxml2=${libxml2:location}/include/libxml2
72 73
                    --with-pcre=${pcre:location}
                    --with-sqlite3=${sqlite3:location}
74
                    --with-gdbm=${gdbm:location}
75 76 77 78 79 80 81 82 83 84 85 86 87
                    --without-lber
                    --without-ldap
                    --without-ndbm
                    --without-berkeley-db
                    --without-pgsql
                    --without-mysql
                    --without-sqlite2
                    --without-oracle
                    --without-freedts
                    --without-odbc
                    --without-iconv

environment =
88
  PATH=${perl:location}/bin:${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 -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${gdbm:location}/lib
92 93 94

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

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