diff --git a/community/rspamd/PKGBUILD b/community/rspamd/PKGBUILD index a5069c042..7ad92ebe2 100644 --- a/community/rspamd/PKGBUILD +++ b/community/rspamd/PKGBUILD @@ -9,7 +9,7 @@ pkgname=rspamd pkgver=3.5 -pkgrel=1 +pkgrel=2 epoch= pkgdesc='Fast, free and open-source spam filtering system' arch=(x86_64) @@ -128,13 +128,15 @@ source=( rspamd.logrotate rspamd-dmarc-report.service rspamd-dmarc-report.timer + rspamd-hyperscan.hook ) b2sums=('SKIP' '6b1b4220444d382d01fe981acf51580c397363a873507fdb508fd5109adae2609c03e629ecdd6e48c13f068d0c3530be4d0fb55b3084c33522619dd29f70a40c' '5b4db27d87158609519bb0e59700ac627d447e4627b70600a70638f81a39361ad416c4784dafc392e9f9bc7b69211587ae64cbab7bec98668e75df5c4fba46ea' '25c2253c7ecd9fba215cb6a1df93d76fab98e98ffeec380f828d7a612a78e0c4822dacc838ca37c2ceec452e54e7fc06c4c4df3290c8a6e8ee5ae869bbbb449e' 'e22421badb8d8b69ec5b5e2cc42edcae3b83725a783455bfef7c9f4fe3b1797981a793d09f281b22b1423376a2f09dce368a354941aaf7f2d3c3a2e56e14392b' - '153df613fc1b24e845b3a86026215f8f7e031cc52f47278a1e0f389d6225d017c53e806316c8eb7d7e755985451f09cc9fb366cd776f3786e04ac4c59eacf606') + '153df613fc1b24e845b3a86026215f8f7e031cc52f47278a1e0f389d6225d017c53e806316c8eb7d7e755985451f09cc9fb366cd776f3786e04ac4c59eacf606' + '8a2882e4cd59eb3304acae9dfa71252c2024a8251e61cd1e75e6b84a84ec8c636e70d6702c03d7b7d0e2f7fa60d2466c6eed4f4f80f1834585185deaf7157eee') pkgver() { cd rspamd @@ -171,6 +173,7 @@ package() { install -Dm 644 rspamd.logrotate "${pkgdir}"/etc/logrotate.d/rspamd install -Dm 644 rspamd-dmarc-report.service -t "${pkgdir}"/usr/lib/systemd/system/ install -Dm 644 rspamd-dmarc-report.timer -t "${pkgdir}"/usr/lib/systemd/system/ + install -Dm 644 rspamd-hyperscan.hook -t "${pkgdir}"/usr/share/libalpm/hooks/ } # vim: ts=2 sw=2 et: diff --git a/community/rspamd/rspamd-hyperscan.hook b/community/rspamd/rspamd-hyperscan.hook new file mode 100644 index 000000000..15a6d5100 --- /dev/null +++ b/community/rspamd/rspamd-hyperscan.hook @@ -0,0 +1,10 @@ +[Trigger] +Operation = Upgrade +Type = Package +Target = hyperscan + +[Action] +Description = Deleting rspamd .unser files... +When = PostTransaction +Exec = /usr/bin/find /var/lib/rspamd -type f -name '*.unser' -delete +Depends = rspamd