From e2f3e3062f931de6d2d15f1bc04a9383ae3292f9 Mon Sep 17 00:00:00 2001
From: Martin Wilke <miwi@FreeBSD.org>
Date: Tue, 9 Mar 2010 22:26:17 +0000
Subject: [PATCH] mime-construct constructs and (by default) mails MIME
 messages. It is entirely driven from the command line, it is designed to be
 used by other programs, or people who act like programs.

WWW: http://www.argon.org/~roderick/

PR:		ports/144410
Submitted by:	Alexey V. Degtyarev <alexey at renatasystems.org>
---
 mail/Makefile                 |  1 +
 mail/mime-construct/Makefile  | 26 ++++++++++++++++++++++++++
 mail/mime-construct/distinfo  |  3 +++
 mail/mime-construct/pkg-descr |  5 +++++
 mail/mime-construct/pkg-plist |  3 +++
 5 files changed, 38 insertions(+)
 create mode 100644 mail/mime-construct/Makefile
 create mode 100644 mail/mime-construct/distinfo
 create mode 100644 mail/mime-construct/pkg-descr
 create mode 100644 mail/mime-construct/pkg-plist

diff --git a/mail/Makefile b/mail/Makefile
index d379c73aa478..7313fb87cdf5 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -280,6 +280,7 @@
     SUBDIR += milter-manager
     SUBDIR += milter-regex
     SUBDIR += milter-skem
+    SUBDIR += mime-construct
     SUBDIR += mime4j
     SUBDIR += mimedefang
     SUBDIR += mini_sendmail
diff --git a/mail/mime-construct/Makefile b/mail/mime-construct/Makefile
new file mode 100644
index 000000000000..4289d534d7d4
--- /dev/null
+++ b/mail/mime-construct/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for:	mime-construct
+# Date created:				Tue 02 Mar 2010
+# Whom:					Alexey V. Degtyarev <alexey@renatasystems.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	mime-construct
+PORTVERSION=	1.10
+CATEGORIES=	mail
+MASTER_SITES=	http://www.argon.org/~roderick/ \
+		ftp://renatasystems.org/pub/FreeBSD/ports/distfiles/
+
+MAINTAINER=	alexey@renatasystems.org
+COMMENT=	Construct and optionally send MIME messages from command line
+
+BUILD_DEPENDS=	p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64 \
+		p5-MIME-Types>=0:${PORTSDIR}/mail/p5-MIME-Types \
+		p5-Proc-WaitStat>=0:${PORTSDIR}/devel/p5-Proc-WaitStat
+RUN_DEPENDS=	${BUILD_DEPENDS}
+
+PERL_CONFIGURE=	yes
+
+MAN1=		mime-construct.1
+
+.include <bsd.port.mk>
diff --git a/mail/mime-construct/distinfo b/mail/mime-construct/distinfo
new file mode 100644
index 000000000000..f33fd4f4cbd5
--- /dev/null
+++ b/mail/mime-construct/distinfo
@@ -0,0 +1,3 @@
+MD5 (mime-construct-1.10.tar.gz) = a8060188ed35dccd5c5aac85f5b6a094
+SHA256 (mime-construct-1.10.tar.gz) = 529cd41050787aa1a5c387104ab4df8a734061c23a5dcedd5f12fe37ff8a71e9
+SIZE (mime-construct-1.10.tar.gz) = 12452
diff --git a/mail/mime-construct/pkg-descr b/mail/mime-construct/pkg-descr
new file mode 100644
index 000000000000..a39d62ea5afb
--- /dev/null
+++ b/mail/mime-construct/pkg-descr
@@ -0,0 +1,5 @@
+mime-construct constructs and (by default) mails MIME messages. It is entirely
+driven from the command line, it is designed to be used by other programs, or
+people who act like programs.
+
+WWW: http://www.argon.org/~roderick/
diff --git a/mail/mime-construct/pkg-plist b/mail/mime-construct/pkg-plist
new file mode 100644
index 000000000000..89b5c25ff85d
--- /dev/null
+++ b/mail/mime-construct/pkg-plist
@@ -0,0 +1,3 @@
+bin/mime-construct
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/mime-construct/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/mime-construct