summaryrefslogtreecommitdiff
path: root/mail/gotmail
diff options
context:
space:
mode:
Diffstat (limited to 'mail/gotmail')
-rw-r--r--mail/gotmail/Makefile8
-rw-r--r--mail/gotmail/files/patch-gotmail.pl22
-rw-r--r--mail/gotmail/pkg-plist2
3 files changed, 29 insertions, 3 deletions
diff --git a/mail/gotmail/Makefile b/mail/gotmail/Makefile
index a26cceaa0774..38e6de19e700 100644
--- a/mail/gotmail/Makefile
+++ b/mail/gotmail/Makefile
@@ -7,11 +7,12 @@
PORTNAME= gotmail
PORTVERSION= 0.6.6
+PORTREVISION= 1
CATEGORIES= mail perl5
MASTER_SITES= http://www.hawkins.emu.id.au/gotmail/
DISTNAME= ${PORTNAME}_${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@geeksrus.net
RUN_DEPENDS= curl:${PORTSDIR}/ftp/curl \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI.pm:${PORTSDIR}/net/p5-URI
@@ -21,8 +22,11 @@ NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
+pre-patch:
+ ${PERL} -pi -e 's|\r$$||' ${WRKSRC}/${PORTNAME}.pl
+
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
post-install:
.if !defined(NOPORTDOCS)
diff --git a/mail/gotmail/files/patch-gotmail.pl b/mail/gotmail/files/patch-gotmail.pl
new file mode 100644
index 000000000000..72af85fad76a
--- /dev/null
+++ b/mail/gotmail/files/patch-gotmail.pl
@@ -0,0 +1,22 @@
+--- gotmail.pl.orig Mon Jul 23 20:04:47 2001
++++ gotmail.pl Sun Mar 31 19:47:52 2002
+@@ -462,6 +462,8 @@
+
+ if ($page =~ m/<meta(.*)content=\"(.*)url=(\S+)\">/i) {
+ $redirect_location = $3;
++ } elsif ($page =~ m/\w+\.location\.replace\s*\(\"([^\"]+)\"/i) {
++ $redirect_location = $1;
+ }
+
+ if ($redirect_location eq "")
+@@ -577,6 +579,10 @@
+ if ($stripmboxheader)
+ {
+ s/^From (.*)\n//;
++ }
++ else
++ {
++ s/^From\s+(\S+)\s+(\w+),\s+(\d+)\s+(\w+)\s+(\d+)\s+(\d+:\d+:\d+)/From $1 $2 $4 $3 $6 $5/;
+ }
+
+ # Strip any HTML artifacts from the message body.
diff --git a/mail/gotmail/pkg-plist b/mail/gotmail/pkg-plist
index 4dac4054c7d3..9d6828ebbe13 100644
--- a/mail/gotmail/pkg-plist
+++ b/mail/gotmail/pkg-plist
@@ -1,4 +1,4 @@
-bin/gotmail.pl
+bin/gotmail
%%PORTDOCS%%share/doc/gotmail/COPYING
%%PORTDOCS%%share/doc/gotmail/ChangeLog
%%PORTDOCS%%share/doc/gotmail/README