diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-02 22:29:08 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2006-01-02 22:29:08 +0000 |
commit | d516adfb99aee2a883d341e06b277372e862083b (patch) | |
tree | 86ef1f63d37d60dcaa6e490e73ec57189527afca /mail/spamprobe | |
parent | [Maintainer Update] devel/gauche-sdl fixed compiler error (diff) |
[PATCH] mail/spamprobe: update to 1.4, take maintainership
- Update to 1.4
- Take maintainership
- Optionally depend on libungif
- Remove local patch for gcc 2.x; instead, depend on gcc 3.2+ (untested on 4.x -
I hope it makes it work without any patches there).
- Remove local patch for using OpenSSL's MD5 implementation.
Removed file(s):
- files/patch-md5
- files/patch-strings
PR: ports/91232
Submitted by: Stefan Walter <sw@gegenunendlich.de>
Notes
Notes:
svn path=/head/; revision=152618
Diffstat (limited to 'mail/spamprobe')
-rw-r--r-- | mail/spamprobe/Makefile | 21 | ||||
-rw-r--r-- | mail/spamprobe/distinfo | 6 | ||||
-rw-r--r-- | mail/spamprobe/files/patch-md5 | 93 | ||||
-rw-r--r-- | mail/spamprobe/files/patch-strings | 14 | ||||
-rw-r--r-- | mail/spamprobe/pkg-message | 15 |
5 files changed, 16 insertions, 133 deletions
diff --git a/mail/spamprobe/Makefile b/mail/spamprobe/Makefile index f4e5d313d292..805479769860 100644 --- a/mail/spamprobe/Makefile +++ b/mail/spamprobe/Makefile @@ -6,29 +6,34 @@ # PORTNAME= spamprobe -PORTVERSION= 1.2a +PORTVERSION= 1.4 CATEGORIES= mail MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sw@gegenunendlich.de COMMENT= Spam detector using Bayesian analysis of word counts LIB_DEPENDS= db4:${PORTSDIR}/databases/db4 +USE_GCC= 3.2+ GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --enable-default-8bit --enable-cdb +CPPFLAGS= -I${LOCALBASE}/include/db4 +LDFLAGS= -L${LOCALBASE}/lib -ldb4 MAN1= spamprobe.1 PLIST_FILES= bin/spamprobe -USE_OPENSSL= yes -CPPFLAGS= -I${LOCALBASE}/include/db4 -I${OPENSSLINC} -LDFLAGS= -L${LOCALBASE}/lib -ldb4 -lcrypto +OPTIONS= UNGIF "Enable tokenization of GIF attachments with libungif" off -post-install: - @${CAT} ${PKGMESSAGE} +.include <bsd.port.pre.mk> -.include <bsd.port.mk> +.if defined(WITH_UNGIF) +LIB_DEPENDS+= ungif.5:${PORTSDIR}/graphics/libungif +CPPFLAGS+= -I${LOCALBASE}/include +.endif + +.include <bsd.port.post.mk> diff --git a/mail/spamprobe/distinfo b/mail/spamprobe/distinfo index 5ccb5fe5f2f3..88add543fcea 100644 --- a/mail/spamprobe/distinfo +++ b/mail/spamprobe/distinfo @@ -1,3 +1,3 @@ -MD5 (spamprobe-1.2a.tar.gz) = f42b36d8056841bb132bb5c8857896c1 -SHA256 (spamprobe-1.2a.tar.gz) = e2fa882fc3abf7b23e07018652092c47ea9435a0f5009bb55ef875ce9f2f1b18 -SIZE (spamprobe-1.2a.tar.gz) = 189240 +MD5 (spamprobe-1.4.tar.gz) = a108dd7bcc820cce183e9983441b546f +SHA256 (spamprobe-1.4.tar.gz) = bac63456622c9891281629e0c053fb60bbf21418f105fbc563211c9f4043d7d9 +SIZE (spamprobe-1.4.tar.gz) = 251798 diff --git a/mail/spamprobe/files/patch-md5 b/mail/spamprobe/files/patch-md5 deleted file mode 100644 index 496129c7c788..000000000000 --- a/mail/spamprobe/files/patch-md5 +++ /dev/null @@ -1,93 +0,0 @@ -Use OpenSSL's optimized MD5-implementation instead of compiling our own - - -mi - ---- Makefile.in Tue Jun 21 22:23:57 2005 -+++ Makefile.in Wed Jun 22 17:29:23 2005 -@@ -135,5 +135,4 @@ - WordArray.cc\ - hash.c\ -- md5.c\ - spamprobe.cc\ - util.cc -@@ -196,5 +195,4 @@ - MBoxMailMessageReader.h\ - MD5Digester.h\ -- md5.h\ - Message.h\ - MessageHeader.h\ -@@ -266,5 +264,5 @@ - Tokenizer.$(OBJEXT) TraditionalMailMessageParser.$(OBJEXT) \ - UrlOnlyHtmlTokenizer.$(OBJEXT) WordArray.$(OBJEXT) \ -- hash.$(OBJEXT) md5.$(OBJEXT) spamprobe.$(OBJEXT) util.$(OBJEXT) -+ hash.$(OBJEXT) spamprobe.$(OBJEXT) util.$(OBJEXT) - spamprobe_OBJECTS = $(am_spamprobe_OBJECTS) - spamprobe_LDADD = $(LDADD) -@@ -330,5 +328,5 @@ - @AMDEP_TRUE@ ./$(DEPDIR)/UrlOnlyHtmlTokenizer.Po \ - @AMDEP_TRUE@ ./$(DEPDIR)/WordArray.Po ./$(DEPDIR)/hash.Po \ --@AMDEP_TRUE@ ./$(DEPDIR)/md5.Po ./$(DEPDIR)/spamprobe.Po \ -+@AMDEP_TRUE@ ./$(DEPDIR)/spamprobe.Po \ - @AMDEP_TRUE@ ./$(DEPDIR)/util.Po - COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ -@@ -460,5 +458,4 @@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/WordArray.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Po@am__quote@ --@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spamprobe.Po@am__quote@ - @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ ---- MD5Digester.h Sun Oct 31 18:10:46 2004 -+++ MD5Digester.h Wed Jun 22 17:30:37 2005 -@@ -33,5 +33,5 @@ - - #include "util.h" --#include "md5.h" -+#include <openssl/md5.h> - - class MD5Digester -@@ -41,3 +41,1 @@ - -- ~MD5Digester(); -- -@@ -69,5 +69,5 @@ - private: - string m_digest; -- md5_state_s m_state; -+ MD5_CTX m_state; - bool m_running; - }; ---- MD5Digester.cc Sun Oct 31 18:10:46 2004 -+++ MD5Digester.cc Wed Jun 22 17:40:07 2005 -@@ -37,9 +37,1 @@ - --MD5Digester::~MD5Digester() --{ -- if (m_running) { -- md5_byte_t raw_digest[32]; -- md5_finish(&m_state, raw_digest); -- } --} -- -@@ -49,5 +49,5 @@ - - m_digest.erase(); -- md5_init(&m_state); -+ MD5_Init(&m_state); - m_running = true; - } -@@ -58,5 +58,5 @@ - - if (value.length() > 0) { -- md5_append(&m_state, (md5_byte_t *)value.data(), value.length()); -+ MD5_Update(&m_state, value.data(), value.length()); - } - } -@@ -66,6 +66,6 @@ - assert(m_running); - -- md5_byte_t raw_digest[32]; -- md5_finish(&m_state, raw_digest); -+ unsigned char raw_digest[MD5_DIGEST_LENGTH]; -+ MD5_Final(raw_digest, &m_state); - - m_digest.erase(); diff --git a/mail/spamprobe/files/patch-strings b/mail/spamprobe/files/patch-strings deleted file mode 100644 index 8d0091a4b954..000000000000 --- a/mail/spamprobe/files/patch-strings +++ /dev/null @@ -1,14 +0,0 @@ -g++ before 3.x does not have the clear() method on strings - - -mi - ---- HashDataFile.cc Mon Mar 28 14:58:25 2005 -+++ HashDataFile.cc Wed Jun 22 17:27:02 2005 -@@ -233,5 +233,7 @@ - m_array.reset(0, 0); - m_base = 0; -+#if !defined(__GNUC__) || __GNUC__ > 2 - m_filename.clear(); -+#endif - } - } diff --git a/mail/spamprobe/pkg-message b/mail/spamprobe/pkg-message index c115a23a4bc5..e69de29bb2d1 100644 --- a/mail/spamprobe/pkg-message +++ b/mail/spamprobe/pkg-message @@ -1,15 +0,0 @@ - - - *** WARNING *** - -If you are using a version of SpamProbe earlier than 0.7 the database -format has changed! You will need to rebuild your database. - -You may convert your database using the following command: - - spamprobe-export_0.6 | spamprobe import - - *** WARNING *** - - - |