[106884] trunk/dports/net/fwknop-client

blair at macports.org blair at macports.org
Sun Jun 9 15:50:58 PDT 2013


Revision: 106884
          https://trac.macports.org/changeset/106884
Author:   blair at macports.org
Date:     2013-06-09 15:50:58 -0700 (Sun, 09 Jun 2013)
Log Message:
-----------
fwknop-client: hacky workaround for missing BYTEORDER define on Mac OS X 10.5.

Modified Paths:
--------------
    trunk/dports/net/fwknop-client/Portfile

Added Paths:
-----------
    trunk/dports/net/fwknop-client/files/
    trunk/dports/net/fwknop-client/files/patch-fix-missing-byteorder-define.diff

Modified: trunk/dports/net/fwknop-client/Portfile
===================================================================
--- trunk/dports/net/fwknop-client/Portfile	2013-06-09 21:04:28 UTC (rev 106883)
+++ trunk/dports/net/fwknop-client/Portfile	2013-06-09 22:50:58 UTC (rev 106884)
@@ -4,6 +4,7 @@
 
 name            fwknop-client
 version         2.0.4
+revision        1
 conflicts       fwknop
 categories      net security
 license         GPL-2+
@@ -37,6 +38,8 @@
                 sha1   acf86e99f50a29b92d9daf19e41380baa5faadc7 \
                 sha256 a2865158c09c6446903d9ef5d81c581c20d77af3dc523427d1123702329879d4
 
+patchfiles      patch-fix-missing-byteorder-define.diff
+
 use_bzip2       yes
 
 depends_lib-append      port:gnupg \

Added: trunk/dports/net/fwknop-client/files/patch-fix-missing-byteorder-define.diff
===================================================================
--- trunk/dports/net/fwknop-client/files/patch-fix-missing-byteorder-define.diff	                        (rev 0)
+++ trunk/dports/net/fwknop-client/files/patch-fix-missing-byteorder-define.diff	2013-06-09 22:50:58 UTC (rev 106884)
@@ -0,0 +1,32 @@
+diff -ru ../fwknop-2.0.4.orig/lib/md5.c ./lib/md5.c
+--- ../fwknop-2.0.4.orig/lib/md5.c	2012-12-09 12:55:59.000000000 -0800
++++ ./lib/md5.c	2013-06-09 15:08:13.000000000 -0700
+@@ -29,6 +29,12 @@
+ */
+ #include "md5.h"
+ 
++#ifndef BYTEORDER
++#ifdef __ppc__
++#define BYTEORDER 4321
++#endif
++#endif
++
+ #if BYTEORDER == 1234
+   #define byteReverse(buf, len)    /* Nothing */
+ #elif BYTEORDER == 4321
+diff -ru ../fwknop-2.0.4.orig/lib/sha1.c ./lib/sha1.c
+--- ../fwknop-2.0.4.orig/lib/sha1.c	2012-12-09 12:55:59.000000000 -0800
++++ ./lib/sha1.c	2013-06-09 15:08:59.000000000 -0700
+@@ -72,6 +72,12 @@
+ 
+ #undef SWAP_DONE
+ 
++#ifndef BYTEORDER
++#ifdef __ppc__
++#define BYTEORDER 4321
++#endif
++#endif
++
+ #if BYTEORDER == 1234
+ #define SWAP_DONE
+     for (i = 0; i < 16; ++i) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130609/2ebc0070/attachment.html>


More information about the macports-changes mailing list