diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-08-31 00:48:22 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2005-08-31 00:48:22 +0000 |
commit | 0e1ef5c9cca119f0a5902deb5e036310a522e165 (patch) | |
tree | 9459a21fcb2cc7efe93b9b6ae58774bb2f6b00f5 /mail/normalizemime | |
parent | aab0f81df11c9e16c555efbb66df34aeb4c61f8a (diff) | |
download | ports-0e1ef5c9cca119f0a5902deb5e036310a522e165.tar.gz ports-0e1ef5c9cca119f0a5902deb5e036310a522e165.zip |
Notes
Diffstat (limited to 'mail/normalizemime')
-rw-r--r-- | mail/normalizemime/Makefile | 37 | ||||
-rw-r--r-- | mail/normalizemime/distinfo | 2 | ||||
-rw-r--r-- | mail/normalizemime/files/patch-normalizemime.cc | 11 | ||||
-rw-r--r-- | mail/normalizemime/pkg-descr | 12 |
4 files changed, 62 insertions, 0 deletions
diff --git a/mail/normalizemime/Makefile b/mail/normalizemime/Makefile new file mode 100644 index 000000000000..b7d56b7fb736 --- /dev/null +++ b/mail/normalizemime/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: normalize mime +# Date created: Wed Aug 31 00:24:53 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= normalizemime +PORTVERSION= 1.16.20050628 +CATEGORIES= mail +MASTER_SITES= http://hyvatti.iki.fi/~jaakko/spam/ +DISTNAME= normalizemime.cc +EXTRACT_SUFX= +EXTRACT_ONLY= + +MAINTAINER= lioux@FreeBSD.org +COMMENT= A mime normalizer to be used as a preprocessor for email classication + +USE_ICONV= yes +NO_WRKSUBDIR= yes + +CXXFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -liconv + +PLIST_FILES= bin/${DISTNAME:R} + +post-extract: + @${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${WRKSRC} + +do-build: + @cd ${WRKSRC} && ${CXX} ${CXXFLAGS} ${LDFLAGS} \ + ${DISTNAME} -o ${DISTNAME:R} + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME:R} ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/mail/normalizemime/distinfo b/mail/normalizemime/distinfo new file mode 100644 index 000000000000..f746e7454ce5 --- /dev/null +++ b/mail/normalizemime/distinfo @@ -0,0 +1,2 @@ +MD5 (normalizemime.cc) = ba31fdfbe6f3cb193df6d6be75fd940a +SIZE (normalizemime.cc) = 41621 diff --git a/mail/normalizemime/files/patch-normalizemime.cc b/mail/normalizemime/files/patch-normalizemime.cc new file mode 100644 index 000000000000..f8974d60cd14 --- /dev/null +++ b/mail/normalizemime/files/patch-normalizemime.cc @@ -0,0 +1,11 @@ +--- normalizemime.cc.orig Tue Aug 30 21:31:02 2005 ++++ normalizemime.cc Tue Aug 30 21:33:08 2005 +@@ -498,7 +498,7 @@ + char *obuf = buf; + memcpy (icopy, message.c_str(), in_left); + message.erase (); +- char *ibuf = icopy; ++ const char *ibuf = icopy; + + while (in_left > 0) { + if ((size_t)(-1) == iconv (ic, &ibuf, &in_left, &obuf, &out_left)) { diff --git a/mail/normalizemime/pkg-descr b/mail/normalizemime/pkg-descr new file mode 100644 index 000000000000..2722a55daaa0 --- /dev/null +++ b/mail/normalizemime/pkg-descr @@ -0,0 +1,12 @@ +[ excerpt from developer's www site with modifications ] + +This is a mime email message parser to be used as a preprocessor +for email classification software. + +Tries to normalize the content to 8bit encoding with utf-8 character +set. Also appends a copy of message body with HTML removed (IMG and +A tags remain unaffected). + +WWW: http://hyvatti.iki.fi/~jaakko/spam/ + +-- lioux@FreeBSD.org |