[48407] trunk/dports/mail

toby at macports.org toby at macports.org
Fri Mar 20 22:54:42 PDT 2009


Revision: 48407
          http://trac.macports.org/changeset/48407
Author:   toby at macports.org
Date:     2009-03-20 22:54:40 -0700 (Fri, 20 Mar 2009)
Log Message:
-----------
mailx 12.4 (supercedes old 'nail' port)

Added Paths:
-----------
    trunk/dports/mail/mailx/
    trunk/dports/mail/mailx/Portfile
    trunk/dports/mail/mailx/files/
    trunk/dports/mail/mailx/files/patch-Makefile
    trunk/dports/mail/mailx/files/patch-junk.c
    trunk/dports/mail/mailx/files/patch-maildir.c

Added: trunk/dports/mail/mailx/Portfile
===================================================================
--- trunk/dports/mail/mailx/Portfile	                        (rev 0)
+++ trunk/dports/mail/mailx/Portfile	2009-03-21 05:54:40 UTC (rev 48407)
@@ -0,0 +1,35 @@
+# $Id: Portfile 30236 2007-10-22 23:15:10Z jmpp at macports.org $
+
+PortSystem 1.0
+name            mailx
+version         12.4
+categories      mail
+maintainers     toby
+description     Heirloom mailx
+long_description \
+    Mailx is derived from Berkeley Mail and is intended provide the \
+    functionality of the POSIX mailx command with additional support for MIME, \
+    IMAP, POP3, SMTP, and S/MIME. It provides enhanced features for \
+    interactive use, such as caching and disconnected operation for IMAP, \
+    message threading, scoring, and filtering. It is also usable as a mail \
+    batch language, both for sending and receiving mail.
+homepage        http://heirloom.sourceforge.net/mailx.html
+platforms       darwin
+
+master_sites    sourceforge:heirloom
+use_bzip2       yes
+checksums       md5 0c93759e34200eb56a0e7c464680a54a \
+                sha1 b1e105adf9d36269daf317dedf68b6e4cca404a7 \
+                rmd160 8244d04d0a0058fdbe9867ca503c7cda8d580154
+
+patchfiles      patch-Makefile \
+                patch-junk.c \
+                patch-maildir.c
+
+configure {
+    reinplace "s|__PREFIX__|${prefix}|" "${worksrcpath}/Makefile"
+    reinplace "s|__DESTROOT__|${destroot}|" "${worksrcpath}/Makefile"
+    reinplace "s|__CC__|${configure.cc}|" "${worksrcpath}/Makefile"
+    reinplace "s|__CFLAGS__|${configure.cflags}|" "${worksrcpath}/Makefile"
+    reinplace "s|__LDFLAGS__|${configure.ldflags}|" "${worksrcpath}/Makefile"
+}

Added: trunk/dports/mail/mailx/files/patch-Makefile
===================================================================
--- trunk/dports/mail/mailx/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/mail/mailx/files/patch-Makefile	2009-03-21 05:54:40 UTC (rev 48407)
@@ -0,0 +1,39 @@
+--- Makefile.orig	2008-07-28 15:33:38.000000000 -0700
++++ Makefile	2009-03-20 22:43:53.000000000 -0700
+@@ -6,27 +6,28 @@
+ # See the file INSTALL if you need help.
+ #
+ 
+-PREFIX		= /usr/local
++PREFIX		= __PREFIX__
+ BINDIR		= $(PREFIX)/bin
+ MANDIR		= $(PREFIX)/share/man
+-SYSCONFDIR	= /etc
++SYSCONFDIR	= $(PREFIX)/etc
+ 
+ MAILRC		= $(SYSCONFDIR)/nail.rc
+ MAILSPOOL	= /var/mail
+-SENDMAIL	= /usr/lib/sendmail
++SENDMAIL	= /usr/sbin/sendmail
+ 
+-DESTDIR		=
++DESTDIR		= __DESTROOT__
+ 
+-UCBINSTALL	= /usr/ucb/install
++UCBINSTALL	= /usr/bin/install
+ 
+ # Define compiler, preprocessor, and linker flags here.
+ # Note that some Linux/glibc versions need -D_GNU_SOURCE in CPPFLAGS, or
+ # wcwidth() will not be available and multibyte characters will not be
+ # displayed correctly.
+-#CFLAGS		=
++CC			= __CC__
++CFLAGS		= __CFLAGS__
+ #CPPFLAGS	=
+-#LDFLAGS		=
+-#WARN		= -Wall -Wno-parentheses -Werror
++LDFLAGS		= __LDFLAGS__
++WARN		= -Wall -Wno-parentheses -Werror
+ 
+ # Some RedHat versions need INCLUDES = -I/usr/kerberos/include to compile
+ # with OpenSSL, or to compile with GSSAPI authentication included. In the

