aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Email-LocalDelivery-Ezmlm
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2003-09-24 08:49:00 +0000
committerErwin Lansing <erwin@FreeBSD.org>2003-09-24 08:49:00 +0000
commit021a90a648ae1d91943d2d6562470f91166927ea (patch)
tree8783c31dd57df2224cfa1b659483bf4fba2f8821 /mail/p5-Email-LocalDelivery-Ezmlm
parent7abfbb7e73bb796ff918277ed96f31ab98e636cf (diff)
downloadports-021a90a648ae1d91943d2d6562470f91166927ea.tar.gz
ports-021a90a648ae1d91943d2d6562470f91166927ea.zip
Notes
Diffstat (limited to 'mail/p5-Email-LocalDelivery-Ezmlm')
-rw-r--r--mail/p5-Email-LocalDelivery-Ezmlm/Makefile31
-rw-r--r--mail/p5-Email-LocalDelivery-Ezmlm/distinfo1
-rw-r--r--mail/p5-Email-LocalDelivery-Ezmlm/files/patch-Ezmlm.pm29
-rw-r--r--mail/p5-Email-LocalDelivery-Ezmlm/pkg-descr3
-rw-r--r--mail/p5-Email-LocalDelivery-Ezmlm/pkg-plist8
5 files changed, 72 insertions, 0 deletions
diff --git a/mail/p5-Email-LocalDelivery-Ezmlm/Makefile b/mail/p5-Email-LocalDelivery-Ezmlm/Makefile
new file mode 100644
index 000000000000..c99542c9ac3c
--- /dev/null
+++ b/mail/p5-Email-LocalDelivery-Ezmlm/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: p5-Email-LocalDelivery-Ezmlm
+# Date created: September 7 2003
+# Whom: Lars Thegler <lars@thegler.dk>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Email-LocalDelivery-Ezmlm
+PORTVERSION= 0.10
+CATEGORIES= mail perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Email
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lars@thegler.dk
+COMMENT= Deliver mail into ezmlm archives
+
+BUILD_DEPENDS= ${SITE_PERL}/Email/LocalDelivery.pm:${PORTSDIR}/mail/p5-Email-LocalDelivery \
+ ${SITE_PERL}/Email/FolderType.pm:${PORTSDIR}/mail/p5-Email-FolderType
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Email::LocalDelivery::Ezmlm.3
+
+post-patch:
+ @${RM} ${WRKSRC}/lib/Email/LocalDelivery/Ezmlm.pm.orig
+test:
+ cd ${WRKSRC} ; make test
+
+.include <bsd.port.mk>
diff --git a/mail/p5-Email-LocalDelivery-Ezmlm/distinfo b/mail/p5-Email-LocalDelivery-Ezmlm/distinfo
new file mode 100644
index 000000000000..a74af56a4fe2
--- /dev/null
+++ b/mail/p5-Email-LocalDelivery-Ezmlm/distinfo
@@ -0,0 +1 @@
+MD5 (Email-LocalDelivery-Ezmlm-0.10.tar.gz) = c0700356d96418efe97d4d48ca34d69b
diff --git a/mail/p5-Email-LocalDelivery-Ezmlm/files/patch-Ezmlm.pm b/mail/p5-Email-LocalDelivery-Ezmlm/files/patch-Ezmlm.pm
new file mode 100644
index 000000000000..e74e2c3996ee
--- /dev/null
+++ b/mail/p5-Email-LocalDelivery-Ezmlm/files/patch-Ezmlm.pm
@@ -0,0 +1,29 @@
+ --- lib/Email/LocalDelivery/Ezmlm.pm.orig Wed Sep 10 22:17:27 2003
+ +++ lib/Email/LocalDelivery/Ezmlm.pm Wed Sep 10 22:19:41 2003
+ @@ -1,6 +1,6 @@
+ use strict;
+ package Email::LocalDelivery::Ezmlm;
+ -our $VERSION = '0.10';
+ +use vars qw($VERSION); $VERSION = '0.10';
+ use File::Path qw(mkpath);
+ use File::Basename qw( dirname );
+
+ @@ -40,7 +40,8 @@
+ # XXX should lock the folder - figure out how ezmlm does that
+
+ my $num;
+ - if (open my $fh, "$folder/num") {
+ + use IO::Handle; my $fh = IO::Handle->new;
+ + if (open $fh, "$folder/num") {
+ ($num) = (<$fh> =~ m/^(\d+)/);
+ }
+ ++$num;
+ @@ -48,7 +49,7 @@
+ my $filename = sprintf('%s/archive/%d/%02d',
+ $folder, int $num / 100, $num % 100);
+ eval { mkpath( dirname $filename ) };
+ - open my $fh, ">$filename" or next;
+ + open $fh, ">$filename" or next;
+ print $fh $mail;
+ close $fh or next;
+
diff --git a/mail/p5-Email-LocalDelivery-Ezmlm/pkg-descr b/mail/p5-Email-LocalDelivery-Ezmlm/pkg-descr
new file mode 100644
index 000000000000..8d90be09daeb
--- /dev/null
+++ b/mail/p5-Email-LocalDelivery-Ezmlm/pkg-descr
@@ -0,0 +1,3 @@
+This module delivers RFC822 messages into ezmlm-style archive folders.
+
+WWW: http://search.cpan.org/dist/Email-LocalDelivery-Ezmlm
diff --git a/mail/p5-Email-LocalDelivery-Ezmlm/pkg-plist b/mail/p5-Email-LocalDelivery-Ezmlm/pkg-plist
new file mode 100644
index 000000000000..19e1cbdb3e6f
--- /dev/null
+++ b/mail/p5-Email-LocalDelivery-Ezmlm/pkg-plist
@@ -0,0 +1,8 @@
+%%SITE_PERL%%/Email/LocalDelivery/Ezmlm.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/LocalDelivery/Ezmlm/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/LocalDelivery/Ezmlm
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/LocalDelivery 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email/LocalDelivery/Ezmlm 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email/LocalDelivery 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email 2>/dev/null || true