svn commit: r335506 - head/mail/rspamd

Vsevolod Stakhov vsevolod at FreeBSD.org
Mon Dec 2 16:07:54 UTC 2013


Author: vsevolod
Date: Mon Dec  2 16:07:53 2013
New Revision: 335506
URL: http://svnweb.freebsd.org/changeset/ports/335506

Log:
  - Update to 0.6.1;
  - Rework port structure for staging support;
  - Update www line.

Modified:
  head/mail/rspamd/Makefile
  head/mail/rspamd/distinfo
  head/mail/rspamd/pkg-descr
  head/mail/rspamd/pkg-plist

Modified: head/mail/rspamd/Makefile
==============================================================================
--- head/mail/rspamd/Makefile	Mon Dec  2 16:06:17 2013	(r335505)
+++ head/mail/rspamd/Makefile	Mon Dec  2 16:07:53 2013	(r335506)
@@ -1,18 +1,23 @@
 # $FreeBSD$
 
 PORTNAME=	rspamd
-PORTVERSION=	0.5.6
+PORTVERSION=	0.6.1
 CATEGORIES=	mail
-MASTER_SITES=	http://cdn.bitbucket.org/vstakhov/rspamd/downloads/
 
 MAINTAINER=	vsevolod at FreeBSD.org
 COMMENT=	Fast spam filtering system
 
 LICENSE=	BSD
 
-LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre \
-		gmime-2:${PORTSDIR}/mail/gmime2 \
-		event-1:${PORTSDIR}/devel/libevent
+LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre \
+		libgmime-2.4.so:${PORTSDIR}/mail/gmime24 \
+		libevent.so:${PORTSDIR}/devel/libevent
+
+USE_GITHUB=		yes
+GH_ACCOUNT=		vstakhov
+GH_PROJECT=		${PORTNAME}
+GH_TAG=		${PORTVERSION}
+GH_COMMIT=		b5fc214
 
 OPTIONS_DEFINE=	GPERF JUDY REDIRECTOR
 GPERF_DESC=		google perf-tools profiling
@@ -23,21 +28,23 @@ USE_RC_SUBR=	rspamd
 
 PLIST_SUB+=	ETCDIR=etc/rspamd \
 		RSPAMDVERSION=${PORTVERSION}
-CMAKE_ARGS+=	-DETC_PREFIX=${PREFIX}/etc -DPREFIX=${PREFIX} \
-		-DBUILD_PORT=yes -DNO_SHARED=ON
+CMAKE_ARGS+=	-DCONFDIR=${PREFIX}/etc/rspamd \
+				-DLOGDIR=/var/log/rspamd \
+				-DDBDIR=/var/lib/rspamd \
+				-DRUNDIR=/var/run/rspamd \
+				-DMANDIR=${MANPREFIX}/man \
+				-DCMAKE_INSTALL_PREFIX=${PREFIX} \
+				-DBUILD_PORT=yes \
+				-DLIBDIR=${PREFIX}/lib \
+				-DNO_SHARED=ON
 
 USES=		cmake gettext iconv pkgconfig
 USE_LDCONFIG=	yes
 
 USE_GNOME=	glib20
 USE_LUA=	5.1-
-USE_SQLITE=	yes
 USE_OPENSSL=	yes
 
-MAN8=	rspamd.8
-MAN1=	rspamc.1
-
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MGPERF}

Modified: head/mail/rspamd/distinfo
==============================================================================
--- head/mail/rspamd/distinfo	Mon Dec  2 16:06:17 2013	(r335505)
+++ head/mail/rspamd/distinfo	Mon Dec  2 16:07:53 2013	(r335506)
@@ -1,2 +1,2 @@
-SHA256 (rspamd-0.5.6.tar.gz) = 95e6337ec568f017ed1037c7de39ded82f642c3f2c82d0c10bc69e2be48f6ae4
-SIZE (rspamd-0.5.6.tar.gz) = 992005
+SHA256 (rspamd-0.6.1.tar.gz) = a642484d7cb1aaa3ca28a006aaf047fde61d291d2ad3f2248d4d75d73307820f
+SIZE (rspamd-0.6.1.tar.gz) = 2879117

Modified: head/mail/rspamd/pkg-descr
==============================================================================
--- head/mail/rspamd/pkg-descr	Mon Dec  2 16:06:17 2013	(r335505)
+++ head/mail/rspamd/pkg-descr	Mon Dec  2 16:07:53 2013	(r335506)
@@ -2,4 +2,4 @@ Rspamd is fast, modular and lightweight 
 with big ammount of mail and can be easily extended with own filters written in
 lua.
 
-WWW:	http://bitbucket.org/vstakhov/rspamd/wiki/Home
+WWW: https://rspamd.com

Modified: head/mail/rspamd/pkg-plist
==============================================================================
--- head/mail/rspamd/pkg-plist	Mon Dec  2 16:06:17 2013	(r335505)
+++ head/mail/rspamd/pkg-plist	Mon Dec  2 16:07:53 2013	(r335506)
@@ -3,34 +3,68 @@ bin/rspamd
 bin/rspamc-%%RSPAMDVERSION%%
 bin/rspamc
 %%REDIRECTOR%%bin/rspamd-redirector
