aboutsummaryrefslogtreecommitdiff
path: root/mail/gotmail
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-04-01 02:39:19 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-04-01 02:39:19 +0000
commit37b3900812236202a4b742fdf285fdeaf6082136 (patch)
tree82194a4dec35859500571a4abc7f368f01e124ea /mail/gotmail
parent57ec496034a002e79b26553c892f96322f9581ed (diff)
downloadports-37b3900812236202a4b742fdf285fdeaf6082136.tar.gz
ports-37b3900812236202a4b742fdf285fdeaf6082136.zip
Fix major problems
Give maintainership to originator Bump PORTREVISION PR: 36600 Submitted by: ports@geeksrus.net
Notes
Notes: svn path=/head/; revision=57102
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