[73562] trunk/dports/mail/ssmtp

jmr at macports.org jmr at macports.org
Thu Nov 18 00:01:04 PST 2010


Revision: 73562
          http://trac.macports.org/changeset/73562
Author:   jmr at macports.org
Date:     2010-11-18 00:00:56 -0800 (Thu, 18 Nov 2010)
Log Message:
-----------
ssmtp: update to 2.62 (fixes #20735)

Modified Paths:
--------------
    trunk/dports/mail/ssmtp/Portfile
    trunk/dports/mail/ssmtp/files/patch-Makefile.in
    trunk/dports/mail/ssmtp/files/patch-generate_config
    trunk/dports/mail/ssmtp/files/patch-ssmtp.c

Added Paths:
-----------
    trunk/dports/mail/ssmtp/files/02-557725-solaris.patch

Modified: trunk/dports/mail/ssmtp/Portfile
===================================================================
--- trunk/dports/mail/ssmtp/Portfile	2010-11-18 06:51:06 UTC (rev 73561)
+++ trunk/dports/mail/ssmtp/Portfile	2010-11-18 08:00:56 UTC (rev 73562)
@@ -3,8 +3,7 @@
 PortSystem 1.0
 
 name		ssmtp
-version		2.61
-revision	2
+version		2.62
 categories	mail
 maintainers	nomaintainer
 description	Sendmail alternative for small routers (outgoing mail only)
@@ -15,15 +14,19 @@
 			domain in the From: line with a different one.
 platforms	darwin freebsd
 homepage    http://packages.qa.debian.org/s/ssmtp.html
-master_sites	http://ftp.debian.org/debian/pool/main/s/${name}/ \
+master_sites	debian:s/${name}/ \
 		ftp://ftp.icm.edu.pl/pub/Linux/debian/pool/main/s/${name}/
 distfiles	${name}_${version}.orig${extract.suffix}
-checksums	md5 957e6fff08625fe34f4fc33d0925bbc9
+checksums	md5 257ac04e62ab7e3616e220333a1140cb \
+		sha1 5c15aafb252f6cb11e4b93140a1457b6cb0d0fb8
 
 depends_lib	port:openssl
 
-patchfiles	patch-ssmtp.c patch-generate_config patch-Makefile.in patch-configure.in
+worksrcdir	$name
 
+patchfiles	patch-ssmtp.c patch-generate_config patch-Makefile.in \
+		patch-configure.in 02-557725-solaris.patch
+
 use_autoconf yes
 configure.args	--enable-ssl
 

Added: trunk/dports/mail/ssmtp/files/02-557725-solaris.patch
===================================================================
--- trunk/dports/mail/ssmtp/files/02-557725-solaris.patch	                        (rev 0)
+++ trunk/dports/mail/ssmtp/files/02-557725-solaris.patch	2010-11-18 08:00:56 UTC (rev 73562)
@@ -0,0 +1,33 @@
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557725
+
+Patch by Darik Horn <dajhorn at vanadac.com>
+
+--- ssmtp.c.orig	2009-11-23 20:55:11.000000000 +1100
++++ ssmtp.c	2009-11-24 11:02:02.000000000 +1100
+@@ -98,6 +98,26 @@ static char hextab[]="0123456789abcdef";
+ 
+ ssize_t outbytes;
+ 
++#if defined(__APPLE__) || (defined (__SVR4) && defined (__sun))
++/*
++strndup() - Unimplemented by the Solaris libc.
++*/
++char * strndup(char const *s, size_t n)
++{
++	char *new;
++	size_t len;
++	if (s[n-1] != NULL) {
++		len = n;
++	} else {
++		len = strlen(s);
++	}
++	new = malloc(len + 1);
++	if(new == NULL) return NULL;
++	new[len] = '\0';
++	return memcpy(new, s, len);
++}
++#endif
++
+ /*
+ log_event() -- Write event to syslog (or log file if defined)
+ */

Modified: trunk/dports/mail/ssmtp/files/patch-Makefile.in
===================================================================
--- trunk/dports/mail/ssmtp/files/patch-Makefile.in	2010-11-18 06:51:06 UTC (rev 73561)
+++ trunk/dports/mail/ssmtp/files/patch-Makefile.in	2010-11-18 08:00:56 UTC (rev 73562)
@@ -1,6 +1,6 @@
---- Makefile.in.org	Mon May 12 20:15:29 2003
-+++ Makefile.in	Mon May 12 20:16:36 2003
-@@ -17,11 +17,11 @@
+--- Makefile.in.orig	2008-02-29 13:50:15.000000000 +1100
++++ Makefile.in	2010-11-18 18:25:57.000000000 +1100
+@@ -18,11 +18,11 @@
  CONFIGURATION_FILE=$(SSMTPCONFDIR)/ssmtp.conf
  REVALIASES_FILE=$(SSMTPCONFDIR)/revaliases
  
@@ -12,5 +12,5 @@
 -GEN_CONFIG=$(srcdir)/generate_config
 +#GEN_CONFIG=$(srcdir)/generate_config
  
- SRCS=ssmtp.c arpadate.c base64.c
+ SRCS=ssmtp.c arpadate.c base64.c xgethostname.c @SRCS@
  

Modified: trunk/dports/mail/ssmtp/files/patch-generate_config
===================================================================
--- trunk/dports/mail/ssmtp/files/patch-generate_config	2010-11-18 06:51:06 UTC (rev 73561)
+++ trunk/dports/mail/ssmtp/files/patch-generate_config	2010-11-18 08:00:56 UTC (rev 73562)
@@ -1,16 +1,12 @@
---- generate_config.old	Sun Feb  1 22:27:25 2004
-+++ generate_config	Sun Feb  1 22:28:02 2004
-@@ -15,7 +15,6 @@
+--- generate_config.orig	2004-07-23 15:58:48.000000000 +1000
++++ generate_config	2010-11-18 18:23:12.000000000 +1100
+@@ -21,11 +21,9 @@
  echo "The default is $syshostname, your system's host name."
  echo
  echo -n "Mail name [$syshostname]: "
 -read mailname
  echo
  
- 	if test -z "$mailname"
-@@ -27,7 +26,6 @@
- fi
- 
  echo -n "Please enter the SMTP port number [25]: "
 -read smtpport
  if test -z "$smtpport"

Modified: trunk/dports/mail/ssmtp/files/patch-ssmtp.c
===================================================================
--- trunk/dports/mail/ssmtp/files/patch-ssmtp.c	2010-11-18 06:51:06 UTC (rev 73561)
+++ trunk/dports/mail/ssmtp/files/patch-ssmtp.c	2010-11-18 08:00:56 UTC (rev 73562)
@@ -1,8 +1,8 @@
 --- ssmtp.c.old	Sun Feb  1 22:28:40 2004
 +++ ssmtp.c	Sun Feb  1 22:28:55 2004
-@@ -14,6 +14,7 @@
- */
- #define VERSION "2.60.4"
+@@ -13,6 +13,7 @@
+ #define VERSION "2.62"
+ #define _GNU_SOURCE
  
 +#include <sys/types.h>
  #include <sys/socket.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101118/81b082b1/attachment.html>


More information about the macports-changes mailing list