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 -0700
    2 +++ configure.in        2009-09-19 02:11:26.000000000 -0600
    3 @@ -538,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 @@
    44 dnl #########################################################################
    55 
    66 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 -0700
    2 +++ configure.in        2009-09-19 02:11:26.000000000 -0600
    3 @@ -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

     
    22
    33PortSystem 1.0
    44name            libesmtp
    5 version         1.0.4
    6 revision        2
     5version         1.0.6
    76categories      mail
    87maintainers     noses.com:noses
    98description     ESMTP library
     
    2524master_sites    http://www.stafford.uklinux.net/libesmtp
    2625use_bzip2       yes
    2726
    28 checksums       md5 8b4e8a794adc46268f0c6a0b3fb79486
     27checksums           rmd160  7489ef298b56085f8788a3af4d17aed4ef0f1077 \
     28                    sha256  d0a61a5c52d99fa7ce7d00ed0a07e341dbda67101dbed1ab0cdae3f37db4eb0b
    2929
    3030depends_lib     port:openssl
    3131
     32post-extract {
     33    # aclocal: error: couldn't open directory 'm4': No such file or directory
     34    file mkdir ${worksrcpath}/m4
     35}
     36
    3237patchfiles      patch-auth-client.c patch-errors.c patch-headers.c patch-htable.c \
    3338                patch-protocol.c patch-rfc2822date.c patch-smtp-auth.c \
    34                 patch-smtp-tls.c patch-configure.in.diff
     39                patch-smtp-tls.c patch-configure.ac.diff
    3540
    3641use_autoreconf yes