# $Id: Portfile 150105 2016-07-12 15:11:14Z dluke@macports.org $ PortSystem 1.0 name milter-greylist version 4.6.1 categories mail maintainers geeklair.net:dluke platforms darwin description milter-greylist standalone greylist milter license BSD 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/ extract.suffix .tgz checksums md5 f50f89fd5cb81b124f4e7933f197f7a6 \ sha1 1f6dabc7ffc37a063c08d5b2279bd2aae8a2b3c3 \ rmd160 81c2d6bd2326fbb58e89cfc2b619439bd194b2f9 depends_lib port:libmilter use_parallel_build no 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 build.env LANG=C post-configure { 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 } post-destroot { 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.create yes 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 }