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

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

21
[apr]
22
recipe = slapos.recipe.build:download-unpacked
23
shared = false
24
strip-top-level-dir = false
25 26
version = 1.5.2
md5sum = 4e9769f3349fe11fc0a5e1b224c236aa
27
url = https://archive.apache.org/dist/apr/apr-${:version}.tar.bz2
28 29

[apr-util]
30
recipe = slapos.recipe.build:download-unpacked
31
shared = false
32
strip-top-level-dir = false
33
version = 1.5.4
34
url = https://archive.apache.org/dist/apr/apr-util-${:version}.tar.bz2
35
md5sum = 2202b18f269ad606d70e1864857ed93c
36

37 38
[apache]
# inspired on http://old.aclark.net/team/aclark/blog/a-lamp-buildout-for-wordpress-and-other-php-apps/
39
recipe = slapos.recipe.cmmi
40
shared = false
41
version = 2.4.41
42
url = https://archive.apache.org/dist/httpd/httpd-${:version}.tar.bz2
43
md5sum = dfc674f8f454e3bc2d4ccd73ad3b5f1e
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
44 45 46 47
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
48 49 50 51 52 53 54 55
                    --enable-authn-alias
                    --enable-bucketeer
                    --enable-cache
                    --enable-case-filter
                    --enable-case-filter-in
                    --enable-cgid
                    --enable-charset-lite
                    --enable-disk-cache
56
                    --enable-mem-cache
57
                    --enable-echo
58
                    --enable-http2
59 60 61 62 63 64 65 66 67 68 69 70 71
                    --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
72
                    --enable-dav
73
                    --enable-dav-fs
74 75
                    --enable-so
                    --enable-ssl
76
                    --disable-lua
77
                    --with-included-apr
78 79 80
                    --with-ssl=${openssl:location}
                    --with-z=${zlib:location}
                    --with-expat=${libexpat:location}
81
                    --with-libxml2=${libxml2:location}/include/libxml2
82 83
                    --with-pcre=${pcre:location}
                    --with-sqlite3=${sqlite3:location}
84
                    --with-gdbm=${gdbm:location}
85
                    --with-nghttp2=${nghttp2:location}
86 87 88 89 90 91 92 93 94 95 96 97 98
                    --without-lber
                    --without-ldap
                    --without-ndbm
                    --without-berkeley-db
                    --without-pgsql
                    --without-mysql
                    --without-sqlite2
                    --without-oracle
                    --without-freedts
                    --without-odbc
                    --without-iconv

environment =
99
  PATH=${perl:location}/bin:${pkgconfig:location}/bin:%(PATH)s
100
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig
101
  CPPFLAGS =-I${libuuid:location}/include -I${openssl:location}/include
102
  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
103 104 105

[apache-antiloris]
# Note: Shall react on each build of apache and reinstall itself
106
recipe = slapos.recipe.cmmi
107
shared = false
108
url = http://downloads.sourceforge.net/project/mod-antiloris/mod_antiloris-0.4.tar.bz2
109
md5sum = 66862bf10e9be3a023e475604a28a0b4
110
patch-options = -p0
111 112
# http://www.apachelounge.com/viewtopic.php?p=19139
# http://www.apachelounge.com/viewtopic.php?p=20551
113
patches =
114
  ${:_profile_base_location_}/mod_antiloris-apache-2.4.patch#4f074f035d3b37f3f3e71cd9616440f3
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 =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
120 121
environment =
  PATH=${patch:location}/bin:%(PATH)s
122

123 124
[template-apache-backend-conf]
recipe = slapos.recipe.build:download
125
shared = false
126
url = ${:_profile_base_location_}/${:filename}
127
mode = 640