maintainers {geeklair.net:dluke @danielluke}
description milter-greylist standalone greylist milter
long_description milter-greylist is a stand-alone milter written in C \
that implements the greylist filtering method
homepage http://hcpnet.free.fr/milter-greylist/
master_sites https://ftp.espci.fr/pub/milter-greylist/ \
ftp://ftp.espci.fr/pub/milter-greylist/
checksums md5 8872008db2fc6b93dd9ab8576383fec2 \
sha1 c274969bcd599c6bc7100ffc6f107db493ee0a05 \
rmd160 5d00a5df1cf4360e990859801ef09062493c8164
depends_lib port:libmilter
configure.args --mandir=${prefix}/share \
--with-user=milter-greylist \
--with-libmilter=${prefix}
add_users milter-greylist group=milter-greylist
#- otherwise the 10.8 sed complains - sed: RE error: illegal byte sequence
reinplace "s|/etc/mail|${prefix}/etc/mail|g" \
${worksrcpath}/Makefile ${worksrcpath}/conf.h
reinplace "s|/var/milter-greylist|${prefix}/var/milter-greylist|g" \
${worksrcpath}/greylist.conf
file rename ${destroot}${prefix}/etc/mail/greylist.conf \
${destroot}${prefix}/etc/mail/greylist.conf.sample
xinstall -o milter-greylist -g milter-greylist \
-d ${destroot}${prefix}/var/milter-greylist
destroot.keepdirs ${destroot}${prefix}/var/milter-greylist
startupitem.name milter-greylist
startupitem.executable ${prefix}/bin/milter-greylist -D -u milter-greylist:milter-greylist
variant postfix description {build with postfix support} {
depends_lib-append port:postfix
configure.args-append --enable-postfix