pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/p5-Crypt-IDEA Expanded patch-aa with a few #i...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e7ccb4e97cbe
branches: trunk
changeset: 494686:e7ccb4e97cbe
user: heinz <heinz%pkgsrc.org@localhost>
date: Sat May 28 00:42:31 2005 +0000
description:
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:
security/p5-Crypt-IDEA/distinfo | 5 +++--
security/p5-Crypt-IDEA/patches/patch-aa | 21 ++++++++++++++++++---
2 files changed, 21 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 60f302c89acb -r e7ccb4e97cbe security/p5-Crypt-IDEA/distinfo
--- a/security/p5-Crypt-IDEA/distinfo Sat May 28 00:38:38 2005 +0000
+++ b/security/p5-Crypt-IDEA/distinfo Sat May 28 00:42:31 2005 +0000
@@ -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 -r 60f302c89acb -r e7ccb4e97cbe security/p5-Crypt-IDEA/patches/patch-aa
--- a/security/p5-Crypt-IDEA/patches/patch-aa Sat May 28 00:38:38 2005 +0000
+++ b/security/p5-Crypt-IDEA/patches/patch-aa Sat May 28 00:42:31 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index