buildout.cfg 7.13 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.2
md5sum = 4e9769f3349fe11fc0a5e1b224c236aa
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
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
36 37 38 39
pre-configure =
  cp -ar ${apr:location}/apr-${apr:version} srclib/apr/ &&
  cp -ar ${apr-util:location}/apr-util-${apr-util:version} srclib/apr-util
configure-options = --disable-static
40 41 42 43 44 45 46 47
                    --enable-authn-alias
                    --enable-bucketeer
                    --enable-cache
                    --enable-case-filter
                    --enable-case-filter-in
                    --enable-cgid
                    --enable-charset-lite
                    --enable-disk-cache
48
                    --enable-mem-cache
49 50 51 52 53 54 55 56 57 58 59 60 61 62
                    --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
63
                    --enable-dav
64
                    --enable-dav-fs
65 66
                    --enable-so
                    --enable-ssl
67
                    --disable-lua
68
                    --with-included-apr
69 70 71
                    --with-ssl=${openssl:location}
                    --with-z=${zlib:location}
                    --with-expat=${libexpat:location}
72
                    --with-libxml2=${libxml2:location}/include/libxml2
73 74
                    --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
                    --without-lber
                    --without-ldap
                    --without-ndbm
                    --without-berkeley-db
                    --without-pgsql
                    --without-mysql
                    --without-sqlite2
                    --without-oracle
                    --without-freedts
                    --without-odbc
                    --without-iconv

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 -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${gdbm:location}/lib
93 94 95

[apache-antiloris]
# 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 101
# http://www.apachelounge.com/viewtopic.php?p=19139
# http://www.apachelounge.com/viewtopic.php?p=20551
102
patches =
103
  ${:_profile_base_location_}/mod_antiloris-apache-2.4.patch#4f074f035d3b37f3f3e71cd9616440f3
104 105 106 107 108
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 =
109 110 111

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