aboutsummaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: ce09d5128b45b659b357b4a94ca897da506fb0fb (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
#!/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=/var/lib/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
clean::
	rm -f src/modules.c