diff options
author | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-10 22:04:32 +0000 |
---|---|---|
committer | Ion-Mihai Tetcu <itetcu@FreeBSD.org> | 2006-07-10 22:04:32 +0000 |
commit | 0c25fde6e73614a7d2dd793cd71e2cb379839061 (patch) | |
tree | 05bcc0f958d7413285afc2069611a02a2444149c /mail/mmr | |
parent | 1cfce65fe938bf64604e91a16679898513d81554 (diff) | |
download | ports-0c25fde6e73614a7d2dd793cd71e2cb379839061.tar.gz ports-0c25fde6e73614a7d2dd793cd71e2cb379839061.zip |
Notes
Diffstat (limited to 'mail/mmr')
-rw-r--r-- | mail/mmr/Makefile | 20 | ||||
-rw-r--r-- | mail/mmr/distinfo | 6 | ||||
-rw-r--r-- | mail/mmr/files/patch-aa | 23 | ||||
-rw-r--r-- | mail/mmr/files/patch-ac | 14 | ||||
-rw-r--r-- | mail/mmr/files/patch-ad | 8 | ||||
-rw-r--r-- | mail/mmr/files/patch-ae | 40 | ||||
-rw-r--r-- | mail/mmr/files/patch-base64.cpp | 7 | ||||
-rw-r--r-- | mail/mmr/files/patch-handlemail.cpp | 10 | ||||
-rw-r--r-- | mail/mmr/files/patch-iobottle.cpp | 25 | ||||
-rw-r--r-- | mail/mmr/files/patch-listings.cpp | 20 | ||||
-rw-r--r-- | mail/mmr/files/patch-main.cpp | 201 | ||||
-rw-r--r-- | mail/mmr/files/patch-mime.cpp | 29 | ||||
-rw-r--r-- | mail/mmr/files/patch-outgoing.cpp (renamed from mail/mmr/files/patch-ab) | 8 | ||||
-rw-r--r-- | mail/mmr/files/patch-terminal.cpp | 20 |
14 files changed, 49 insertions, 382 deletions
diff --git a/mail/mmr/Makefile b/mail/mmr/Makefile index 44c7f1477ff6..86967dee3792 100644 --- a/mail/mmr/Makefile +++ b/mail/mmr/Makefile @@ -6,19 +6,29 @@ # PORTNAME= mmr -PORTVERSION= 1.5.5 +PORTVERSION= 1.6.0 CATEGORIES= mail MASTER_SITES= http://www.devolution.com/~slouken/projects/mmr/ MAINTAINER= ports@FreeBSD.org COMMENT= Curses based MIME Mail Reader -ALL_TARGET= # empty -USE_GCC= 2.95 +USE_ICONV= yes +MAKE_ARGS= LIBS='${LDFLAGS}' CXX='${CXX}' CXXFLAGS='${CXXFLAGS}' +ALL_TARGET= ${PORTNAME} PORTDOCS= BUGS CHANGES Features README TODO -PLIST_FILES= bin/mmr ${EXAMPLESDIR:S,${PREFIX}/,,}/dot.mmrc.sample -PLIST_DIRS= ${EXAMPLESDIR:S,${PREFIX}/,,} +PLIST_FILES= bin/mmr %%EXAMPLESDIR%%/dot.mmrc.sample +PLIST_DIRS= %%EXAMPLESDIR%% + +CXXFLAGS+= -DTHREADMAIL \ + -DMAILPATH=\"/var/mail\" \ + -DMAILER=\"/usr/sbin/sendmail\ -t\" \ + -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib -liconv -lcurses -lmd + +post-patch: + @${REINPLACE_CMD} -e 's|md5/libmd5.a||g' ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mmr ${PREFIX}/bin diff --git a/mail/mmr/distinfo b/mail/mmr/distinfo index 48d58200a12d..a93ae71fa007 100644 --- a/mail/mmr/distinfo +++ b/mail/mmr/distinfo @@ -1,3 +1,3 @@ -MD5 (mmr-1.5.5.tar.gz) = 115e22f8dc8d6f4ce96ab7b17f3a1796 -SHA256 (mmr-1.5.5.tar.gz) = 0a90f6a7cb11994009bfec4f0e0d227d01154346688d7a31d9b9aa6ce2441750 -SIZE (mmr-1.5.5.tar.gz) = 94016 +MD5 (mmr-1.6.0.tar.gz) = de9d6642b10bb53b6530caab522ff273 +SHA256 (mmr-1.6.0.tar.gz) = 62a939f603ced7fb55c35cd57aad4f7dc7e83c7f640138f7862bc1e9f6c24e45 +SIZE (mmr-1.6.0.tar.gz) = 76654 diff --git a/mail/mmr/files/patch-aa b/mail/mmr/files/patch-aa deleted file mode 100644 index a6cdb67adb0a..000000000000 --- a/mail/mmr/files/patch-aa +++ /dev/null @@ -1,23 +0,0 @@ ---- Makefile.orig Fri Mar 31 03:26:17 2000 -+++ Makefile Fri Mar 31 03:27:50 2000 -@@ -7,15 +7,15 @@ - # (Toggled at runtime with ^T) - # -DMAILPATH=\"/some/path\" - # Set the default mail spool directory --DEFS = -DTHREADMAIL -+DEFS = -DTHREADMAIL -DMAILPATH=\"/var/mail\" -DMAILER=\"/usr/sbin/sendmail\ -t\" - - OBJS = main.o rcfile.o listing.o handlemail.o commands.o terminal.o mailmsg.o \ - mime.o mimetype.o base64.o filemap.o iobottle.o my_regex.o outgoing.o \ - md5/libmd5.a --LIBS = -lcurses -ltermcap -lnsl --CXX = g++ -g --INCDIRS = -Imd5 -I/usr/include/ncurses --CXXFLAGS = $(DEFS) $(INCDIRS) -O2 -+LIBS = -lncurses -+CXX ?= g++ -g -+INCDIRS = -Imd5 -+CXXFLAGS += $(DEFS) $(INCDIRS) - - # Remind 'make' how to make C++ files.. *sigh* - include .c++howto diff --git a/mail/mmr/files/patch-ac b/mail/mmr/files/patch-ac deleted file mode 100644 index f1fcf7b91417..000000000000 --- a/mail/mmr/files/patch-ac +++ /dev/null @@ -1,14 +0,0 @@ ---- terminal.h Mon Jun 23 21:49:40 1997 -+++ /home/andy/tmp/wrk/terminal.h Tue Apr 27 18:06:25 1999 -@@ -13,7 +13,11 @@ - extern "C" { - #include <stdlib.h> - #include <stdarg.h> -+#ifdef __FreeBSD__ -+#include <ncurses.h> -+#else - #include <curses.h> -+#endif - } - - /* Note that screen coordinates start at (1,1) */ diff --git a/mail/mmr/files/patch-ad b/mail/mmr/files/patch-ad deleted file mode 100644 index e6483ad29d3c..000000000000 --- a/mail/mmr/files/patch-ad +++ /dev/null @@ -1,8 +0,0 @@ ---- md5/Makefile Wed Feb 12 01:38:38 1997 -+++ /home/andy/tmp/wrk/md5/Makefile Tue Apr 27 18:12:21 1999 -@@ -1,4 +1,4 @@ --CC = gcc -+CC?= gcc - - libmd5.a: md5c.o - ar rvc $@ md5c.o diff --git a/mail/mmr/files/patch-ae b/mail/mmr/files/patch-ae deleted file mode 100644 index 7c43b2a665a2..000000000000 --- a/mail/mmr/files/patch-ae +++ /dev/null @@ -1,40 +0,0 @@ ---- mailmsg.cpp.orig Tue May 30 01:59:06 2000 -+++ mailmsg.cpp Fri Oct 25 13:54:39 2002 -@@ -18,7 +18,7 @@ - mailmsg::boundary[] = { "From", NULL }; - - /* This is called by a program to create a new list of messages */ --mailmsg:: mailmsg(IObottle *mailfile, void (*oncreate)(mailmsg *ptr) = NULL) -+mailmsg:: mailmsg(IObottle *mailfile, void (*oncreate)(mailmsg *ptr)) - { - struct mbox_data *MBox; - -@@ -173,7 +173,7 @@ - /* Simple corruption check -- early end? */ - if ( strncmp(newdata, "From ", - strlen("From ")) == 0 ) { -- cerr << "Warning: Corrupt mailfile?" << endl; -+ std::cerr << "Warning: Corrupt mailfile?" << std::cerr; - break; - } - -@@ -338,7 +338,7 @@ - - /* See/Set the status of the message */ - const char * --mailmsg:: Status(int in_listing = 0) -+mailmsg:: Status(int in_listing) - { - /* Thread aware. :) */ - if ( in_listing && (mbox->showthreads == HIDE_THREADS) ) { -@@ -664,8 +664,8 @@ - - /* Sanity check */ - if ( i != (strlen(newsubject)-RElen) ) { -- cerr << "Warning: RE stripping: possible corruption!" -- << endl; -+ std::cerr << "Warning: RE stripping: possible corruption!" -+ << std::cerr; - } - - /* Make it the new subject */ diff --git a/mail/mmr/files/patch-base64.cpp b/mail/mmr/files/patch-base64.cpp deleted file mode 100644 index d3f28416c46d..000000000000 --- a/mail/mmr/files/patch-base64.cpp +++ /dev/null @@ -1,7 +0,0 @@ ---- base64.cpp.orig Mon Oct 21 23:29:39 2002 -+++ base64.cpp Mon Oct 21 23:29:56 2002 -@@ -1,3 +1,4 @@ -+#include <string.h> - - /* Convert to Base64 encoding */ - static char to_base64[64] = { diff --git a/mail/mmr/files/patch-handlemail.cpp b/mail/mmr/files/patch-handlemail.cpp new file mode 100644 index 000000000000..08a4c4a98cd1 --- /dev/null +++ b/mail/mmr/files/patch-handlemail.cpp @@ -0,0 +1,10 @@ +--- handlemail.cpp.orig Tue Jan 24 06:32:46 2006 ++++ handlemail.cpp Sun Jul 9 23:38:50 2006 +@@ -9,6 +9,7 @@ + #include <dirent.h> + #include <errno.h> + #include <string.h> ++#include <limits.h> + } + + #include "headers.h" diff --git a/mail/mmr/files/patch-iobottle.cpp b/mail/mmr/files/patch-iobottle.cpp deleted file mode 100644 index 43636ee5379f..000000000000 --- a/mail/mmr/files/patch-iobottle.cpp +++ /dev/null @@ -1,25 +0,0 @@ ---- iobottle.cpp.orig Fri Aug 6 05:39:19 1999 -+++ iobottle.cpp Fri Oct 25 13:58:58 2002 -@@ -1,3 +1,4 @@ -+#include <string.h> - - extern "C" { - #include <stdlib.h> -@@ -97,7 +98,7 @@ - } - /* If buf[len-1] is a null, then a newline should be written */ - size_t --IObottle:: writeline(char *buf, size_t len = 0) { -+IObottle:: writeline(char *buf, size_t len) { - int lenwritten = 0; - - if ( fputs(buf, wfp) >= 0 ) -@@ -134,7 +135,7 @@ - return(0); - } - int --IObottle:: set_time(time_t actime, time_t modtime = 0) { -+IObottle:: set_time(time_t actime, time_t modtime) { - struct stat sb; - struct utimbuf ub; - diff --git a/mail/mmr/files/patch-listings.cpp b/mail/mmr/files/patch-listings.cpp deleted file mode 100644 index a03a1bf1234b..000000000000 --- a/mail/mmr/files/patch-listings.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- listing.cpp.orig Fri Oct 25 14:00:55 2002 -+++ listing.cpp Fri Oct 25 14:01:12 2002 -@@ -40,7 +40,7 @@ - } - - void --Msg_Listing:: ReSize(int modified = 1) -+Msg_Listing:: ReSize(int modified) - { - if ( modified ) { - helppane->reset(); -@@ -1197,7 +1197,7 @@ - } - - mailmsg * --Msg_Listing:: View(mailmsg *which, MIME_body *body = NULL) -+Msg_Listing:: View(mailmsg *which, MIME_body *body) - { - mailmsg *newmsg, *holder; - diff --git a/mail/mmr/files/patch-main.cpp b/mail/mmr/files/patch-main.cpp index 61895279dba1..bbdfec2a1b39 100644 --- a/mail/mmr/files/patch-main.cpp +++ b/mail/mmr/files/patch-main.cpp @@ -1,197 +1,10 @@ ---- main.cpp.orig Fri Oct 25 13:49:34 2002 -+++ main.cpp Fri Oct 25 13:49:52 2002 -@@ -38,12 +38,12 @@ - void LoadStatus(mailmsg *message) - { - static char twiddle[] = "-+|+"; -- cerr << "\b\b" << twiddle[message->Index()%4] << ')'; -+ std::cerr << "\b\b" << twiddle[message->Index()%4] << ')'; - } - void QuitStatus(mailmsg *message) - { - static char twiddle[] = "-+|+"; -- cerr << "\b\b" << twiddle[message->Index()%4] << ')'; -+ std::cerr << "\b\b" << twiddle[message->Index()%4] << ')'; - } +--- main.cpp.orig Tue Jan 24 03:04:56 2006 ++++ main.cpp Sun Jul 9 23:38:13 2006 +@@ -1,6 +1,7 @@ - void CleanupMessages(void) -@@ -149,26 +149,26 @@ - case SIGHUP: - if ( messages ) - messages->Abort(); -- cout << "\rExiting because of hang-up signal!" << endl; -+ std::cout << "\rExiting because of hang-up signal!" << std::cerr; - break; - case SIGINT: - case SIGQUIT: - if ( messages ) - messages->Abort(); -- cout << "\rExiting because of keyboard interrupt!" << -- endl; -+ std::cout << "\rExiting because of keyboard interrupt!" << -+ std::cerr; - break; - case SIGSEGV: - case SIGBUS: - if ( messages ) - messages->Abort(); -- cout << "\rExiting because of program bug!" << endl; -+ std::cout << "\rExiting because of program bug!" << std::cerr; - break; - case SIGTERM: - if ( messages ) - messages->Abort(); -- cout << "\rExiting because of termination signal!" << -- endl; -+ std::cout << "\rExiting because of termination signal!" << -+ std::cerr; - break; - default: - break; -@@ -178,17 +178,17 @@ - char cmdbuf[BUFSIZ]; + /* This is the main body of my C++ mailer */ - if ( messages ) { -- cout << "Saving messages: ( )" << flush; -+ std::cout << "Saving messages: ( )" << std::flush; - messages->OnSave(QuitStatus); - CleanupMessages(); - messages = NULL; -- cout << " -- Done." << endl; -+ std::cout << " -- Done." << std::cerr; ++#include <limits.h> + #include <time.h> - /* Check for new mail */ - time_t atime, mtime; - mailfile->get_time(&atime, &mtime); - if ( mtime > atime ) -- cout << "You have NEW mail!" << endl; -+ std::cout << "You have NEW mail!" << std::cerr; - } - if ( was_compressed ) { - /* For some reason, this crashes on some mailboxes -@@ -202,9 +202,9 @@ - - /* Any final mailfile cleanup */ - if ( was_compressed ) { -- cout << "Compressing mailfile..." << flush; -+ std::cout << "Compressing mailfile..." << std::flush; - (void) system(cmdbuf); -- cout << "Done." << endl; -+ std::cout << "Done." << std::cerr; - /* For some reason, this crashes on some mailboxes - delete[] cmdbuf; - */ -@@ -447,12 +447,12 @@ - - void Usage(char *prog) - { -- cout << --Version << endl << endl << --"Usage: " << prog << " [-s subject] recipient1 recipient2 ... " << endl << --"or... " << prog << " -c" << endl << --"or... " << prog << " [-r initfile] [-f mailbox]" << endl << -- endl; -+ std::cout << -+Version << std::cerr << std::cerr << -+"Usage: " << prog << " [-s subject] recipient1 recipient2 ... " << std::cerr << -+"or... " << prog << " -c" << std::cerr << -+"or... " << prog << " [-r initfile] [-f mailbox]" << std::cerr << -+ std::cerr; - } - - main(int argc, char *argv[]) -@@ -511,7 +511,7 @@ - /* Command line mailing? */ - if ( *argv ) { - if ( NewMail(argv, subject) < 0 ) { -- cerr << "Mail send failed!" << endl; -+ std::cerr << "Mail send failed!" << std::cerr; - quit(-1); - } - quit(0); -@@ -526,7 +526,7 @@ - ((mailpath=(char *)getenv("MAIL")) == NULL) ) { - if ( ((whoami=getlogin()) == NULL) && - ((whoami=mycuserid()) == NULL) ) { -- cerr << "Who are you? -- Aborting!" << endl; -+ std::cerr << "Who are you? -- Aborting!" << std::cerr; - quit(-1); - } - mailpath = new char[strlen(MAILPATH)+1+strlen(whoami)+1]; -@@ -546,25 +546,25 @@ - struct stat sb; - - if ( stat(mailpath, &sb) < 0 ) { -- cout << mailpath << " is not readable" << endl; -+ std::cout << mailpath << " is not readable" << std::cerr; - quit(0); - } - if ( sb.st_size == 0 ) { -- cout << "No mail." << endl; -+ std::cout << "No mail." << std::cerr; - quit(0); - } - if ( check_mail ) { - if ( sb.st_mtime < sb.st_atime ) -- cout << "You have mail." << endl; -+ std::cout << "You have mail." << std::cerr; - else -- cout << "You have NEW mail." << endl; -+ std::cout << "You have NEW mail." << std::cerr; - quit(0); - } - - /* Check to see if the lock file exists */ - if ( CheckLock(mailpath) ) { -- cout << "Lockfile (" << mailpath << ".lock) exists!" << endl; -- cout << "Please try again later..." << endl; -+ std::cout << "Lockfile (" << mailpath << ".lock) exists!" << std::cerr; -+ std::cout << "Please try again later..." << std::cerr; - quit(0); - } - -@@ -592,10 +592,10 @@ - - /* Perform decompression */ - if ( decompress ) { -- cout << "Uncompressing mailfile..." << flush; -+ std::cout << "Uncompressing mailfile..." << std::flush; - if ( system(cmdbuf) == 0 ) - was_compressed = 1; -- cout << "Done." << endl; -+ std::cout << "Done." << std::cerr; - } - delete[] cmdbuf; - } -@@ -616,11 +616,11 @@ - char buffer[BUFSIZ]; - - if ( mailfile->fail() || mailfile->eof() ) { -- cout << "No mail in " << mailpath << endl; -+ std::cout << "No mail in " << mailpath << std::cerr; - quit(0); - } - if ( mailfile->readline(buffer, BUFSIZ) == 1 ) { -- cout << "Newline at start of mailfile -- aborting!" << endl; -+ std::cout << "Newline at start of mailfile -- aborting!" << std::cerr; - quit(-1); - } - mailfile->seekg(0); -@@ -629,7 +629,7 @@ - MIME_body::MIME_Ignore(GetStartVar("MIME_ignore")); - - /* If we have succeeded in opening the mailfile, load mail */ -- cout << "Loading messages: ( )" << flush; -+ std::cout << "Loading messages: ( )" << std::flush; - messages = new mailmsg(mailfile, LoadStatus); - if ( ((current = messages->ByStatus("N")) == NULL) && - ((current = messages->ByStatus("O")) == NULL) ) { -@@ -637,7 +637,7 @@ - for ( current = messages; newmsg = current->Next(); ) - current = newmsg; - } -- cout << " -- Done." << endl; -+ std::cout << " -- Done." << std::cerr; - sleep(1); - mailfile->get_time(NULL, &last_mtime); - mailfile->Size(&last_size); + /* Include all of the standard headers that we need */ diff --git a/mail/mmr/files/patch-mime.cpp b/mail/mmr/files/patch-mime.cpp index ea7732a2cefd..0ca931562b19 100644 --- a/mail/mmr/files/patch-mime.cpp +++ b/mail/mmr/files/patch-mime.cpp @@ -1,20 +1,11 @@ ---- mime.cpp.orig Fri Oct 25 13:55:40 2002 -+++ mime.cpp Fri Oct 25 13:56:15 2002 -@@ -102,7 +102,7 @@ +--- mime.cpp.orig Tue Jan 24 16:58:33 2006 ++++ mime.cpp Sun Jul 9 23:46:48 2006 +@@ -110,7 +110,7 @@ + } + size_t available = obytesleft; + while ( ibytesleft > 0 ) { +- iconv(iconv_ctx, &ibuf, &ibytesleft, &obuf, &obytesleft); ++ iconv(iconv_ctx, (const char **)&ibuf, &ibytesleft, &obuf, &obytesleft); - /* The MIME_body class constructor */ - MIME_body:: MIME_body(IObottle *RawFile, char *endings[], -- MIME_body *lineage = NULL) -+ MIME_body *lineage) - { - MD5_CTX md5_ctx; - int i; -@@ -652,7 +652,7 @@ - length) to a new IO stream with SaveRaw(), or these changes will be lost. - */ - int --MIME_body:: AddPart(const char *file, int is_mime = 0) -+MIME_body:: AddPart(const char *file, int is_mime) - { - MD5_CTX md5_ctx; - int (*EncodeFile)(FILE *, IObottle *); + if ( ibytesleft > 0 ) { + if ( errno == EILSEQ ) { diff --git a/mail/mmr/files/patch-ab b/mail/mmr/files/patch-outgoing.cpp index 14429c69a444..b369232bb6bf 100644 --- a/mail/mmr/files/patch-ab +++ b/mail/mmr/files/patch-outgoing.cpp @@ -1,7 +1,7 @@ ---- outgoing.cpp.orig Thu Apr 22 23:24:59 1999 -+++ outgoing.cpp Fri Mar 31 03:22:18 2000 -@@ -14,7 +14,9 @@ - #include "rcfile.h" +--- outgoing.cpp.orig Mon Jan 23 17:55:34 2006 ++++ outgoing.cpp Mon Jul 10 01:14:23 2006 +@@ -16,7 +16,9 @@ + #include "tempfile.h" #include "outgoing.h" +#ifndef MAILER diff --git a/mail/mmr/files/patch-terminal.cpp b/mail/mmr/files/patch-terminal.cpp deleted file mode 100644 index 6dfed8fe0e6d..000000000000 --- a/mail/mmr/files/patch-terminal.cpp +++ /dev/null @@ -1,20 +0,0 @@ ---- terminal.cpp.orig Fri Oct 25 13:51:29 2002 -+++ terminal.cpp Fri Oct 25 13:51:50 2002 -@@ -11,7 +11,7 @@ - int Terminal::wasraw = 0; - int Terminal::maxwait = 0; - --Terminal:: Terminal(int makeraw = 1) -+Terminal:: Terminal(int makeraw) - { - /* Initialize curses, if necessary */ - if ( refcount == 0 ) { -@@ -133,7 +133,7 @@ - - /* Input routines */ - int --Terminal:: waitchar(WINDOW *the_win = NULL) -+Terminal:: waitchar(WINDOW *the_win) - { - int ch, t; - |