diff --git a/srcpkgs/rmilter/files/rmilter/run b/srcpkgs/rmilter/files/rmilter/run new file mode 100755 index 00000000000..a4a79b973bd --- /dev/null +++ b/srcpkgs/rmilter/files/rmilter/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec chpst -u rmilter:rmilter rmilterĀ -n -c /etc/rmilter/rmilter.conf ${OPTS} diff --git a/srcpkgs/rmilter/template b/srcpkgs/rmilter/template new file mode 100644 index 00000000000..76ea9fc0c84 --- /dev/null +++ b/srcpkgs/rmilter/template @@ -0,0 +1,23 @@ +# Template file for 'rmilter' +pkgname=rmilter +version=1.8.5 +revision=1 +build_style=cmake +configure_args="-DMILTER_USER=rmilter -DSBINDIR=/usr/bin" +hostmakedepends="pkg-config bison flex" +makedepends="libressl-devel pcre-devel libmilter-devel opendkim-devel libsasl-devel libmemcached-devel" +short_desc="Postfix/sendmail integration for rspamd" +maintainer="John Regan " +license="BSD" +homepage="https://github.com/vstakhov/rmilter" +distfiles="$homepage/archive/${version}.tar.gz" +checksum=e9e1b3c724aa7d9e43f899ad0dbb367d37945e48b742b89188e1a1c256be318f +system_accounts="rmilter" +rmilter_homedir="/var/lib/rmilter" + +post_install() { + vdoc rmilter.conf.sample + vdoc rmilter-grey.conf + vsv rmilter + vlicense src/rmilter.c +}