aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: acfc9141022c8827392bc01ae5e2f98ffb9ca1e7 (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
#!/usr/bin/make -f
%:
	dh $@

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Until https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739834 is fixed
export DEB_CFLAGS_MAINT_APPEND = -I/usr/include/hiredis

override_dh_auto_configure:
	dh_auto_configure -- -DCONFDIR=/etc/rspamd \
		-DMANDIR=/usr/share/man \
		-DRUNDIR=/run/rspamd \
		-DDBDIR=/var/lib/rspamd \
		-DLOGDIR=/var/log/rspamd \
		-DPLUGINSDIR=/usr/share/rspamd \
		-DEXAMPLESDIR=/usr/share/examples/rspamd \
		-DLIBDIR=/usr/lib \
		-DINCLUDEDIR=/usr/include \
		-DNO_SHARED=ON \
		-DDEBIAN_BUILD=1 \
		-DINSTALL_EXAMPLES=ON \
		-DFORCE_GMIME24=ON \
		-DRSPAMD_GROUP=_rspamd \
		-DRSPAMD_USER=_rspamd \
		-DENABLE_HIREDIS=ON

override_dh_auto_clean:
	dh_auto_clean
	rm -f src/modules.c

override_dh_fixperms:
	dh_fixperms
	chmod 750 $(CURDIR)/debian/rspamd/var/lib/rspamd