blob: 4ada8a23a5f1c3588df5b82389f486363a0376fd (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
# please blhc
export ASMFLAGS = $(CPPFLAGS)
include /usr/share/dpkg/architecture.mk
ifneq ($(filter amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64, $(DEB_HOST_ARCH)),)
LUAJIT = ON
else
LUAJIT = OFF
endif
ifneq ($(filter amd64 i386, $(DEB_HOST_ARCH)),)
HYPERSCAN=ON
else
HYPERSCAN=OFF
endif
ifneq ($(filter amd64 arm64 armel armhf hppa i386 mips64el mipsel powerpcspe ppc64 ppc64el sh4, $(DEB_HOST_ARCH)),)
UNWIND=ON
else
UNWIND=OFF
endif
%:
dh $@
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 \
-DSHAREDIR=/usr/share/rspamd \
-DLIBDIR=/usr/lib/rspamd \
-DINCLUDEDIR=/usr/include \
-DSYSTEMDDIR=/lib/systemd/system \
-DNO_SHARED=ON \
-DDEBIAN_BUILD=1 \
-DENABLE_JEMALLOC=ON \
-DENABLE_OPTIMIZATION=OFF \
-DENABLE_FULL_DEBUG=OFF \
-DENABLE_PCRE2=ON \
-DENABLE_LUAJIT=$(LUAJIT) \
-DENABLE_LIBUNWIND=$(UNWIND) \
-DENABLE_HYPERSCAN=$(HYPERSCAN) \
-DWANT_SYSTEMD_UNITS=ON \
-DENABLE_STATIC_LIBCXX=OFF \
-DENABLE_LIBCXX=OFF \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
override_dh_makeshlibs:
dh_makeshlibs -Xlibrspamd-actrie -Xlibrspamd-ev -Xlibrspamd-kann -Xlibrspamd-replxx -Xlibrspamd-server
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
chmod 750 $(CURDIR)/debian/rspamd/var/log/rspamd
|