Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 0D7F67A2BA for ; Mon, 20 Mar 2017 14:15:18 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id B65D085627; Mon, 20 Mar 2017 14:15:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 45C67855CA for ; Mon, 20 Mar 2017 14:15:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Li3jx9pO__OG for ; Mon, 20 Mar 2017 14:15:16 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id CBC9785598 for ; Mon, 20 Mar 2017 14:15:16 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C9E66FBE4; Mon, 20 Mar 2017 14:15:16 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1490019316115980" MIME-Version: 1.0 Date: Mon, 20 Mar 2017 14:15:16 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/mail/rspamd To: pkgsrc-changes@NetBSD.org Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20170320141516.C9E66FBE4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk This is a multi-part message in MIME format. --_----------=_1490019316115980 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Mon Mar 20 14:15:16 UTC 2017 Added Files: pkgsrc/mail/rspamd: options.mk pkgsrc/mail/rspamd/files: rspamd.sh Log Message: Add missing files for 1.5.3 update. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/mail/rspamd/options.mk cvs rdiff -u -r0 -r1.1 pkgsrc/mail/rspamd/files/rspamd.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1490019316115980 Content-Disposition: inline Content-Length: 1590 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/mail/rspamd/options.mk diff -u /dev/null pkgsrc/mail/rspamd/options.mk:1.1 --- /dev/null Mon Mar 20 14:15:16 2017 +++ pkgsrc/mail/rspamd/options.mk Mon Mar 20 14:15:16 2017 @@ -0,0 +1,18 @@ +# $NetBSD: options.mk,v 1.1 2017/03/20 14:15:16 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.rspamd + +PKG_SUPPORTED_OPTIONS= gd + +.include "../../mk/bsd.options.mk" + +### +### Enable fuzzy matching for images +### +.if !empty(PKG_OPTIONS:Mgd) +.include "../../graphics/gd/buildlink3.mk" +CMAKE_ARGS+= -DENABLE_GD=ON +.else +CMAKE_ARGS+= -DENABLE_GD=OFF +.endif + Index: pkgsrc/mail/rspamd/files/rspamd.sh diff -u /dev/null pkgsrc/mail/rspamd/files/rspamd.sh:1.1 --- /dev/null Mon Mar 20 14:15:16 2017 +++ pkgsrc/mail/rspamd/files/rspamd.sh Mon Mar 20 14:15:16 2017 @@ -0,0 +1,37 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: rspamd.sh,v 1.1 2017/03/20 14:15:16 wiz Exp $ +# +# PROVIDE: rspamd +# REQUIRE: DAEMON +# BEFORE: mail + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="rspamd" +rcvar=$name +command="@PREFIX@/bin/rspamd" +pidfile="@VARBASE@/run/rspamd/${name}.pid" +command_args="-c @PKG_SYSCONFDIR@/rspamd.conf" +required_files="@PKG_SYSCONFDIR@/rspamd.conf" +start_precmd="rspamd_precmd" + +rspamd_precmd() +{ + if [ ! -d @VARBASE@/run/rspamd ]; then + @MKDIR@ @VARBASE@/run/rspamd + @CHMOD@ 0755 @VARBASE@/run/rspamd + @CHOWN@ @RSPAMD_USER@:@RSPAMD_GROUP@ @VARBASE@/run/rspamd + fi +} + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n " ${name}" + ${command} ${rspamd_flags} ${command_args} +fi + --_----------=_1490019316115980--