Added: trunk/dports/mail/mailx/files/patch-junk.c
===================================================================
--- trunk/dports/mail/mailx/files/patch-junk.c	                        (rev 0)
+++ trunk/dports/mail/mailx/files/patch-junk.c	2009-03-21 05:54:40 UTC (rev 48407)
@@ -0,0 +1,20 @@
+--- junk.c.orig	2009-03-20 22:50:41.000000000 -0700
++++ junk.c	2009-03-20 22:50:53.000000000 -0700
+@@ -1033,7 +1033,7 @@
+ 	float	a = 1, b = 1, r;
+ 
+ 	if (verbose)
+-		fprintf(stderr, "Examining message %d\n", m - &message[0] + 1);
++		fprintf(stderr, "Examining message %d\n", (int)(m - &message[0] + 1));
+ 	for (i = 0; i < BEST; i++) {
+ 		best[i].dist = 0;
+ 		best[i].prob = -1;
+@@ -1061,7 +1061,7 @@
+ 	r = a+b > 0 ? a / (a+b) : 0;
+ 	if (verbose)
+ 		fprintf(stderr, "Junk probability of message %d: %g\n",
+-				m - &message[0] + 1, r);
++				(int)(m - &message[0] + 1), r);
+ 	if (r > THR)
+ 		m->m_flag |= MJUNK;
+ 	else

Added: trunk/dports/mail/mailx/files/patch-maildir.c
===================================================================
--- trunk/dports/mail/mailx/files/patch-maildir.c	                        (rev 0)
+++ trunk/dports/mail/mailx/files/patch-maildir.c	2009-03-21 05:54:40 UTC (rev 48407)
@@ -0,0 +1,29 @@
+--- maildir.c.orig	2009-03-20 22:51:46.000000000 -0700
++++ maildir.c	2009-03-20 22:52:15.000000000 -0700
+@@ -336,7 +336,7 @@
+ 
+ 	if ((fp = Fopen(m->m_maildir_file, "r")) == NULL) {
+ 		fprintf(stderr, "Cannot read \"%s/%s\" for message %d\n",
+-				name, m->m_maildir_file, m - &message[0] + 1);
++				name, m->m_maildir_file, (int)(m - &message[0] + 1));
+ 		m->m_flag |= MHIDDEN;
+ 		return;
+ 	}
+@@ -443,7 +443,7 @@
+ 				fprintf(stderr, "Cannot delete file \"%s/%s\" "
+ 						"for message %d.\n",
+ 						mailname, m->m_maildir_file,
+-						m - &message[0] + 1);
++						(int)(m - &message[0] + 1));
+ 			else
+ 				gotcha++;
+ 		} else {
+@@ -492,7 +492,7 @@
+ 				"message %d not touched.\n",
+ 				mailname, m->m_maildir_file,
+ 				mailname, new,
+-				m - &message[0] + 1);
++				(int)(m - &message[0] + 1));
+ 		return;
+ 	}
+ 	if (unlink(m->m_maildir_file) < 0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090320/9b00b13b/attachment-0001.html>


More information about the macports-changes mailing list