Section: mail
Priority: extra
Maintainer: Mikhail Gusarov <dottedmag@debian.org>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cmake, libglib2.0-dev (>= 2.16.0), libluajit-5.1-dev [amd64 armel armhf i386 kfreebsd-i386 mips mipsel powerpc powerpcspe] | liblua5.1-dev, libpcre3-dev, libssl-dev (>= 1.0), libcurl4-openssl-dev, libsqlite3-dev, libmagic-dev, perl, dh-systemd, libjemalloc-dev, ragel, libicu-dev, zlib1g-dev, libunwind-dev | libunwind8-dev
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), cmake, libglib2.0-dev (>= 2.16.0), libluajit-5.1-dev [amd64 armel armhf i386 kfreebsd-i386 mips mipsel powerpc powerpcspe] | liblua5.1-dev, libpcre3-dev, libssl-dev (>= 1.0), libcurl4-openssl-dev, libsqlite3-dev, libmagic-dev, perl, dh-systemd, libjemalloc-dev, ragel, libicu-dev, zlib1g-dev, libunwind-dev | libunwind8-dev, libhyperscan-dev [amd64 i386]
Standards-Version: 3.9.6
Homepage: https://rspamd.com
Vcs-Git: git://github.com/vstakhov/rspamd.git
#!/usr/bin/make -f
%:
- dh $@ --with systemd
+ dh $@ --with systemd --parallel
.PHONY: override_dh_strip
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export ASAN_OPTIONS=detect_leaks=0
+ifneq ($(filter $(DEB_TARGET_ARCH),amd64 i386),)
+ ENABLE_HYPERSCAN := -DENABLE_HYPERSCAN=ON
+else
+ ENABLE_HYPERSCAN :=
+endif
+
override_dh_auto_configure:
dh_auto_configure -- -DCONFDIR=/etc/rspamd \
-DMANDIR=/usr/share/man \
-DENABLE_LUAJIT=ON \
-DENABLE_TORCH=ON \
-DENABLE_LIBUNWIND=ON \
- -DWANT_SYSTEMD_UNITS=ON
+ -DWANT_SYSTEMD_UNITS=ON \
+ $(ENABLE_HYPERSCAN)
override_dh_makeshlibs:
dh_makeshlibs -Xrspamd-actrie