7
7
# export necessary for (hardening) flags for perl
8
8
# (src/http/modules/perl/Makefile.PL).
9
9
export CFLAGS LDFLAGS
11
FLAVOURS:=full light extras
11
FLAVOURS:=full light extras naxsi
13
13
BUILDDIR_full = $(CURDIR)/debian/build-full
14
14
BUILDDIR_light = $(CURDIR)/debian/build-light
15
15
BUILDDIR_extras = $(CURDIR)/debian/build-extras
16
BUILDDIR_naxsi = $(CURDIR)/debian/build-naxsi
16
17
MODULESDIR = $(CURDIR)/debian/modules
17
18
BASEDIR = $(CURDIR)
162
164
--add-module=$(MODULESDIR)/nginx-upload-module \
163
165
--add-module=$(MODULESDIR)/nginx-upload-progress \
164
166
--add-module=$(MODULESDIR)/nginx-upstream-fair \
167
--add-module=$(MODULESDIR)/nginx-dav-ext-module \
165
168
$(CONFIGURE_OPTS) >$@
171
config.status.naxsi: config.env.naxsi config.sub config.guess
172
cd $(BUILDDIR_naxsi) && CFLAGS="$(CFLAGS)" CORE_LINK="$(LDFLAGS)" ./configure \
173
--prefix=/etc/nginx \
174
--conf-path=/etc/nginx/nginx.conf \
175
--error-log-path=/var/log/nginx/error.log \
176
--http-client-body-temp-path=/var/lib/nginx/body \
177
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
178
--http-log-path=/var/log/nginx/access.log \
179
--http-proxy-temp-path=/var/lib/nginx/proxy \
180
--http-scgi-temp-path=/var/lib/nginx/scgi \
181
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
182
--lock-path=/var/lock/nginx.lock \
183
--pid-path=/var/run/nginx.pid \
184
--with-http_ssl_module \
185
--without-mail_pop3_module \
186
--without-mail_smtp_module \
187
--without-mail_imap_module \
188
--without-http_uwsgi_module \
189
--without-http_scgi_module \
191
--add-module=$(MODULESDIR)/nginx-upstream-fair \
192
--add-module=$(MODULESDIR)/nginx-cache-purge \
193
--add-module=$(MODULESDIR)/naxsi/naxsi_src \
194
$(CONFIGURE_OPTS) >$@
169
198
echo "configuration for flavour $* not yet defined."