/[collab-maint]/deb-maint/nginx/trunk/debian/rules
ViewVC logotype

Contents of /deb-maint/nginx/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15075 - (show annotations) (download)
Sat Jan 2 16:57:00 2010 UTC (3 years, 4 months ago) by kartikm-guest
File size: 2148 byte(s)
Added misc:Depends in depends, added debug package support patch from Matthew Palmer
1 #!/usr/bin/make -f
2
3 include /usr/share/dpatch/dpatch.make
4
5 CFLAGS = -Wall -g
6
7 DEB_BUILD_ARCH ?=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8 ifneq (,$(findstring sparc,$(DEB_BUILD_ARCH)))
9 CONFIGURE_OPTS = --with-cc-opt="-m32 -mcpu=ultrasparc"
10 endif
11
12 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13 CFLAGS += -O0
14 else
15 CFLAGS += -O2
16 endif
17
18 config.status: patch-stamp
19 dh_testdir
20 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
21 cp -f /usr/share/misc/config.sub config.sub
22 endif
23 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
24 cp -f /usr/share/misc/config.guess config.guess
25 endif
26 ./configure --conf-path=/etc/nginx/nginx.conf \
27 --error-log-path=/var/log/nginx/error.log \
28 --pid-path=/var/run/nginx.pid \
29 --lock-path=/var/lock/nginx.lock \
30 --http-log-path=/var/log/nginx/access.log \
31 --http-client-body-temp-path=/var/lib/nginx/body \
32 --http-proxy-temp-path=/var/lib/nginx/proxy \
33 --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
34 --with-debug \
35 --with-http_stub_status_module \
36 --with-http_flv_module \
37 --with-http_ssl_module \
38 --with-http_dav_module \
39 --with-http_gzip_static_module \
40 --with-mail \
41 --with-mail_ssl_module \
42 --with-ipv6 \
43 --add-module=$(CURDIR)/modules/nginx-upstream-fair \
44 $(CONFIGURE_OPTS)
45
46 build: config.status
47 $(MAKE) build
48
49 build-stamp:
50 dh_testdir
51 touch $@
52
53 clean: unpatch
54 dh_testdir
55 dh_testroot
56 rm -f build-stamp
57 [ ! -f Makefile ] || $(MAKE) clean
58
59 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
60 rm -f config.sub
61 endif
62 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
63 rm -f config.guess
64 endif
65 dh_clean
66
67 install:
68 dh_testdir
69 dh_testroot
70 dh_prep
71 dh_installdirs
72 dh_install
73
74 binary-indep:
75
76 binary-arch: install
77 dh_testdir
78 dh_testroot
79 dh_installchangelogs CHANGES
80 dh_installdocs
81 dh_installinit -r --no-start
82 dh_installman debian/nginx.1
83 dh_installlogrotate
84 dh_link
85 dh_strip --dbg-package=nginx-dbg
86 dh_compress
87 dh_fixperms
88 dh_installdeb
89 dh_shlibdeps
90 dh_gencontrol
91 dh_md5sums
92 dh_builddeb
93
94 binary: binary-indep binary-arch
95
96 .PHONY: build clean binary-indep binary-arch binary install

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5