aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 3608758eab42968b1632fb8a8d51bdf3e8df4a26 (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
#!/usr/bin/make -f

#export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed

include /usr/share/dpkg/buildflags.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk

DEB_CMAKE_NORMAL_ARGS+= -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
clean::
	rm -f src/modules.c