Ticket #34440: libesmtp-1.0.6.diff
File libesmtp-1.0.6.diff, 4.2 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
files/patch-configure.ac.diff
1 --- configure. in.orig 2005-12-15 13:37:42.000000000 -07002 +++ configure. in 2009-09-19 02:11:26.000000000 -06003 @@ -53 8,7 +538,7 @@1 --- configure.ac.orig 2010-08-09 15:24:50.000000000 -0500 2 +++ configure.ac 2012-05-13 21:38:53.000000000 -0500 3 @@ -539,7 +539,7 @@ 4 4 dnl ######################################################################### 5 5 6 6 AC_REPLACE_FUNCS(strdup strcasecmp strncasecmp memrchr) -
files/patch-headers.c
1 *** headers.c.orig 2006-03-30 19:30:35.000000000 +0200 2 --- headers.c 2006-03-30 19:57:05.000000000 +0200 3 *************** 4 *** 29,36 **** 5 --- 29,38 ---- 6 #include <stdio.h> 7 #include <stdarg.h> 8 #include <string.h> 9 + #include <strings.h> 10 #include <stdlib.h> 11 #include <unistd.h> 12 + #include <sys/time.h> 13 #include <time.h> 14 #include <errno.h> 15 16 *************** 17 *** 168,174 **** 18 { 19 #ifdef HAVE_GETTIMEOFDAY 20 if (gettimeofday (&tv, NULL) == -1) /* This shouldn't fail ... */ 21 ! snprintf (buf, sizeof buf, "%ld.%ld.%d@%s", tv.tv_sec, tv.tv_usec, 22 getpid (), message->session->localhost); 23 else /* ... but if it does fall back to using time() */ 24 #endif 25 --- 170,176 ---- 26 { 27 #ifdef HAVE_GETTIMEOFDAY 28 if (gettimeofday (&tv, NULL) == -1) /* This shouldn't fail ... */ 29 ! snprintf (buf, sizeof buf, "%ld.%d.%d@%s", tv.tv_sec, tv.tv_usec, 30 getpid (), message->session->localhost); 31 else /* ... but if it does fall back to using time() */ 32 #endif 1 --- headers.c.orig 2010-08-09 15:35:19.000000000 -0500 2 +++ headers.c 2012-05-13 21:33:41.000000000 -0500 3 @@ -29,6 +29,7 @@ 4 #include <stdio.h> 5 #include <stdarg.h> 6 #include <string.h> 7 +#include <strings.h> 8 #include <stdlib.h> 9 #include <unistd.h> 10 #include <time.h> 11 @@ -171,7 +172,7 @@ 12 { 13 #ifdef HAVE_GETTIMEOFDAY 14 if (gettimeofday (&tv, NULL) != -1) /* This shouldn't fail ... */ 15 - snprintf (buf, sizeof buf, "%ld.%ld.%d@%s", tv.tv_sec, tv.tv_usec, 16 + snprintf (buf, sizeof buf, "%ld.%d.%d@%s", tv.tv_sec, tv.tv_usec, 17 getpid (), message->session->localhost); 18 else /* ... but if it does fall back to using time() */ 19 #endif -
files/patch-configure.in.diff
1 --- configure.in.orig 2005-12-15 13:37:42.000000000 -07002 +++ configure.in 2009-09-19 02:11:26.000000000 -06003 @@ -538,7 +538,7 @@4 dnl #########################################################################5 6 AC_REPLACE_FUNCS(strdup strcasecmp strncasecmp memrchr)7 -AC_CHECK_FUNCS(strtol uname gethostname gettimeofday)8 +AC_CHECK_FUNCS(strtol uname gethostname gettimeofday snprintf vsnprintf)9 AC_SEARCH_LIBS(socket, socket)10 11 dnl Conditional check for functions needed in threaded code -
Portfile
2 2 3 3 PortSystem 1.0 4 4 name libesmtp 5 version 1.0.4 6 revision 2 5 version 1.0.6 7 6 categories mail 8 7 maintainers noses.com:noses 9 8 description ESMTP library … … 25 24 master_sites http://www.stafford.uklinux.net/libesmtp 26 25 use_bzip2 yes 27 26 28 checksums md5 8b4e8a794adc46268f0c6a0b3fb79486 27 checksums rmd160 7489ef298b56085f8788a3af4d17aed4ef0f1077 \ 28 sha256 d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b 29 29 30 30 depends_lib port:openssl 31 31 32 post-extract { 33 # aclocal: error: couldn't open directory 'm4': No such file or directory 34 file mkdir ${worksrcpath}/m4 35 } 36 32 37 patchfiles patch-auth-client.c patch-errors.c patch-headers.c patch-htable.c \ 33 38 patch-protocol.c patch-rfc2822date.c patch-smtp-auth.c \ 34 patch-smtp-tls.c patch-configure. in.diff39 patch-smtp-tls.c patch-configure.ac.diff 35 40 36 41 use_autoreconf yes