-etc/rspamd.xml.sample
-%%ETCDIR%%/2tld.inc
-%%ETCDIR%%/surbl-whitelist.inc
-%%ETCDIR%%/plugins/lua/forged_recipients.lua
-%%ETCDIR%%/plugins/lua/maillist.lua
-%%ETCDIR%%/plugins/lua/multimap.lua
-%%ETCDIR%%/plugins/lua/once_received.lua
-%%ETCDIR%%/plugins/lua/received_rbl.lua
-%%ETCDIR%%/plugins/lua/ratelimit.lua
-%%ETCDIR%%/plugins/lua/whitelist.lua
-%%ETCDIR%%/plugins/lua/phishing.lua
-%%ETCDIR%%/plugins/lua/trie.lua
-%%ETCDIR%%/plugins/lua/emails.lua
-%%ETCDIR%%/plugins/lua/ip_score.lua
-%%ETCDIR%%/lua/regexp/drugs.lua
-%%ETCDIR%%/lua/regexp/fraud.lua
-%%ETCDIR%%/lua/regexp/headers.lua
-%%ETCDIR%%/lua/regexp/lotto.lua
-%%ETCDIR%%/lua/rspamd.lua
-%%ETCDIR%%/lua/rspamd.classifiers.lua
-lib/rspamd/librspamdclient.so.%%RSPAMDVERSION%%
-lib/rspamd/librspamdclient.so
-lib/rspamd/librspamdclient_static.a
+lib/librspamdclient.so.%%RSPAMDVERSION%%
+lib/librspamdclient.so
+lib/librspamdclient_static.a
 include/rspamd/librspamdclient.h
- at dirrmtry %%ETCDIR%%/plugins/lua
- at dirrmtry %%ETCDIR%%/plugins/
- at dirrmtry %%ETCDIR%%/lua/regexp
- at dirrmtry %%ETCDIR%%/lua/
- at dirrmtry %%ETCDIR%%
- at dirrmtry lib/rspamd
+
+etc/rspamd/lua/regexp/drugs.lua
+etc/rspamd/lua/regexp/fraud.lua
+etc/rspamd/lua/regexp/headers.lua
+etc/rspamd/lua/regexp/lotto.lua
+etc/rspamd/lua/rspamd.classifiers.lua
+etc/rspamd/lua/rspamd.lua
+%%DATADIR%%/lua/emails.lua
+%%DATADIR%%/lua/forged_recipients.lua
+%%DATADIR%%/lua/ip_score.lua
+%%DATADIR%%/lua/maillist.lua
+%%DATADIR%%/lua/multimap.lua
+%%DATADIR%%/lua/once_received.lua
+%%DATADIR%%/lua/phishing.lua
+%%DATADIR%%/lua/ratelimit.lua
+%%DATADIR%%/lua/rbl.lua
+%%DATADIR%%/lua/trie.lua
+%%DATADIR%%/lua/whitelist.lua
+
+ at unexec if cmp -s %D/etc/rspamd/rspamd.conf %D/etc/rspamd/rspamd.conf.sample ; then rm -f %D/etc/rspamd/rspamd.conf ; fi
+etc/rspamd/rspamd.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/rspamd.conf ]; then cp -p %D/%F %B/rspamd.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/2tld.inc %D/etc/rspamd/2tld.inc.sample ; then rm -f %D/etc/rspamd/2tld.inc ; fi
+etc/rspamd/2tld.inc.sample
+ at exec if [ ! -f %D/etc/rspamd/2tld.inc ]; then cp -p %D/%F %B/2tld.inc; fi
+ at unexec if cmp -s %D/etc/rspamd/composites.conf %D/etc/rspamd/composites.conf.sample ; then rm -f %D/etc/rspamd/composites.conf ; fi
+etc/rspamd/composites.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/composites.conf ]; then cp -p %D/%F %B/composites.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/logging.conf %D/etc/rspamd/logging.conf.sample ; then rm -f %D/etc/rspamd/logging.conf ; fi
+etc/rspamd/logging.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/logging.conf ]; then cp -p %D/%F %B/logging.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/metrics.conf %D/etc/rspamd/metrics.conf.sample ; then rm -f %D/etc/rspamd/metrics.conf ; fi
+etc/rspamd/metrics.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/metrics.conf ]; then cp -p %D/%F %B/metrics.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/modules.conf %D/etc/rspamd/modules.conf.sample ; then rm -f %D/etc/rspamd/modules.conf ; fi
+etc/rspamd/modules.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/modules.conf ]; then cp -p %D/%F %B/modules.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/options.conf %D/etc/rspamd/options.conf.sample ; then rm -f %D/etc/rspamd/options.conf ; fi
+etc/rspamd/options.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/options.conf ]; then cp -p %D/%F %B/options.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/statistic.conf %D/etc/rspamd/statistic.conf.sample ; then rm -f %D/etc/rspamd/statistic.conf ; fi
+etc/rspamd/statistic.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/statistic.conf ]; then cp -p %D/%F %B/statistic.conf; fi
+ at unexec if cmp -s %D/etc/rspamd/surbl-whitelist.inc %D/etc/rspamd/surbl-whitelist.inc.sample ; then rm -f %D/etc/rspamd/surbl-whitelist.inc ; fi
+etc/rspamd/surbl-whitelist.inc.sample
+ at exec if [ ! -f %D/etc/rspamd/surbl-whitelist.inc ]; then cp -p %D/%F %B/surbl-whitelist.inc; fi
+ at unexec if cmp -s %D/etc/rspamd/workers.conf %D/etc/rspamd/workers.conf.sample ; then rm -f %D/etc/rspamd/workers.conf ; fi
+etc/rspamd/workers.conf.sample
+ at exec if [ ! -f %D/etc/rspamd/workers.conf ]; then cp -p %D/%F %B/workers.conf; fi
+
+man/man1/rspamc.1.gz
+man/man8/rspamd.8.gz
+
+
+ at dirrmtry %%DATADIR%%/lua
+ at dirrmtry %%DATADIR%%
+ at dirrmtry etc/rspamd/lua/regexp
+ at dirrmtry etc/rspamd/lua
+ at dirrmtry etc/rspamd
 @dirrmtry include/rspamd
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%


More information about the svn-ports-all mailing list