diff options
author | heinz <heinz@pkgsrc.org> | 2005-05-28 00:42:31 +0000 |
---|---|---|
committer | heinz <heinz@pkgsrc.org> | 2005-05-28 00:42:31 +0000 |
commit | 4ee346495ebdcbc65a446d05f2c01b3c3546e396 (patch) | |
tree | 6c2bed2cd94296b59d861203c63ac900b17389a3 /security | |
parent | 8c3058959838f982295d5027c1806d204d73ceaf (diff) | |
download | pkgsrc-4ee346495ebdcbc65a446d05f2c01b3c3546e396.tar.gz |
Expanded patch-aa with a few #if cases.
This still works on NetBSD (1.6.2 tested) but also fixes the include error
on Linux (Debian 3 tested) and Solaris (9 tested).
Although DragonFlyBSD, FreeBSD and OpenBSD should work as before I have
not tried to build the package there.
Feedback whether it builds/works on Darwin/MacOS is also welcome.
Diffstat (limited to 'security')
-rw-r--r-- | security/p5-Crypt-IDEA/distinfo | 5 | ||||
-rw-r--r-- | security/p5-Crypt-IDEA/patches/patch-aa | 21 |
2 files changed, 21 insertions, 5 deletions
diff --git a/security/p5-Crypt-IDEA/distinfo b/security/p5-Crypt-IDEA/distinfo index 14f3250f314..f5b3a83b9cd 100644 --- a/security/p5-Crypt-IDEA/distinfo +++ b/security/p5-Crypt-IDEA/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.3 2005/02/24 13:10:10 agc Exp $ +$NetBSD: distinfo,v 1.4 2005/05/28 00:42:31 heinz Exp $ SHA1 (Crypt-IDEA-1.02.tar.gz) = 05fca3a3040c4ab1ae26996698d92d86cf230a86 RMD160 (Crypt-IDEA-1.02.tar.gz) = 40ec35380e16dfcec75a7ba14bfd08bf2f2a114c Size (Crypt-IDEA-1.02.tar.gz) = 5366 bytes -SHA1 (patch-aa) = 7be5a54b7d12f61b17dddf43355717da6a60a341 +SHA1 (patch-aa) = 2ef310bcbe8202c25708cce446ea694cd5fdecfa +SHA1 (patch-ac) = 88a03be0a16b57a2c1347b66731dcdc99e2485d3 diff --git a/security/p5-Crypt-IDEA/patches/patch-aa b/security/p5-Crypt-IDEA/patches/patch-aa index ecf1b13e468..f7e41b23c7d 100644 --- a/security/p5-Crypt-IDEA/patches/patch-aa +++ b/security/p5-Crypt-IDEA/patches/patch-aa @@ -1,13 +1,28 @@ -$NetBSD: patch-aa,v 1.2 2004/02/22 17:07:18 heinz Exp $ +$NetBSD: patch-aa,v 1.3 2005/05/28 00:42:31 heinz Exp $ --- _idea.c.orig Sat May 22 22:30:47 1999 +++ _idea.c -@@ -5,7 +5,7 @@ +@@ -5,7 +5,22 @@ #include "idea.h" -#include <endian.h> -+#include <sys/endian.h> ++#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) ++# include <sys/endian.h> ++#elif defined(__APPLE__) ++# include <sys/types.h> ++#elif defined(__sun) ++# define LITTLE_ENDIAN 1234 ++# define BIG_ENDIAN 4321 ++# include <sys/isa_defs.h> ++# if defined(_LITTLE_ENDIAN) ++# define BYTE_ORDER LITTLE_ENDIAN ++# else ++# define BYTE_ORDER BIG_ENDIAN ++# endif ++#else ++# include <endian.h> ++#endif #define KEYS_PER_ROUND 6 #define ROUNDS 8 |