aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlth <lth@FreeBSD.org>2004-08-30 06:47:35 +0800
committerlth <lth@FreeBSD.org>2004-08-30 06:47:35 +0800
commitd5594b05a6d0279f115f9b2a14dc7ab3b9462310 (patch)
tree542ae021e67f635e407a86ab2a4797c6301d1175
parent35e9cf1a31a41145b08351a5cecabb79cdc15c94 (diff)
downloadfreebsd-ports-gnome-d5594b05a6d0279f115f9b2a14dc7ab3b9462310.tar.gz
freebsd-ports-gnome-d5594b05a6d0279f115f9b2a14dc7ab3b9462310.tar.zst
freebsd-ports-gnome-d5594b05a6d0279f115f9b2a14dc7ab3b9462310.zip
Add p5-Email-MIME-Attachment-Stripper 1.3, strip the attachments
from a mail.
-rw-r--r--mail/Makefile1
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/Makefile34
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/distinfo2
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/pkg-descr3
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/pkg-plist9
5 files changed, 49 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index c70bc7dd6f21..c656eba023dd 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -232,6 +232,7 @@
SUBDIR += p5-Email-LocalDelivery
SUBDIR += p5-Email-LocalDelivery-Ezmlm
SUBDIR += p5-Email-MIME
+ SUBDIR += p5-Email-MIME-Attachment-Stripper
SUBDIR += p5-Email-MIME-ContentType
SUBDIR += p5-Email-MIME-Encodings
SUBDIR += p5-Email-Simple
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/Makefile b/mail/p5-Email-MIME-Attachment-Stripper/Makefile
new file mode 100644
index 000000000000..6795c4201179
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: p5-Email-MIME-Attachment-Stripper
+# Date created: 2004-08-30
+# Whom: Lars Thegler <lth@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Email-MIME-Attachment-Stripper
+PORTVERSION= 1.3
+CATEGORIES= mail perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Email
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lth@FreeBSD.org
+COMMENT= Strip the attachments from a mail
+
+BUILD_DEPENDS= ${SITE_PERL}/Email/MIME.pm:${PORTSDIR}/mail/p5-Email-MIME \
+ ${SITE_PERL}/Email/MIME/Encodings.pm:${PORTSDIR}/mail/p5-Email-MIME-Encodings
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Email::MIME::Attachment::Stripper.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} <= 500503
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \
+ ${WRKSRC}/lib/Email/MIME/Attachment/Stripper.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/distinfo b/mail/p5-Email-MIME-Attachment-Stripper/distinfo
new file mode 100644
index 000000000000..e1cd8f0900f5
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/distinfo
@@ -0,0 +1,2 @@
+MD5 (Email-MIME-Attachment-Stripper-1.3.tar.gz) = 0f554d9f0d941425cb36dd463088f812
+SIZE (Email-MIME-Attachment-Stripper-1.3.tar.gz) = 14805
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/pkg-descr b/mail/p5-Email-MIME-Attachment-Stripper/pkg-descr
new file mode 100644
index 000000000000..44af0f654c2c
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/pkg-descr
@@ -0,0 +1,3 @@
+Given a Email::MIME object, detach all attachments from the message.
+
+WWW: http://search.cpan.org/dist/Email-MIME-Attachment-Stripper/
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/pkg-plist b/mail/p5-Email-MIME-Attachment-Stripper/pkg-plist
new file mode 100644
index 000000000000..48891749897d
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Email/MIME/Attachment/Stripper.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/Attachment/Stripper/.packlist
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/Attachment/Stripper 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/Attachment 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email/MIME/Attachment 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email/MIME 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email 2>/dev/null || true