Make rspamd an optional dependency, because rspamd is only necessary when you really care about incoming mail, is resource-heavy, and for some reason some setups cant install libhyperscan which is required by rspamd

This commit is contained in:
Alexandre Aubin 2023-12-26 17:52:08 +01:00
parent 351d9361fa
commit 3070e504ad
3 changed files with 9 additions and 1 deletions

View file

@ -43,6 +43,7 @@ redis-server:
rspamd:
log: /var/log/rspamd/rspamd.log
category: email
ignore_if_package_is_not_installed: rspamd
slapd:
category: database
test_conf: slapd -Tt

3
debian/control vendored
View file

@ -25,7 +25,7 @@ Depends: ${python3:Depends}, ${misc:Depends}
, dnsmasq, resolvconf, libnss-myhostname
, postfix, postfix-ldap, postfix-policyd-spf-perl, postfix-pcre
, dovecot-core, dovecot-ldap, dovecot-lmtpd, dovecot-managesieved, dovecot-antispam
, rspamd, opendkim-tools, postsrsd, procmail, mailutils
, opendkim-tools, postsrsd, procmail, mailutils
, redis-server
, acl
, git, curl, wget, cron, unzip, jq, bc, at, procps
@ -35,6 +35,7 @@ Recommends: yunohost-admin, yunohost-portal (>= 12.0)
, bash-completion, rsyslog
, unattended-upgrades
, libdbd-ldap-perl, libnet-dns-perl
, rspamd
Conflicts: iptables-persistent
, apache2
, bind9

View file

@ -2,6 +2,12 @@
set -e
if ! dpkg --list | grep -q 'ii *rspamd '
then
echo 'rspamd is not installed, skipping'
exit 0
fi
do_pre_regen() {
pending_dir=$1