<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fb4a210a673635ea36431c04c4c55332f3c08db4">https://github.com/macports/macports-ports/commit/fb4a210a673635ea36431c04c4c55332f3c08db4</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fb4a210 dcc: new port for the Distributed Checksum Clearinghouses code
</span>fb4a210 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fb4a210a673635ea36431c04c4c55332f3c08db4
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Apr 30 15:43:15 2019 +0100
<span style='display:block; white-space:pre;color:#404040;'> dcc: new port for the Distributed Checksum Clearinghouses code
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * New port file for https://www.dcc-servers.net/dcc/
</span><span style='display:block; white-space:pre;color:#404040;'> * Used for bulk spam detection
</span>---
mail/dcc/Portfile | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/mail/dcc/Portfile b/mail/dcc/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..141c343
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/mail/dcc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,87 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name dcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.3.163
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories mail
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LICENSE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description The Distributed Checksum Clearinghouses or DCC is an anti-spam content filter \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ that runs on a variety of operating systems.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${description} The counts can be used by SMTP servers and mail user agents \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to detect and reject or filter spam or unsolicited bulk mail. DCC servers exchange \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ or \"flood\" common checksums. The checksums include values that are constant across common \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ variations in bulk messages, including \"personalizations.\"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.dcc-servers.net/dcc/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://www.dcc-servers.net/dcc/source/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.suffix .tar.Z
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir ${name}-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# wget https://www.dcc-servers.net/dcc/source/dcc.tar.Z
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# openssl dgst -rmd160 dcc.tar.Z
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# openssl dgst -sha256 dcc.tar.Z
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# wc -c dcc.tar.Z
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 54d580661b5f450cd61fa65c88fab80e71cc04a5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 195195b79ee15253c4caf48d4ca3bf41b16c66a8cb9a13984a1dc4741d7f6735 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1627877
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# DCC is used by rspamd as a spam checker; run it as the ${rspamd_user}, not root
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This should be the same as the local variables in `port file rspamd`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set rspamd_user _rspamd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set rspamd_group ${rspamd_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_users ${rspamd_user} group=${rspamd_group} realname=Rspamd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Consider uncommenting after the rspamd port is fixed; see `port file rspand`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# depends_lib port:rspamd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.post_args ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --homedir=${prefix}/etc/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --bindir=${prefix}/bin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --libexecdir=${prefix}/libexec/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --mandir=${prefix}/share/man \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-rundir=${prefix}/var/run/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-64-bits \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-dccm \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-uid=${rspamd_user} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --with-installroot=${destroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.pre_args ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.post_args ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.pre_args ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.args install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.post_args ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set mail_basepath ${prefix}/share/mail
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # create default directories
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -o ${rspamd_user} -g ${rspamd_group} -m 0775 -d ${destroot}${prefix}/etc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}${prefix}/libexec/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -o ${rspamd_user} -g ${rspamd_group} -m 0755 -d ${destroot}${prefix}/var/run/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -o ${rspamd_user} -g ${rspamd_group} -m 0755 -d ${destroot}${prefix}/var/log/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # copy the license and FAQ
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0444 -W ${worksrcpath} LICENSE FAQ.html ${destroot}${prefix}/etc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Create a launchd.plist for the dccifd socket, run as ${rspamd_user}:${rspand_group}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This must be run in foreground for launchd (dccifd -b)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.create yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.name dccifd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+startupitem.executable \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/libexec/${name}/dccifd -b \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I ${rspamd_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.keepdirs ${destroot}${prefix}/etc/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/run/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/log/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/var/${name}
</span></pre><pre style='margin:0'>
</pre>