summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-09-27 10:11:20 +0000
committerjperkin <jperkin@pkgsrc.org>2014-09-27 10:11:20 +0000
commit12df08480922cfd4a2cac98e8b23dc86ec41ad8b (patch)
treed2dea53ad2f94189772efaebc1f7754bc687698f /security
parentbde499a22c6b6875b5bc3b8511e804007612ce85 (diff)
downloadpkgsrc-12df08480922cfd4a2cac98e8b23dc86ec41ad8b.tar.gz
Use tr to handle differences between unzip implementations.
Diffstat (limited to 'security')
-rw-r--r--security/HElib/Makefile8
-rw-r--r--security/HElib/distinfo6
-rw-r--r--security/HElib/patches/patch-Makefile82
-rw-r--r--security/HElib/patches/patch-NumbTh.h42
4 files changed, 72 insertions, 66 deletions
diff --git a/security/HElib/Makefile b/security/HElib/Makefile
index 0293c2d5925..b915c997d69 100644
--- a/security/HElib/Makefile
+++ b/security/HElib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2013/05/18 18:36:25 agc Exp $
+# $NetBSD: Makefile,v 1.2 2014/09/27 10:11:20 jperkin Exp $
DISTNAME= HElib-20130501
CATEGORIES= security
@@ -19,6 +19,12 @@ TEST_TARGET= check
AUTO_MKDIRS= yes
+pre-patch:
+ for f in ${WRKSRC}/Makefile ${WRKSRC}/NumbTh.h; do \
+ ${TR} -d '\r' < $${f} > $${f}.new; \
+ ${MV} $${f}.new $${f}; \
+ done
+
.include "../../devel/gmp/buildlink3.mk"
.include "../../math/ntl/buildlink3.mk"
diff --git a/security/HElib/distinfo b/security/HElib/distinfo
index abb001c5ec0..40af0a39c0d 100644
--- a/security/HElib/distinfo
+++ b/security/HElib/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.3 2014/09/24 12:39:28 jperkin Exp $
+$NetBSD: distinfo,v 1.4 2014/09/27 10:11:20 jperkin Exp $
SHA1 (HElib-20130501.zip) = 4f10c723eda202442550b89d98da8b9f4fdca013
RMD160 (HElib-20130501.zip) = 729115076c6e90584cf5380694903631764849fb
Size (HElib-20130501.zip) = 2287320 bytes
SHA1 (patch-IndexMap.h) = f03a5c5d64370a233bf73fd3bff369e32f8a220a
-SHA1 (patch-Makefile) = 0b42ca325a589609a219ec6fd1f15547075e231d
-SHA1 (patch-NumbTh.h) = 30ed52fafe98c461eb76252c81bab9c7d4a1b715
+SHA1 (patch-Makefile) = e3a867712039b83f2c49c4dec2e5ff0a6c26f6ac
+SHA1 (patch-NumbTh.h) = f99493989f67d34595bc4e47b159dc75a952b158
SHA1 (patch-timing.cpp) = 87e2638022326ef9bcb28c8617aa3d8d34c3aa85
diff --git a/security/HElib/patches/patch-Makefile b/security/HElib/patches/patch-Makefile
index e27ff37fbe4..7d73cfc3f67 100644
--- a/security/HElib/patches/patch-Makefile
+++ b/security/HElib/patches/patch-Makefile
@@ -1,46 +1,46 @@
-$NetBSD: patch-Makefile,v 1.2 2014/09/24 12:39:28 jperkin Exp $
+$NetBSD: patch-Makefile,v 1.3 2014/09/27 10:11:20 jperkin Exp $
adapt for pkgsrc
add an install target
---- Makefile.orig 2013-04-30 21:31:26.000000000 +0000
-+++ Makefile
+--- Makefile.orig 2013-04-30 14:31:26.000000000 -0700
++++ Makefile 2013-05-07 11:20:59.000000000 -0700
@@ -16,7 +16,7 @@
- CC = g++
- #CFLAGS = -g -Wall -O3 -I/usr/local/include
- #CFLAGS = -g -Wall -I/usr/local/include
--CFLAGS = -g -O2 -Wfatal-errors -Wshadow -Wall -I/usr/local/include
-+CFLAGS = -g -Wall -O2 -I${PREFIX}/include
- #CFLAGS = -pg -Wall -I/usr/local/include
- LD = g++
-
-@@ -41,12 +41,12 @@ TESTPROGS = Test_General_x Test_Replicat
- all: fhe.a
-
- check: Test_General_x
-- Test_General_x R=1 k=10 p=2 r=1 d=1
-- Test_General_x R=1 k=10 p=2 r=2 d=1
-- Test_General_x R=1 k=10 p=2 r=1 d=2
-- Test_General_x R=1 k=10 p=3 r=1 d=1
-- Test_General_x R=1 k=10 p=3 r=2 d=1
-- Test_General_x R=1 k=10 p=3 r=1 d=2
-+ env LD_LIBRARY_PATH=${PREFIX}/lib Test_General_x R=1 k=10 p=2 r=1 d=1
-+ env LD_LIBRARY_PATH=${PREFIX}/lib Test_General_x R=1 k=10 p=2 r=2 d=1
-+ env LD_LIBRARY_PATH=${PREFIX}/lib Test_General_x R=1 k=10 p=2 r=1 d=2
-+ env LD_LIBRARY_PATH=${PREFIX}/lib Test_General_x R=1 k=10 p=3 r=1 d=1
-+ env LD_LIBRARY_PATH=${PREFIX}/lib Test_General_x R=1 k=10 p=3 r=2 d=1
-+ env LD_LIBRARY_PATH=${PREFIX}/lib Test_General_x R=1 k=10 p=3 r=1 d=2
-
- test: $(TESTPROGS)
-
-@@ -64,3 +64,10 @@ fhe.a: $(OBJ)
- clean:
- rm -f *.o *_x *_x.exe *.a core.*
- rm -rf *.dSYM
-+
-+install:
-+ ${BSD_INSTALL_LIB} fhe.a ${DESTDIR}${PREFIX}/lib/libfhe.a
-+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/FHE
-+ for h in ${HEADER}; do \
-+ ${BSD_INSTALL_DATA} $$h ${DESTDIR}${PREFIX}/FHE/$$h; \
-+ done
+ CC = g++
+ #CFLAGS = -g -Wall -O3 -I/usr/local/include
+ #CFLAGS = -g -Wall -I/usr/local/include
+-CFLAGS = -g -O2 -Wfatal-errors -Wshadow -Wall -I/usr/local/include
++CFLAGS = -g -Wall -O2 -I${PREFIX}/include
+ #CFLAGS = -pg -Wall -I/usr/local/include
+ LD = g++
+
+@@ -41,12 +41,12 @@
+ all: fhe.a
+
+ check: Test_General_x
+- Test_General_x R=1 k=10 p=2 r=1 d=1
+- Test_General_x R=1 k=10 p=2 r=2 d=1
+- Test_General_x R=1 k=10 p=2 r=1 d=2
+- Test_General_x R=1 k=10 p=3 r=1 d=1
+- Test_General_x R=1 k=10 p=3 r=2 d=1
+- Test_General_x R=1 k=10 p=3 r=1 d=2
++ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=2 r=1 d=1
++ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=2 r=2 d=1
++ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=2 r=1 d=2
++ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=3 r=1 d=1
++ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=3 r=2 d=1
++ env LD_LIBRARY_PATH=${PREFIX}/lib ./Test_General_x R=1 k=10 p=3 r=1 d=2
+
+ test: $(TESTPROGS)
+
+@@ -64,3 +64,10 @@
+ clean:
+ rm -f *.o *_x *_x.exe *.a core.*
+ rm -rf *.dSYM
++
++install:
++ ${BSD_INSTALL_LIB} fhe.a ${DESTDIR}${PREFIX}/lib/libfhe.a
++ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/FHE
++ for h in ${HEADER}; do \
++ ${BSD_INSTALL_DATA} $$h ${DESTDIR}${PREFIX}/FHE/$$h; \
++ done
diff --git a/security/HElib/patches/patch-NumbTh.h b/security/HElib/patches/patch-NumbTh.h
index 52884a12b90..46f46664075 100644
--- a/security/HElib/patches/patch-NumbTh.h
+++ b/security/HElib/patches/patch-NumbTh.h
@@ -1,24 +1,24 @@
-$NetBSD: patch-NumbTh.h,v 1.2 2014/09/24 12:39:28 jperkin Exp $
+$NetBSD: patch-NumbTh.h,v 1.3 2014/09/27 10:11:20 jperkin Exp $
---- NumbTh.h.orig 2013-04-30 21:31:26.000000000 +0000
+--- NumbTh.h.orig 2013-05-21 14:43:10.000000000 +0000
+++ NumbTh.h
@@ -32,13 +32,18 @@
- #include <NTL/mat_GF2E.h>
- #include <NTL/lzz_pXFactoring.h>
- #include <NTL/GF2XFactoring.h>
-+#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
-+#include <unordered_map>
-+#else
- #include <tr1/unordered_map>
-+using std::tr1::unordered_map;
-+#endif
- #include <string>
- NTL_CLIENT
-
-
- //! @typedef
--typedef tr1::unordered_map<string, const char *> argmap_t;
-+typedef unordered_map<string, const char *> argmap_t;
-
-
- //! @brief Code for parsing command line arguments.
+ #include <NTL/mat_GF2E.h>
+ #include <NTL/lzz_pXFactoring.h>
+ #include <NTL/GF2XFactoring.h>
++#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
++#include <unordered_map>
++#else
+ #include <tr1/unordered_map>
++using std::tr1::unordered_map;
++#endif
+ #include <string>
+ NTL_CLIENT
+
+
+ //! @typedef
+-typedef tr1::unordered_map<string, const char *> argmap_t;
++typedef unordered_map<string, const char *> argmap_t;
+
+
+ //! @brief Code for parsing command line arguments.