2011-11-21 14:37:46 +01:00
|
|
|
#!/usr/bin/make -f
|
2014-02-23 09:36:40 +01:00
|
|
|
%:
|
2014-03-28 15:51:16 +01:00
|
|
|
dh $@ --with systemd
|
2011-11-21 14:37:46 +01:00
|
|
|
|
2016-01-01 18:38:09 +01:00
|
|
|
.PHONY: override_dh_strip
|
|
|
|
|
2014-02-23 09:36:40 +01:00
|
|
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
2012-08-06 14:05:46 +02:00
|
|
|
|
2014-02-23 09:36:40 +01:00
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- -DCONFDIR=/etc/rspamd \
|
2014-02-23 09:38:33 +01:00
|
|
|
-DMANDIR=/usr/share/man \
|
|
|
|
-DRUNDIR=/run/rspamd \
|
|
|
|
-DDBDIR=/var/lib/rspamd \
|
|
|
|
-DLOGDIR=/var/log/rspamd \
|
|
|
|
-DPLUGINSDIR=/usr/share/rspamd \
|
2014-03-08 11:13:47 +01:00
|
|
|
-DEXAMPLESDIR=/usr/share/doc/rspamd/examples \
|
2015-04-28 12:43:54 +02:00
|
|
|
-DLIBDIR=/usr/lib/rspamd \
|
2014-02-23 09:38:33 +01:00
|
|
|
-DINCLUDEDIR=/usr/include \
|
2015-03-07 10:53:04 +01:00
|
|
|
-DSYSTEMDDIR=/lib/systemd/system \
|
2014-02-23 09:38:33 +01:00
|
|
|
-DNO_SHARED=ON \
|
2016-01-01 17:23:38 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
|
2014-02-23 09:38:33 +01:00
|
|
|
-DDEBIAN_BUILD=1 \
|
|
|
|
-DINSTALL_EXAMPLES=ON \
|
|
|
|
-DFORCE_GMIME24=ON \
|
2016-04-11 12:26:44 +02:00
|
|
|
-DENABLE_JEMALLOC=ON \
|
2015-03-07 10:53:04 +01:00
|
|
|
-DENABLE_HIREDIS=ON \
|
2016-03-08 18:33:39 +01:00
|
|
|
-DENABLE_LUAJIT=ON \
|
2015-03-07 10:53:04 +01:00
|
|
|
-DWANT_SYSTEMD_UNITS=ON
|
2014-02-23 09:36:40 +01:00
|
|
|
|
2015-05-06 11:57:05 +02:00
|
|
|
override_dh_makeshlibs:
|
|
|
|
dh_makeshlibs -Xrspamd-actrie
|
|
|
|
|
2015-12-31 19:04:17 +01:00
|
|
|
override_dh_strip:
|
2016-01-01 17:23:38 +01:00
|
|
|
dh_strip --dbg-package=rspamd-dbg
|
2015-12-31 19:04:17 +01:00
|
|
|
|
2016-01-01 18:38:09 +01:00
|
|
|
override_dh_auto_install:
|
|
|
|
dh_auto_install --destdir=debian/rspamd
|
|
|
|
|
2014-02-23 09:36:40 +01:00
|
|
|
override_dh_auto_clean:
|
|
|
|
dh_auto_clean
|
2013-11-30 01:41:22 +01:00
|
|
|
rm -f src/modules.c
|
2014-02-23 09:37:15 +01:00
|
|
|
|
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms
|
|
|
|
chmod 750 $(CURDIR)/debian/rspamd/var/lib/rspamd
|
2014-03-28 15:51:16 +01:00
|
|
|
|
2015-03-07 11:23:13 +01:00
|
|
|
override_dh_systemd_enable:
|
|
|
|
dh_systemd_enable rspamd.socket
|
|
|
|
|
2014-03-28 15:51:16 +01:00
|
|
|
override_dh_systemd_start:
|
2015-03-07 11:23:13 +01:00
|
|
|
dh_systemd_start --restart-after-upgrade --no-start
|
|
|
|
|
|
|
|
override_dh_installinit:
|
|
|
|
dh_installinit -n
|