diff options
author | lioux <lioux@FreeBSD.org> | 2005-08-31 08:48:22 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2005-08-31 08:48:22 +0800 |
commit | 9030d5614094a225095c873b73d797ca8cbdbc80 (patch) | |
tree | b140b438b527ca8345feaa898971442ccbefcfe8 | |
parent | 81ea2e2353c9f708d57fac74abbb72b76c209fbc (diff) | |
download | freebsd-ports-gnome-9030d5614094a225095c873b73d797ca8cbdbc80.tar.gz freebsd-ports-gnome-9030d5614094a225095c873b73d797ca8cbdbc80.tar.zst freebsd-ports-gnome-9030d5614094a225095c873b73d797ca8cbdbc80.zip |
New port normalizemime version 1.16.20050628: A mime normalizer to
be used as a preprocessor for email classication
-rw-r--r-- | mail/Makefile | 1 | ||||
-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 |
5 files changed, 63 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 9e3686e7dccb..2cbc25d0f595 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -243,6 +243,7 @@ SUBDIR += noattach SUBDIR += nocc SUBDIR += nohtml + SUBDIR += normalizemime SUBDIR += nullmailer SUBDIR += offlineimap SUBDIR += openwebmail 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 |