[127380] trunk/dports/mail/ssmtp

khindenburg at macports.org khindenburg at macports.org
Sun Oct 26 09:25:36 PDT 2014


Revision: 127380
          https://trac.macports.org/changeset/127380
Author:   khindenburg at macports.org
Date:     2014-10-26 09:25:36 -0700 (Sun, 26 Oct 2014)
Log Message:
-----------
ssmtp: add 2 patches + notes + take maintainership

Modified Paths:
--------------
    trunk/dports/mail/ssmtp/Portfile

Added Paths:
-----------
    trunk/dports/mail/ssmtp/files/04-508759-garbage.patch
    trunk/dports/mail/ssmtp/files/patch-ssmtp.conf.diff

Modified: trunk/dports/mail/ssmtp/Portfile
===================================================================
--- trunk/dports/mail/ssmtp/Portfile	2014-10-26 16:12:45 UTC (rev 127379)
+++ trunk/dports/mail/ssmtp/Portfile	2014-10-26 16:25:36 UTC (rev 127380)
@@ -5,10 +5,10 @@
 
 name            ssmtp
 version         2.64
-revision        1
+revision        2
 categories      mail
 license         GPL-2+
-maintainers     nomaintainer
+maintainers     khindenburg openmaintainer
 description     Sendmail alternative for small routers (outgoing mail only)
 long_description    This is sSMTP, a program that replaces sendmail on workstations that \
                     should send their mail via the departmental mailhub from which they pick up \
@@ -27,8 +27,11 @@
 
 depends_lib     port:openssl
 
+# Look in most recent .debian file for patches - ssmtp_2.64-#.debian.tar.bz2
 patchfiles      02-557725-solaris.patch patch-ssmtp.c patch-generate_config \
-                patch-Makefile.in patch-configure.in
+                patch-Makefile.in patch-configure.in \
+                04-508759-garbage.patch \
+                patch-ssmtp.conf.diff
 
 use_autoconf    yes
 configure.args  --enable-ssl
@@ -43,3 +46,11 @@
 
     xinstall -m 644 ${worksrcpath}/ssmtp.conf ${destroot}${prefix}/etc/${name}/ssmtp.conf.sample
 }
+
+notes "
+Before using, create the configuration file ${prefix}/etc/ssmtp.conf by using ${prefix}/etc/ssmtp.conf.sample as a reference.
+"
+
+livecheck.type      regex
+livecheck.url       http://packages.debian.org/stable/mail/${name}
+livecheck.regex     ${name} .(\[0-9.\]+)

Added: trunk/dports/mail/ssmtp/files/04-508759-garbage.patch
===================================================================
--- trunk/dports/mail/ssmtp/files/04-508759-garbage.patch	                        (rev 0)
+++ trunk/dports/mail/ssmtp/files/04-508759-garbage.patch	2014-10-26 16:25:36 UTC (rev 127380)
@@ -0,0 +1,19 @@
+diff -u ssmtp-original/ssmtp.c ssmtp-2.62/ssmtp.c
+--- ssmtp.c	2009-11-29 13:47:29.000000000 -0500
++++ ssmtp.c	2009-11-29 13:51:18.000000000 -0500
+@@ -1649,12 +1649,12 @@
+ 			outbytes += smtp_write(sock, "%s", leadingdot ? b : buf);
+ 		} else {
+ 			if (log_level > 0) {
+-				log_event(LOG_INFO, "Sent a very long line in chunks");
++				log_event(LOG_INFO, "Sending a partial line");
+ 			}
+ 			if (leadingdot) {
+-				outbytes += fd_puts(sock, b, sizeof(b));
++				outbytes += fd_puts(sock, b, strlen(b));
+ 			} else {
+-				outbytes += fd_puts(sock, buf, bufsize);
++				outbytes += fd_puts(sock, buf, strlen(buf));
+ 			}
+ 		}
+ 		(void)alarm((unsigned) MEDWAIT);

Added: trunk/dports/mail/ssmtp/files/patch-ssmtp.conf.diff
===================================================================
--- trunk/dports/mail/ssmtp/files/patch-ssmtp.conf.diff	                        (rev 0)
+++ trunk/dports/mail/ssmtp/files/patch-ssmtp.conf.diff	2014-10-26 16:25:36 UTC (rev 127380)
@@ -0,0 +1,11 @@
+--- ssmtp.conf.5
++++ ssmtp.conf.5
+@@ -26,7 +26,7 @@ The user that gets all mail for userids 
+ .Pp
+ .It Cm Mailhub
+ The host to send mail to, in the form
+-.Ar host No | Ar IP_addr No Oo : Ar port Oc .
++.Ar host port | Ar IP_addr port Oo : Ar port Oc .
+ The default port is 25.
+ .Pp
+ .It Cm RewriteDomain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141026/6c72ecb2/attachment.html>


More information about the macports-changes mailing list