summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 1bbbf4c570b1de389012b051be4c9a827448b13f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

# uncomment to enable verbose mode
#export DH_VERBOSE=1

%:
	dh $@ --with autotools_dev,systemd

override_dh_auto_configure:
	dh_auto_configure -- \
                --disable-dependency-tracking \
                --libdir=/usr/lib/lighttpd \
                --libexecdir="/usr/lib/lighttpd" \
                --with-attr \
                --with-fam \
                --with-gdbm \
                --with-kerberos5 \
                --with-ldap \
                --with-lua=lua5.1 \
                --with-memcache \
                --with-mysql \
                --with-openssl \
                --with-pcre \
                --with-webdav-locks \
                --with-webdav-props \
		$(shell dpkg-buildflags --export=configure)

override_dh_fixperms:
	dh_fixperms
	chmod 0750 debian/lighttpd/var/log/lighttpd
	chown www-data:www-data debian/lighttpd/var/cache/lighttpd/compress debian/lighttpd/var/cache/lighttpd/uploads
	chown www-data:www-data debian/lighttpd/var/log/lighttpd

override_dh_installinit:
	dh_installinit --error-handler=start_failed