From owner-svn-ports-all@freebsd.org Mon Jan 25 07:12:17 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C82E7A454F2; Mon, 25 Jan 2016 07:12:17 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pa0-x233.google.com (mail-pa0-x233.google.com [IPv6:2607:f8b0:400e:c03::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98C10809; Mon, 25 Jan 2016 07:12:17 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pa0-x233.google.com with SMTP id uo6so77916750pac.1; Sun, 24 Jan 2016 23:12:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=dChrrBR8cmnQe+DtPFcna2M1Y+2a2ZtPtSRo+xcGah8=; b=SN6WjC+9EMEJLfBn8w+JpVHv3kM3ZxYzdNKQJXliusJQDh1ZOH1Zb3tceXoIT6Bsyl WJpx1DrwQDhA6xA++nNJzG5IvwIKbwTW3DG8z5502cf/TrA6W6ERbbLWOfT1h+pkKWvG xNV0So7C1Bkef/ApoLfaxdZ6pjAAMArsUm40bUx6XNgvm7vfErZHZLH3rKhnYjbEQUXa EpYHh9MVpJuiVLHDXrzdRzSyOx9HB+8P/uaNrp9M5ZzyM0Asyy1qdEkqLF+QsJbrVyow 2j/a0wEWPGav2trhfqpimbMS/whNnVavAxUKTzJfbOlKjZ+Zt7LwTMDmr2JNIyHgpTlG cxLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:references:to:from :message-id:date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=dChrrBR8cmnQe+DtPFcna2M1Y+2a2ZtPtSRo+xcGah8=; b=YYU+JaHpsxKsEvIJT3qBvrUGfwpU3o494cgVFdLeOnLpphzew+k3ap5ZGD8nk7p8++ qZlLSTMLvcgOKht6iOXJw2RJ31P0u6vWVY7gQgmaFtj+eBeelxj1vHU1qmoZJvFdeO/C 56CWG0/mvcZ5dtiJGHC6dVydQG5Lt/XZmXkG2BciPZ1yx62VUu4XVrKysxAe6+d1SemA 4Z1Sm964w1C3uT7qckahz+VFNy+Z/xa+G2QcJzoxF0U+mAhHqzlsYjvs4ztHSOuMbCQE TlhimpMkQOajDi8GGPem6ZmgpJjOPn9DjVlhkIUk3gTudA+VHX6efRKTj4eh5E6wARPN 5DmQ== X-Gm-Message-State: AG10YOQ693ZItWEv14X+u2G91yklVkSZTraQm2IVrSlGo2hfFqfQbv4l3NnEq28F1cRZyw== X-Received: by 10.66.164.196 with SMTP id ys4mr23516277pab.119.1453705937218; Sun, 24 Jan 2016 23:12:17 -0800 (PST) Received: from ?IPv6:2001:44b8:31ae:7b01:e955:70fa:3edd:219e? (2001-44b8-31ae-7b01-e955-70fa-3edd-219e.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:e955:70fa:3edd:219e]) by smtp.gmail.com with ESMTPSA id x23sm25924224pfi.42.2016.01.24.23.12.14 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Jan 2016 23:12:16 -0800 (PST) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: svn commit: r407194 - head/mail/qsheff References: <201601250702.u0P72qSZ084419@repo.freebsd.org> To: Alexey Dokuchaev , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org From: Kubilay Kocak Message-ID: <56A5CACB.3050001@FreeBSD.org> Date: Mon, 25 Jan 2016 18:12:11 +1100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Thunderbird/44.0 MIME-Version: 1.0 In-Reply-To: <201601250702.u0P72qSZ084419@repo.freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 07:12:17 -0000 On 25/01/2016 6:02 PM, Alexey Dokuchaev wrote: > Author: danfe > Date: Mon Jan 25 07:02:51 2016 > New Revision: 407194 > URL: https://svnweb.freebsd.org/changeset/ports/407194 > > Log: > - Unbreak the build on 9.x (against GCC 4.2): it was failing due to -ansi > option passed by default, which does not allow C++-style comments in C > source code (Clang is more forgiving): > > /usr/local/include/clamav.h:170: error: expected identifier or '(' > before '/' token > /usr/local/include/clamav.h:170: error: stray '#' in program > > - Really respect CFLAGS by fixing configure script Probably want a PORTREVISION bump for this for builds on 10+ due to changed binaries, no? > - Do not hardcode DISTVERSION in MASTER_SITES > - Do not install COPYING file as part of portdocs: it's installed via > LICENSE_FILE already > - Convert the port to use option helpers, fix a typo (VIRUSTAGSC -> > VIRUSTAG_DESC), wrap overly long lines > - Augment port description text while I'm at it > > Modified: > head/mail/qsheff/Makefile > head/mail/qsheff/pkg-descr > head/mail/qsheff/pkg-plist > > Modified: head/mail/qsheff/Makefile > ============================================================================== > --- head/mail/qsheff/Makefile Mon Jan 25 06:48:27 2016 (r407193) > +++ head/mail/qsheff/Makefile Mon Jan 25 07:02:51 2016 (r407194) > @@ -6,7 +6,7 @@ DISTVERSION= 2.1-r3 > PORTREVISION= 7 > CATEGORIES= mail > MASTER_SITES= http://www.enderunix.org/qsheff/ \ > - SF/qsheff/qsheff/II-2.1-r3 > + SF/qsheff/qsheff/II-${DISTVERSION} > > MAINTAINER= ports@FreeBSD.org > COMMENT= Qmail-queue replacement to filter mail traffic > @@ -17,13 +17,11 @@ LICENSE_FILE= ${WRKSRC}/COPYING > BUILD_DEPENDS= ${LOCALBASE}/bin/ripmime:${PORTSDIR}/mail/ripmime > RUN_DEPENDS:= ${BUILD_DEPENDS} > > -BROKEN_FreeBSD_9= does not build on FreeBSD < 10.x > - > -GNU_CONFIGURE= yes > - > USES= qmail > +GNU_CONFIGURE= yes > +CONFIGURE_ARGS= --with-qmaildir=${QMAIL_PREFIX} > > -DOCS= README COPYING AUTHORS ChangeLog INSTALL THANKS TODO > +DOCS= README AUTHORS ChangeLog INSTALL THANKS TODO > EXAMPLES= sample-OK.msg sample-SPAM.msg sample-VIRUS.msg > CONTRIB= README qq-custom-error-patch.diff qq-patch.diff \ > qsheff-patch.diff > @@ -31,72 +29,52 @@ FILES= handbook.en.txt handbook.tr.txt > ETCFILES= install-wrapper.sh uninstall-wrapper.sh qsheff.attach-default \ > qsheff.conf-default qsheff.ignore-default qsheff.rules-default > > -CONFIGURE_ARGS+= --with-qmaildir=${QMAIL_PREFIX} > - > -OPTIONS_DEFINE= CLAMAV SPAMTAG VIRUSTAG DISABLELOCAL SYSLOG BACKUP CUSTOMERROR DEBUG DOCS EXAMPLES > +OPTIONS_DEFINE= CLAMAV SPAMTAG VIRUSTAG DISABLELOCAL SYSLOG BACKUP \ > + CUSTOMERROR DEBUG DOCS EXAMPLES > OPTIONS_DEFAULT= CLAMAV > -CLAMAV_DESC= Integrate with Clam AntiVirus > -SPAMTAG_DESC= Spam Tagging > -VIRUSTAGSC= Virus Tagging > -DISABLELOCAL_DESC= Disable Filters For Local Users > -BACKUP_DESC= Logging Incoming/Outgoing Mail > -CUSTOMERROR_DESC= Custom Error Patch > - > -.include > - > -.if ${PORT_OPTIONS:MCLAMAV} > -RUN_DEPENDS+= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav > -BUILD_DEPENDS+= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav > -CONFIGURE_ARGS+= --with-clamav > -CONFIGURE_ARGS+= --with-clamd-socket=/var/run/clamav/clamd > -.endif > - > -.if ${PORT_OPTIONS:MSPAMTAG} > -CONFIGURE_ARGS+= --enable-spam-tag > -.endif > - > -.if ${PORT_OPTIONS:MVIRUSTAG} > -CONFIGURE_ARGS+= --enable-virus-tag > -.endif > - > -.if ${PORT_OPTIONS:MSYSLOG} > -CONFIGURE_ARGS+= --enable-syslog > -.endif > - > -.if ${PORT_OPTIONS:MDISABLELOCAL} > -CONFIGURE_ARGS+= --disable-local-users > -.endif > - > -.if ${PORT_OPTIONS:MBACKUP} > -CONFIGURE_ARGS+= --enable-backup > -.endif > - > -.if ${PORT_OPTIONS:MCUSTOMERROR} > -CONFIGURE_ARGS+= --enable-custom-error > -.endif > - > -.if ${PORT_OPTIONS:MDEBUG} > -CONFIGURE_ARGS+= --enable-debug > -.endif > + > +CLAMAV_DESC= Integrate with ClamAV > +SPAMTAG_DESC= Spam tagging > +VIRUSTAG_DESC= Virus tagging > +DISABLELOCAL_DESC= Disable filters for local users > +BACKUP_DESC= Logging of incoming/outgoing mail > +CUSTOMERROR_DESC= Custom error patch > + > +CLAMAV_BUILD_DEPENDS= ${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav > +CLAMAV_RUN_DEPENDS= ${CLAMAV_BUILD_DEPENDS} > +CLAMAV_CONFIGURE_ON= --with-clamav --with-clamd-socket=/var/run/clamav/clamd > + > +SPAMTAG_CONFIGURE_ON= --enable-spam-tag > +VIRUSTAG_CONFIGURE_ON= --enable-virus-tag > +SYSLOG_CONFIGURE_ON= --enable-syslog > +DISABLELOCAL_CONFIGURE_ON=--disable-local-users > +BACKUP_CONFIGURE_ON= --enable-backup > +CUSTOMERROR_CONFIGURE_ON=--enable-custom-error > +DEBUG_CONFIGURE_ON= --enable-debug > > post-patch: > - @${REINPLACE_CMD} -e "s|^CFLAGS =|CFLAGS +=|" ${WRKSRC}/Makefile.in > + @${REINPLACE_CMD} -e '/^CFLAGS=""/d' ${WRKSRC}/configure > + @${REINPLACE_CMD} -e 's/ -ansi//' ${WRKSRC}/src/Makefile.in > > -post-build: > -.if ! ${PORT_OPTIONS:MCLAMAV} > - @${REINPLACE_CMD} -e 's|enable_virus_prog = 1|enable_virus_prog = 0|g' \ > +post-build-CLAMAV-off: > + @${REINPLACE_CMD} -e '/enable_clamd/s|1|0|' \ > ${WRKSRC}/etc/qsheff.conf-default > -.endif > > do-install: > + ${INSTALL_PROGRAM} ${WRKSRC}/src/qsheff ${STAGEDIR}${PREFIX}/bin > + @${MKDIR} ${STAGEDIR}${ETCDIR} > + ${INSTALL_DATA} ${ETCFILES:S,^,${WRKSRC}/etc/,} ${STAGEDIR}${ETCDIR} > + > +do-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR}/doc > - ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ > - ${INSTALL_DATA} ${FILES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/doc/ > + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} > + ${INSTALL_DATA} ${FILES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/doc > + > +do-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/contrib > - ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/samples/,} ${STAGEDIR}${EXAMPLESDIR}/ > - ${INSTALL_DATA} ${CONTRIB:S,^,${WRKSRC}/contrib/,} ${STAGEDIR}${EXAMPLESDIR}/contrib > - @${MKDIR} ${STAGEDIR}${ETCDIR} > - ${INSTALL_DATA} ${ETCFILES:S,^,${WRKSRC}/etc/,} ${STAGEDIR}${ETCDIR}/ > - ${INSTALL_PROGRAM} ${WRKSRC}/src/qsheff ${STAGEDIR}${PREFIX}/bin/qsheff > + ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/samples/,} \ > + ${STAGEDIR}${EXAMPLESDIR}/ > + ${INSTALL_DATA} ${CONTRIB:S,^,${WRKSRC}/contrib/,} \ > + ${STAGEDIR}${EXAMPLESDIR}/contrib > > .include > > Modified: head/mail/qsheff/pkg-descr > ============================================================================== > --- head/mail/qsheff/pkg-descr Mon Jan 25 06:48:27 2016 (r407193) > +++ head/mail/qsheff/pkg-descr Mon Jan 25 07:02:51 2016 (r407194) > @@ -1,11 +1,16 @@ > -A qmail-queue replacement to filter mail traffic and more. > -It supports: > - * Antivirus executing > - * body filtering > - * subject filtering > - * attachment blocking > - * quarantine > - * white/black list > - * single line logging for qmail and many features. > +qSheff is a wrapper for the qmail queue that scans email for viruses and > +spam. Infected messages are rejected before they reach the queue, so the > +server doesn't perform any job for them. After checking the message, it > +will wake the qmail queue. Some of the supported features: > > -WWW: http://www.enderunix.org/qsheff > + - Antivirus executing (ClamAV) > + - Header and body filtering > + - Subject filtering > + - Attachment blocking > + - Quarantine support > + - White/black lists > + - Single line logging for qmail > + - Basic DoS attack prevention > + - And much more... > + > +WWW: http://www.enderunix.org/qsheff/ > > Modified: head/mail/qsheff/pkg-plist > ============================================================================== > --- head/mail/qsheff/pkg-plist Mon Jan 25 06:48:27 2016 (r407193) > +++ head/mail/qsheff/pkg-plist Mon Jan 25 07:02:51 2016 (r407194) > @@ -13,7 +13,6 @@ bin/qsheff > %%ETCDIR%%/install-wrapper.sh > %%ETCDIR%%/uninstall-wrapper.sh > %%PORTDOCS%%%%DOCSDIR%%/README > -%%PORTDOCS%%%%DOCSDIR%%/COPYING > %%PORTDOCS%%%%DOCSDIR%%/AUTHORS > %%PORTDOCS%%%%DOCSDIR%%/ChangeLog > %%PORTDOCS%%%%DOCSDIR%%/INSTALL >