# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id: Portfile 134312 2015-03-22 03:49:16Z pixilla@macports.org $ PortSystem 1.0 PortGroup cmake 1.0 PortGroup github 1.0 github.setup vstakhov rspamd 0.8.3 version 0.8.3 categories mail license BSD maintainers pixilla openmaintainer platforms darwin description Rspamd filtering system is created as a replacement of popular spamassassin \ spamd and is designed to be fast, modular and easily extendable system. long_description ${description} Rspamd core is written in C language using event driven \ paradigma. Plugins for rspamd can be written in lua. Rspamd is designed to \ process connections completely asynchronous and do not block anywhere in code. homepage http://rspamd.com if {${github.version} eq ${version}} { master_sites http://rspamd.com/downloads use_xz yes checksums rmd160 dc43a24c9eef555bd390ab31c4aa1deb8c5e7704 \ sha256 20f788b08406fdaa8148d726e7ba18940108afff2d48b4f47726e3f2a6a88daf } else { fetch.type git post-fetch { system -W ${worksrcpath} "git submodule update --init" } } depends_build-append port:pkgconfig depends_lib port:libevent \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:gmime \ port:lua \ port:pcre \ port:perl5 \ port:hiredis set rspamd_user _rspamd set rspamd_group ${rspamd_user} add_users ${rspamd_user} group=${rspamd_group} realname=Rspamd configure.args-delete \ -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib configure.args-append \ -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib/${name} \ -DRSPAMD_USER=${rspamd_user} \ -DBUILD_PORT:BOOL=ON \ -DENABLE_LUAJIT:BOOL=OFF \ -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON \ -DNO_SHARED=ON test.run yes test.target run-test post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0444 -W ${worksrcpath} ChangeLog LICENSE README.md ${destroot}${docdir} } post-activate { set confdir ${prefix}/etc/${name} foreach s [glob ${confdir}/*.sample] { if {![file exists [string map {.sample {}} "${s}"]]} { file copy ${s} [string map {.sample {}} "${s}"] } } } startupitem.create yes startupitem.executable \ ${prefix}/bin/rspamd \ -u ${rspamd_user} \ -g ${rspamd_group} \ -f \ -c ${prefix}/etc/rspamd/rspamd.conf