summaryrefslogtreecommitdiff
path: root/security/nettle
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-08-22 15:09:21 +0000
committerwiz <wiz@pkgsrc.org>2011-08-22 15:09:21 +0000
commitbabb4835132a7ba17ab9bf76635d0eaef04fa9b9 (patch)
treea182850245d0d8167b6ea4370cd607bee112a824 /security/nettle
parent424f3b398a3ed01a260c21858a4221affaa95690 (diff)
downloadpkgsrc-babb4835132a7ba17ab9bf76635d0eaef04fa9b9.tar.gz
Update to 2.2. Update LICENSE (see below).
NEWS for the 2.2 release Licensing change: * Relicensed as LGPL v2.1 or later (user's option). * Replaced blowfish and serpent implementation. New code is based on the LGPLed code in libgcrypt. New features: * Support for Galois/Counter Mode (GCM). * New interface for enumerating (most) available algorithms, contributed by Daniel Kahn Gillmor. * New tool nettle-hash. Can generate hash digests using any supported hash function, with output compatible with md5sum and friends from GNU coreutils. Checking (like md5sum -c) not yet implemented. Bug fixes: * The old serpent code had a byte order bug (introduced by yours truly about ten years ago). New serpent implementation does not interoperate with earlier versions of nettle. * Fixed ABI-dependent libdir default for Linux-based systems which do not follow the Linux File Hierarchy Standard, e.g., Debian GNU/Linux. Optimizations: * x86_64 implemention of serpent. * x86_64 implemention of camellia. * Optimized memxor using word rather than byte operations. Both generic C and x86_64 assembler. * Eliminated a memcpy for in-place CBC decrypt. Miscellaneous: * In command line tools, no longer support -? for requesting help, since using it without shell quoting is a dangerous habit. Use long option --help instead. The shared library names are libnettle.so.4.1 and libhogweed.so.2.1, with sonames libnettle.so.4 and libhogweed.so.2.
Diffstat (limited to 'security/nettle')
-rw-r--r--security/nettle/Makefile6
-rw-r--r--security/nettle/PLIST4
-rw-r--r--security/nettle/distinfo14
-rw-r--r--security/nettle/patches/patch-Makefile.in26
-rw-r--r--security/nettle/patches/patch-testsuite_Makefile.in10
-rw-r--r--security/nettle/patches/patch-tools_Makefile.in17
6 files changed, 42 insertions, 35 deletions
diff --git a/security/nettle/Makefile b/security/nettle/Makefile
index 58b32d0ffac..d134d91f001 100644
--- a/security/nettle/Makefile
+++ b/security/nettle/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2011/05/06 19:30:13 alnsn Exp $
+# $NetBSD: Makefile,v 1.4 2011/08/22 15:09:21 wiz Exp $
-DISTNAME= nettle-2.1
+DISTNAME= nettle-2.2
CATEGORIES= devel security
MASTER_SITES= http://www.lysator.liu.se/~nisse/archive/ \
ftp://ftp.lysator.liu.se/pub/security/lsh/
@@ -8,7 +8,7 @@ MASTER_SITES= http://www.lysator.liu.se/~nisse/archive/ \
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.lysator.liu.se/~nisse/nettle/
COMMENT= Cryptographic library
-LICENSE= gnu-gpl-v2
+LICENSE= gnu-lgpl-v2.1
PKG_DESTDIR_SUPPORT= user-destdir
diff --git a/security/nettle/PLIST b/security/nettle/PLIST
index fedcb409e7d..e18777a8f89 100644
--- a/security/nettle/PLIST
+++ b/security/nettle/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2011/04/26 08:59:33 adam Exp $
+@comment $NetBSD: PLIST,v 1.2 2011/08/22 15:09:21 wiz Exp $
+bin/nettle-hash
bin/nettle-lfib-stream
bin/pkcs1-conv
bin/sexp-conv
@@ -18,6 +19,7 @@ include/nettle/ctr.h
include/nettle/des-compat.h
include/nettle/des.h
include/nettle/dsa.h
+include/nettle/gcm.h
include/nettle/hmac.h
include/nettle/knuth-lfib.h
include/nettle/macros.h
diff --git a/security/nettle/distinfo b/security/nettle/distinfo
index bd2ed7bb33c..d344b7087a1 100644
--- a/security/nettle/distinfo
+++ b/security/nettle/distinfo
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.3 2011/05/02 21:27:15 adam Exp $
+$NetBSD: distinfo,v 1.4 2011/08/22 15:09:21 wiz Exp $
-SHA1 (nettle-2.1.tar.gz) = 15f660ef6cfd62c1c3302f68055f194913de0dfb
-RMD160 (nettle-2.1.tar.gz) = 56bd66654e8320abb12812d0fa1b79733bc62094
-Size (nettle-2.1.tar.gz) = 965345 bytes
-SHA1 (patch-Makefile.in) = 15bbe1b1a33817c0d1d1db1f4510c3ebc6eb949e
+SHA1 (nettle-2.2.tar.gz) = 5e2a914a8104308bd7a63338a8a732b4d3ef0ae4
+RMD160 (nettle-2.2.tar.gz) = fd9616054759ac229c23ad6c64745d66c5ea8d1a
+Size (nettle-2.2.tar.gz) = 1060360 bytes
+SHA1 (patch-Makefile.in) = cf1f0fb4e23657f493f381c80b31e7c6294b67e7
SHA1 (patch-config.make.in) = 0bf3d2729b97883b41374a1ea3d5286fd2554e98
-SHA1 (patch-testsuite_Makefile.in) = 38498777821eba9a5d303e6d7848addf5da06700
-SHA1 (patch-tools_Makefile.in) = 262d59cb6e642e6ad4c8bec2e166fc18367d91d7
+SHA1 (patch-testsuite_Makefile.in) = f73c6af3fc2ae63174406df4ff89892f7b5634d7
+SHA1 (patch-tools_Makefile.in) = 5eca9e6d806cea894493122f7e1c79d6a26f2c88
SHA1 (patch-x86_camellia-crypt-internal.asm) = 0dd04f76ccca63f0c3e7260269fa8f74d01ddda3
diff --git a/security/nettle/patches/patch-Makefile.in b/security/nettle/patches/patch-Makefile.in
index 5e66bce2b41..98f6febde61 100644
--- a/security/nettle/patches/patch-Makefile.in
+++ b/security/nettle/patches/patch-Makefile.in
@@ -1,8 +1,8 @@
-$NetBSD: patch-Makefile.in,v 1.2 2011/04/26 09:54:55 adam Exp $
+$NetBSD: patch-Makefile.in,v 1.3 2011/08/22 15:09:21 wiz Exp $
Use LIBTOOL.
---- Makefile.in.orig 2010-07-25 19:30:13.000000000 +0000
+--- Makefile.in.orig 2011-07-11 13:59:25.000000000 +0000
+++ Makefile.in
@@ -14,13 +14,13 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = $(INSTALL_PROGRAM) -s
@@ -19,25 +19,25 @@ Use LIBTOOL.
+LIBTARGETS = libnettle.la @IF_HOGWEED@ libhogweed.la
SHLIBTARGETS = $(LIBNETTLE_FORLINK) @IF_HOGWEED@ $(LIBHOGWEED_FORLINK)
- TARGETS = aesdata$(EXEEXT) desdata$(EXEEXT) shadata$(EXEEXT) \
-@@ -138,19 +138,19 @@ hogweed_OBJS = $(hogweed_SOURCES:.c=.$(O
+ TARGETS = aesdata$(EXEEXT) desdata$(EXEEXT) shadata$(EXEEXT) gcmdata$(EXEEXT)\
+@@ -141,18 +141,18 @@ nettle_PURE_OBJS = $(nettle_OBJS:.$(OBJE
+ hogweed_OBJS = $(hogweed_SOURCES:.c=.$(OBJEXT))
hogweed_PURE_OBJS = $(hogweed_OBJS:.$(OBJEXT)=.p$(OBJEXT))
- # FIXME: Do we really need to delete the archive first?
-libnettle.a: $(nettle_OBJS)
- -rm -f $@
- $(AR) $(ARFLAGS) $@ $(nettle_OBJS)
- $(RANLIB) $@
-+libnettle.la: $(nettle_OBJS)
-+ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o libnettle.la \
-+ ${nettle_OBJS:.o=.lo} -rpath ${PREFIX}/lib \
-+ -version-info ${LIBNETTLE_MAJOR}:${LIBNETTLE_MINOR}
-
- # FIXME: Do we really need to delete the archive first?
+-
-libhogweed.a: $(hogweed_OBJS)
- -rm -f $@
- $(AR) $(ARFLAGS) $@ $(hogweed_OBJS)
- $(RANLIB) $@
++libnettle.la: $(nettle_OBJS)
++ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o libnettle.la \
++ ${nettle_OBJS:.o=.lo} -rpath ${PREFIX}/lib \
++ -version-info ${LIBNETTLE_MAJOR}:${LIBNETTLE_MINOR}
++
+libhogweed.la: $(hogweed_OBJS)
+ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} -o libhogweed.la \
+ ${hogweed_OBJS:.o=.lo} -rpath ${PREFIX}/lib \
@@ -49,7 +49,7 @@ Use LIBTOOL.
&& $(DEP_PROCESS)
# Rules building shared libraries
-@@ -200,7 +200,7 @@ des.$(OBJEXT): des.c des.h $(des_headers
+@@ -205,7 +205,7 @@ des.$(OBJEXT): des.c des.h $(des_headers
.asm.$(OBJEXT):
$(M4) $(srcdir)/asm.m4 machine.m4 config.m4 \
$< >$*.s
@@ -58,7 +58,7 @@ Use LIBTOOL.
echo "$@ : $< $(srcdir)/asm.m4 machine.m4 config.m4" >$@.d
.asm.p$(OBJEXT):
-@@ -266,7 +266,7 @@ install-here: install-info install-heade
+@@ -271,7 +271,7 @@ install-here: install-info install-heade
install-static: $(LIBTARGETS)
$(MKDIR_P) $(DESTDIR)$(libdir)
for f in $(LIBTARGETS); do \
diff --git a/security/nettle/patches/patch-testsuite_Makefile.in b/security/nettle/patches/patch-testsuite_Makefile.in
index 75b4d8126dc..20620e4a52a 100644
--- a/security/nettle/patches/patch-testsuite_Makefile.in
+++ b/security/nettle/patches/patch-testsuite_Makefile.in
@@ -1,10 +1,10 @@
-$NetBSD: patch-testsuite_Makefile.in,v 1.1.1.1 2011/04/26 08:59:33 adam Exp $
+$NetBSD: patch-testsuite_Makefile.in,v 1.2 2011/08/22 15:09:21 wiz Exp $
Use LIBTOOL.
---- testsuite/Makefile.in.orig 2011-04-26 08:29:38.000000000 +0000
+--- testsuite/Makefile.in.orig 2011-07-11 13:59:25.000000000 +0000
+++ testsuite/Makefile.in
-@@ -62,8 +62,8 @@ all: $(TARGETS) $(EXTRA_TARGETS)
+@@ -64,8 +64,8 @@ all: $(TARGETS) $(EXTRA_TARGETS)
# to use suffix rules to build the test executables. So we use an
# explicit rule for each and every executable.
@@ -15,12 +15,12 @@ Use LIBTOOL.
.PHONY: test-rules
test-rules:
-@@ -81,7 +81,7 @@ test-rules:
+@@ -83,7 +83,7 @@ test-rules:
include $(srcdir)/.test-rules.make
$(TARGETS) $(EXTRA_TARGETS): testutils.$(OBJEXT) \
- ../libnettle.a @IF_HOGWEED@ ../libhogweed.a
+ ../libnettle.la @IF_HOGWEED@ ../libhogweed.la
+ # The PATH update is for locating dlls on w*ndows.
check: $(TS_ALL) $(srcdir)/run-tests
- LD_LIBRARY_PATH=../.lib srcdir="$(srcdir)" \
diff --git a/security/nettle/patches/patch-tools_Makefile.in b/security/nettle/patches/patch-tools_Makefile.in
index d376f197100..ff308ae78f8 100644
--- a/security/nettle/patches/patch-tools_Makefile.in
+++ b/security/nettle/patches/patch-tools_Makefile.in
@@ -1,10 +1,10 @@
-$NetBSD: patch-tools_Makefile.in,v 1.1.1.1 2011/04/26 08:59:33 adam Exp $
+$NetBSD: patch-tools_Makefile.in,v 1.2 2011/08/22 15:09:21 wiz Exp $
Use LIBTOOL.
---- tools/Makefile.in.orig 2010-07-25 19:30:14.000000000 +0000
+--- tools/Makefile.in.orig 2011-07-11 13:59:25.000000000 +0000
+++ tools/Makefile.in
-@@ -32,15 +32,15 @@ SOURCES = $(sexp_conv_SOURCES) nettle-lf
+@@ -33,19 +33,19 @@ SOURCES = $(sexp_conv_SOURCES) nettle-ha
DISTFILES = $(SOURCES) Makefile.in getopt.h input.h misc.h output.h parse.h
sexp_conv_OBJS = $(sexp_conv_SOURCES:.c=.$(OBJEXT))
@@ -24,9 +24,14 @@ Use LIBTOOL.
+pkcs1-conv$(EXEEXT): $(pkcs1_conv_OBJS) ../libnettle.la ../libhogweed.la
+ $(LINK) $(pkcs1_conv_OBJS) ../libhogweed.la ../libnettle.la $(LIBS) -o $@
- .c.$(OBJEXT):
- $(COMPILE) -c $< && $(DEP_PROCESS)
-@@ -55,7 +55,7 @@ check:
+ # FIXME: Avoid linking with gmp
+ nettle_hash_OBJS = $(nettle_hash_SOURCES:.c=.$(OBJEXT))
+-nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.a
++nettle-hash$(EXEEXT): $(nettle_hash_OBJS) ../libnettle.la
+ $(LINK) $(nettle_hash_OBJS) -lnettle $(LIBS) -o $@
+
+
+@@ -62,7 +62,7 @@ check:
install: $(TARGETS)
$(MKDIR_P) $(DESTDIR)$(bindir)
for f in $(TARGETS) ; do \