summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiedi <wiedi>2016-12-15 01:07:30 +0000
committerwiedi <wiedi>2016-12-15 01:07:30 +0000
commit6c9750c1d1ef7e84ad21f44fab98659868401bfb (patch)
treeabd955530c89a368309815775bc4c1bd72cb8e08 /security
parente2c8fde019bddd36e0a0deb6acd63526605e83f2 (diff)
downloadpkgsrc-6c9750c1d1ef7e84ad21f44fab98659868401bfb.tar.gz
fix up integer types and BYTE_ORDER on SunOS
Diffstat (limited to 'security')
-rw-r--r--security/py-cryptkit/Makefile6
-rw-r--r--security/py-cryptkit/distinfo3
-rw-r--r--security/py-cryptkit/patches/patch-sha256_src_sha2.c16
3 files changed, 22 insertions, 3 deletions
diff --git a/security/py-cryptkit/Makefile b/security/py-cryptkit/Makefile
index 1fc204a17a1..2c6dc006ab2 100644
--- a/security/py-cryptkit/Makefile
+++ b/security/py-cryptkit/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.19 2016/07/09 13:04:04 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2016/12/15 01:07:30 wiedi Exp $
DISTNAME= cryptkit-0.9
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cryptkit/}
@@ -12,5 +12,7 @@ COMMENT= Python Cryptographic Toolkit
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # not yet ported as of 0.9
+CPPFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t -Du_int32_t=uint32_t -Du_int64_t=uint64_t
+
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-cryptkit/distinfo b/security/py-cryptkit/distinfo
index 14befaae420..21696376364 100644
--- a/security/py-cryptkit/distinfo
+++ b/security/py-cryptkit/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 01:18:03 agc Exp $
+$NetBSD: distinfo,v 1.4 2016/12/15 01:07:30 wiedi Exp $
SHA1 (cryptkit-0.9.tar.gz) = b423a938ddf55e42ffb7bafcc034f151e9b57973
RMD160 (cryptkit-0.9.tar.gz) = 9cf32689e4644b6d4dab24e6ddb17167563f1b58
SHA512 (cryptkit-0.9.tar.gz) = 9d4e4eb5a68406061661d04d230dfbb4bd6cb05a1e16c3ec5c85bc9a4cec0d676f9c16de2b7775762a134652bc9eb9abaa626a808f8441d6a6fbe3d7cf270514
Size (cryptkit-0.9.tar.gz) = 103627 bytes
+SHA1 (patch-sha256_src_sha2.c) = d8c517be3de78ff1c815f413c331e791d9c40fbf
diff --git a/security/py-cryptkit/patches/patch-sha256_src_sha2.c b/security/py-cryptkit/patches/patch-sha256_src_sha2.c
new file mode 100644
index 00000000000..1ab19e4c03d
--- /dev/null
+++ b/security/py-cryptkit/patches/patch-sha256_src_sha2.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-sha256_src_sha2.c,v 1.1 2016/12/15 01:07:30 wiedi Exp $
+
+need endian.h on SunOS for BYTE_ORDER
+
+--- sha256/src/sha2.c.orig 2001-11-29 15:56:49.000000000 +0000
++++ sha256/src/sha2.c
+@@ -36,6 +36,9 @@
+ *
+ */
+
++#if defined(__sun)
++#include <endian.h>
++#endif
+
+ #include <string.h> /* memcpy()/memset() or bcopy()/bzero() */
+ #include <assert.h> /* assert() */