[32496] trunk/dports/sysutils/dcfldd

ricci at macports.org ricci at macports.org
Fri Jan 4 21:54:51 PST 2008


Revision: 32496
          http://trac.macosforge.org/projects/macports/changeset/32496
Author:   ricci at macports.org
Date:     2008-01-04 21:54:49 -0800 (Fri, 04 Jan 2008)

Log Message:
-----------
Add a patch so that the sha1 code works correctly on big-endian machines

Modified Paths:
--------------
    trunk/dports/sysutils/dcfldd/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/dcfldd/files/
    trunk/dports/sysutils/dcfldd/files/patch-sha1.h.diff

Modified: trunk/dports/sysutils/dcfldd/Portfile
===================================================================
--- trunk/dports/sysutils/dcfldd/Portfile	2008-01-04 22:42:16 UTC (rev 32495)
+++ trunk/dports/sysutils/dcfldd/Portfile	2008-01-05 05:54:49 UTC (rev 32496)
@@ -1,8 +1,10 @@
 # $Id$
+
 PortSystem 1.0
+
 name		dcfldd
 version		1.3.4-1
-revision	0
+revision	1
 categories	sysutils
 maintainers	opendarwin.org at darkart.com
 description	Enhanced dd with md5 checksums
@@ -14,3 +16,7 @@
 		sha1 fb1c55f107a6af5ef8703a44d33476e508815913 \
 		rmd160 3a6fba197686da8f1890d21f75b6bc2ae18592a7
 configure.args	--prefix=${prefix} --mandir=${prefix}/share/man
+
+patchfiles	patch-sha1.h.diff
+
+

Added: trunk/dports/sysutils/dcfldd/files/patch-sha1.h.diff
===================================================================
--- trunk/dports/sysutils/dcfldd/files/patch-sha1.h.diff	                        (rev 0)
+++ trunk/dports/sysutils/dcfldd/files/patch-sha1.h.diff	2008-01-05 05:54:49 UTC (rev 32496)
@@ -0,0 +1,15 @@
+--- sha1.h.orig	2008-01-03 18:59:46.000000000 -0800
++++ sha1.h	2008-01-03 19:00:23.000000000 -0800
+@@ -37,6 +37,12 @@
+ # endif
+ #endif
+ 
++/* see if we're on big endian */
++#include <sys/types.h>
++#if BYTE_ORDER == BIG_ENDIAN
++# define WORDS_BIGENDIAN 1
++#endif	/* BYTE_ORDER == BIG_ENDIAN */
++
+ #define SHA1_HASH_SIZE 20
+ #define SHA1_DIGEST_STRING_LENGTH 40
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080104/0c5b0b67/attachment-0001.html


More information about the macports-changes mailing list