mirror of
https://github.com/rspamd/rspamd.git
synced 2024-08-09 02:10:20 +02:00
35 lines
874 B
Makefile
Executable File
35 lines
874 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
%:
|
|
dh $@ --with systemd
|
|
|
|
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/doc/rspamd/examples \
|
|
-DLIBDIR=/usr/lib \
|
|
-DINCLUDEDIR=/usr/include \
|
|
-DNO_SHARED=ON \
|
|
-DDEBIAN_BUILD=1 \
|
|
-DINSTALL_EXAMPLES=ON \
|
|
-DFORCE_GMIME24=ON \
|
|
-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
|
|
|
|
override_dh_systemd_start:
|
|
dh_systemd_start --restart-after-upgrade
|