summaryrefslogtreecommitdiff
path: root/security/libgcrypt
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2003-02-02 17:27:47 +0000
committertron <tron@pkgsrc.org>2003-02-02 17:27:47 +0000
commitf28db5fa678d526df941bb165718d96c5822adae (patch)
treea8a16e15f273ffd378c780f3a37b34bef24293f7 /security/libgcrypt
parent538e28f4f91b7d42db32b510674131e11e601383 (diff)
downloadpkgsrc-f28db5fa678d526df941bb165718d96c5822adae.tar.gz
Import new "libgcrypt" package: GNU's cryptographic library
This fixes PR pkg/19732 by Juan RP.
Diffstat (limited to 'security/libgcrypt')
-rw-r--r--security/libgcrypt/DESCR6
-rw-r--r--security/libgcrypt/Makefile30
-rw-r--r--security/libgcrypt/PLIST14
-rw-r--r--security/libgcrypt/buildlink2.mk19
-rw-r--r--security/libgcrypt/distinfo4
5 files changed, 73 insertions, 0 deletions
diff --git a/security/libgcrypt/DESCR b/security/libgcrypt/DESCR
new file mode 100644
index 00000000000..ccfa2d7d365
--- /dev/null
+++ b/security/libgcrypt/DESCR
@@ -0,0 +1,6 @@
+This is a general purpose cryptographic library based on the code from
+GnuPG. It provides functions for all cryptograhic building blocks:
+symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
+algorithms (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for
+all hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
+integer functions, random numbers and a lot of supporting functions.
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile
new file mode 100644
index 00000000000..cf37882b1ed
--- /dev/null
+++ b/security/libgcrypt/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/02/02 17:27:48 tron Exp $
+
+DISTNAME= libgcrypt-1.1.11
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/ \
+ http://gd.tuwien.ac.at/privacy/gnupg/alpha/libgcrypt/
+
+MAINTAINER= tron@netbsd.org
+HOMEPAGE= http://www.gnu.org/directory/security/libgcrypt.html
+COMMENT= GNU's cryptographic library
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+
+TEXINFO_OVERRIDE= YES
+TEXINFO_REQD= 4.0
+
+.include "../../mk/bsd.prefs.mk"
+
+# Our "libtool" doesn't like the crafted ".lo" files with the assembly
+# implementations. So we use the bundled "libtool" for NetBSD-i386 ELF
+# and ours otherwise.
+.if ${MACHINE_GNU_PLATFORM} != i386--netbsdelf
+USE_LIBTOOL= YES
+CONFIGURE_ARGS+= --disable-asm
+LIBTOOL_OVERRIDE+= ${WRKSRC}/libtool
+.endif
+
+.include "../../mk/texinfo.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/libgcrypt/PLIST b/security/libgcrypt/PLIST
new file mode 100644
index 00000000000..e06c8e3bd7c
--- /dev/null
+++ b/security/libgcrypt/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/02 17:27:48 tron Exp $
+bin/libgcrypt-config
+include/gcrypt.h
+@unexec ${INSTALL_INFO} --delete %D/info/gcrypt.info %D/info/dir
+info/gcrypt.info
+info/gcrypt.info-1
+info/gcrypt.info-2
+@exec ${INSTALL_INFO} %D/info/gcrypt.info %D/info/dir
+lib/libgcrypt.a
+lib/libgcrypt.la
+lib/libgcrypt.so
+lib/libgcrypt.so.6
+lib/libgcrypt.so.6.0
+share/aclocal/libgcrypt.m4
diff --git a/security/libgcrypt/buildlink2.mk b/security/libgcrypt/buildlink2.mk
new file mode 100644
index 00000000000..926600adcf4
--- /dev/null
+++ b/security/libgcrypt/buildlink2.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/02/02 17:27:48 tron Exp $
+
+.if !defined(LIBGCRYPT_BUILDLINK2_MK)
+LIBGCRYPT_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= libgcrypt
+BUILDLINK_DEPENDS.libgcrypt?= libgcrypt>=1.1.11
+BUILDLINK_PKGSRCDIR.libgcrypt?= ../../security/libgcrypt
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.libgcrypt=libgcrypt
+BUILDLINK_PREFIX.libgcrypt_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.libgcrypt+= include/gcrypt.h
+BUILDLINK_FILES.libgcrypt+= lib/libgcrypt.*
+
+BUILDLINK_TARGETS+= libgcrypt-buildlink
+
+libgcrypt-buildlink: _BUILDLINK_USE
+
+.endif # LIBGCRYPT_BUILDLINK2_MK
diff --git a/security/libgcrypt/distinfo b/security/libgcrypt/distinfo
new file mode 100644
index 00000000000..39014e8d86b
--- /dev/null
+++ b/security/libgcrypt/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/02/02 17:27:47 tron Exp $
+
+SHA1 (libgcrypt-1.1.11.tar.gz) = 4b6a63165dd7b53bedeb3991a29be0594af60ed8
+Size (libgcrypt-1.1.11.tar.gz) = 696580 bytes