summaryrefslogtreecommitdiff
path: root/security/nettle2
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>2003-05-08 05:00:10 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>2003-05-08 05:00:10 +0000
commit0882052298b757857fd1bcc34386c322c3664bb6 (patch)
treeb176635373b61bfe2bd2faddd0fec1cca001f721 /security/nettle2
parentPREFIX to LOCALBASE in _DEPENDS and remove duplicate (diff)
PR: 51650
Submitted by: Jim Geovedi <jim@corebsd.or.id> Update to 1.7
Notes
Notes: svn path=/head/; revision=80416
Diffstat (limited to 'security/nettle2')
-rw-r--r--security/nettle2/Makefile6
-rw-r--r--security/nettle2/distinfo2
-rw-r--r--security/nettle2/files/patch-examples_nettle-openssl.c29
-rw-r--r--security/nettle2/pkg-plist23
4 files changed, 56 insertions, 4 deletions
diff --git a/security/nettle2/Makefile b/security/nettle2/Makefile
index d0d923e1fb01..876cc2a2f0b9 100644
--- a/security/nettle2/Makefile
+++ b/security/nettle2/Makefile
@@ -7,18 +7,18 @@
#
PORTNAME= nettle
-PORTVERSION= 1.5
-PORTREVISION= 2
+PORTVERSION= 1.7
CATEGORIES= security
MASTER_SITES= http://www.lysator.liu.se/~nisse/archive/ \
ftp://ftp.lysator.liu.se/pub/security/lsh/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= jim@corebsd.or.id
COMMENT= A low-level cryptographic library
LIB_DEPENDS= gmp.6:${PORTSDIR}/math/libgmp4
USE_GMAKE= yes
+USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
diff --git a/security/nettle2/distinfo b/security/nettle2/distinfo
index 0b0dff1b626a..51bfa96bd465 100644
--- a/security/nettle2/distinfo
+++ b/security/nettle2/distinfo
@@ -1 +1 @@
-MD5 (nettle-1.5.tar.gz) = d66173646336e9e7b08deb3f9352248d
+MD5 (nettle-1.7.tar.gz) = 1212a2451530af024ce9253f01284ddd
diff --git a/security/nettle2/files/patch-examples_nettle-openssl.c b/security/nettle2/files/patch-examples_nettle-openssl.c
new file mode 100644
index 000000000000..dbd034518587
--- /dev/null
+++ b/security/nettle2/files/patch-examples_nettle-openssl.c
@@ -0,0 +1,29 @@
+--- examples/nettle-openssl.c.orig Fri Nov 8 16:05:20 2002
++++ examples/nettle-openssl.c Thu May 1 12:52:10 2003
+@@ -93,7 +93,7 @@
+ openssl_des_set_key(void *ctx, unsigned length, const uint8_t *key)
+ {
+ assert(length == 8);
+- des_key_sched((char *) key, ctx);
++ des_key_sched((const_DES_cblock *)key, ctx);
+ }
+
+ #define DES_BLOCK_SIZE 8
+@@ -105,7 +105,7 @@
+ assert (!(length % DES_BLOCK_SIZE));
+ while (length)
+ {
+- des_ecb_encrypt((char *) src, (char *) dst, ctx, DES_ENCRYPT);
++ des_ecb_encrypt((const_DES_cblock *)src, (DES_cblock *)dst, ctx, DES_ENCRYPT);
+ length -= DES_BLOCK_SIZE;
+ dst += DES_BLOCK_SIZE;
+ src += DES_BLOCK_SIZE;
+@@ -119,7 +119,7 @@
+ assert (!(length % DES_BLOCK_SIZE));
+ while (length)
+ {
+- des_ecb_encrypt((char *) src, (char *) dst, ctx, DES_DECRYPT);
++ des_ecb_encrypt((const_DES_cblock *) src, (DES_cblock *) dst, ctx, DES_DECRYPT);
+ length -= DES_BLOCK_SIZE;
+ dst += DES_BLOCK_SIZE;
+ src += DES_BLOCK_SIZE;
diff --git a/security/nettle2/pkg-plist b/security/nettle2/pkg-plist
index 3c9561c8b36c..eca86158d207 100644
--- a/security/nettle2/pkg-plist
+++ b/security/nettle2/pkg-plist
@@ -1,6 +1,29 @@
+bin/sexp-conv
include/nettle/aes.h
include/nettle/arcfour.h
+include/nettle/base16.h
+include/nettle/base64.h
include/nettle/blowfish.h
+include/nettle/buffer.h
+include/nettle/cast128.h
+include/nettle/cbc.h
+include/nettle/des-compat.h
+include/nettle/des.h
+include/nettle/dsa.h
+include/nettle/hmac.h
+include/nettle/knuth-lfib.h
+include/nettle/macros.h
+include/nettle/md5-compat.h
+include/nettle/md5.h
+include/nettle/nettle-meta.h
+include/nettle/pgp.h
+include/nettle/realloc.h
+include/nettle/rsa.h
+include/nettle/serpent.h
+include/nettle/sexp.h
+include/nettle/sha.h
+include/nettle/twofish.h
+include/nettle/yarrow.h
@unexec install-info --delete %D/info/nettle.info %D/info/dir
info/nettle.info
@exec install-info %D/info/nettle.info %D/info/dir