summaryrefslogtreecommitdiff
path: root/mail/demime
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-06-07 12:21:08 +0000
committertron <tron@pkgsrc.org>2002-06-07 12:21:08 +0000
commit06aa3971b579463c65e859c8e088217c0e62908c (patch)
treebe7ee4c2202a74a9bf6bd47daed4c72f03a893e0 /mail/demime
parent195c0586053e338e8c3221654c6e4dd3c187561e (diff)
downloadpkgsrc-06aa3971b579463c65e859c8e088217c0e62908c.tar.gz
Import new "demime" package: Tool to scrub mime from mailing lists
This package was contributed by Hauke Fath in PR pkg/16392.
Diffstat (limited to 'mail/demime')
-rw-r--r--mail/demime/DESCR9
-rw-r--r--mail/demime/Makefile43
-rw-r--r--mail/demime/PLIST4
-rw-r--r--mail/demime/distinfo7
-rw-r--r--mail/demime/patches/patch-aa13
5 files changed, 76 insertions, 0 deletions
diff --git a/mail/demime/DESCR b/mail/demime/DESCR
new file mode 100644
index 00000000000..af99c962bb7
--- /dev/null
+++ b/mail/demime/DESCR
@@ -0,0 +1,9 @@
+A perl script to flatten some mime types to make mailing lists and
+archives more readable. This tool is designed to run with the
+Majordomo list manager, but can most likely be adapted to different
+list software.
+
+WWW: http://scifi.squawk.com/demime.html
+
+- Pete
+petef@databits.net
diff --git a/mail/demime/Makefile b/mail/demime/Makefile
new file mode 100644
index 00000000000..306904de232
--- /dev/null
+++ b/mail/demime/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/06/07 12:21:08 tron Exp $
+# FreeBSD Id: ports/mail/demime/Makefile,v 1.4 2002/03/26 08:18:20 petef Exp
+
+DISTNAME= demime-0.99c.7
+PKGNAME= demime-0.99.3.7
+CATEGORIES= mail textproc
+MASTER_SITES= http://scifi.squawk.com/
+DISTFILES= demime.stable demime_junkmail.cf
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://scifi.squawk.com/demime.html
+COMMENT= Tool to scrub mime from mailing lists
+
+DEPENDS+= p5-MIME-Base64-[0-9]*:../../converters/p5-MIME-Base64
+DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
+DEPENDS+= p5-HTML-Format-[0-9]*:../../www/p5-HTML-Format
+DEPENDS+= p5-HTML-Tree-[0-9]*:../../www/p5-HTML-Tree
+
+DIST_SUBDIR= ${PKGNAME}
+NO_BUILD= YES
+USE_BUILDLINK_ONLY= YES
+USE_PERL5= YES
+
+POD2MAN?= ${PREFIX}/bin/pod2man
+
+do-extract:
+ @${MKDIR} ${WRKSRC}
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/demime.stable ${WRKSRC}/demime.stable
+
+post-patch:
+ ${SED} -e 's|/usr/lib/majordomo/demime_junkmail.cf|${PREFIX}/etc/demime_junkmail.cf|g' \
+ -e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \
+ ${WRKSRC}/demime.stable >${WRKSRC}/demime
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/demime ${PREFIX}/bin/demime
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/demime_junkmail.cf \
+ ${PREFIX}/etc
+ ${POD2MAN} ${WRKSRC}/demime > ${WRKSRC}/demime.1
+ ${INSTALL_MAN} ${WRKSRC}/demime.1 ${PREFIX}/man/man1/demime.1
+
+.include "../../lang/perl5/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/mail/demime/PLIST b/mail/demime/PLIST
new file mode 100644
index 00000000000..3414232675e
--- /dev/null
+++ b/mail/demime/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/07 12:21:09 tron Exp $
+bin/demime
+etc/demime_junkmail.cf
+man/man1/demime.1
diff --git a/mail/demime/distinfo b/mail/demime/distinfo
new file mode 100644
index 00000000000..34796afad1d
--- /dev/null
+++ b/mail/demime/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/06/07 12:21:09 tron Exp $
+
+SHA1 (demime-0.99.3.7/demime.stable) = dab8de056c90a6796dfbf043fcb32a9a364b74e1
+Size (demime-0.99.3.7/demime.stable) = 85271 bytes
+SHA1 (demime-0.99.3.7/demime_junkmail.cf) = 640b9d6f8605a50a807da56c38a3b2f470dd07c5
+Size (demime-0.99.3.7/demime_junkmail.cf) = 6899 bytes
+SHA1 (patch-aa) = fd399750d676983f6c843e92dfec654443cb33d3
diff --git a/mail/demime/patches/patch-aa b/mail/demime/patches/patch-aa
new file mode 100644
index 00000000000..9ef1c8db102
--- /dev/null
+++ b/mail/demime/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/07 12:21:09 tron Exp $
+
+--- demime.stable.orig Wed Apr 17 17:08:40 2002
++++ demime.stable
+@@ -21,7 +21,7 @@
+
+ # Following controls whether only 7 bit output
+ # from message body sections should be done.
+-$::SEVEN_BIT_ONLY = 1;
++$::SEVEN_BIT_ONLY = 0;
+
+ # Following configuration variable controls whether a message/rfc822
+ # in a multipart/mixed main segment is rendered or elided.