From b0e449e1f95094b2c37d5138ece62df857231635 Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Sat, 18 Jan 2003 21:30:53 +0000 Subject: [PATCH] Add opencdk, Open Crypto Development Kit, libary for basic parts of the OpenPGP message format PR: 47103 Submitted by: Sergei Kolobov --- security/Makefile | 1 + security/opencdk/Makefile | 42 +++++++++++++++++++ security/opencdk/distinfo | 1 + security/opencdk/files/patch-src::keyserver.c | 10 +++++ security/opencdk/pkg-comment | 1 + security/opencdk/pkg-descr | 15 +++++++ security/opencdk/pkg-plist | 20 +++++++++ 7 files changed, 90 insertions(+) create mode 100644 security/opencdk/Makefile create mode 100644 security/opencdk/distinfo create mode 100644 security/opencdk/files/patch-src::keyserver.c create mode 100644 security/opencdk/pkg-comment create mode 100644 security/opencdk/pkg-descr create mode 100644 security/opencdk/pkg-plist diff --git a/security/Makefile b/security/Makefile index 1d3818dd5592..f58f67cdd09d 100644 --- a/security/Makefile +++ b/security/Makefile @@ -139,6 +139,7 @@ SUBDIR += ocaml-cryptokit SUBDIR += oidentd SUBDIR += op + SUBDIR += opencdk SUBDIR += opensc SUBDIR += openssh SUBDIR += openssh-askpass diff --git a/security/opencdk/Makefile b/security/opencdk/Makefile new file mode 100644 index 000000000000..25def0547c6b --- /dev/null +++ b/security/opencdk/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: opencdk +# Date created: 15 Jan 2003 +# Whom: Sergei Kolobov +# +# $FreeBSD$ +# + +PORTNAME= opencdk +PORTVERSION= 0.4.1 +CATEGORIES= security +MASTER_SITES= http://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/opencdk/ \ + ftp://ftp.gnutls.org/pub/gnutls/opencdk/ \ + ftp://ftp.gnupg.org/pub/gcrypt/alpha/gnutls/opencdk/ \ + http://www.mirrors.wiretapped.net/security/network-security/gnutls/opencdk/ \ + ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/opencdk/ + +MAINTAINER= sergei@kolobov.com + +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \ + gcrypt.6:${PORTSDIR}/security/libgcrypt + +USE_LIBTOOL= yes +INSTALLS_SHLIB= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lgnugetopt" + +DOCS= AUTHORS NEWS README THANKS + +post-install: + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/tests/*.c ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/tests/*.gpg ${EXAMPLESDIR} +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor + ${INSTALL_DATA} ${WRKSRC}/doc/opencdk-api.html ${DOCSDIR} +.endif + +.include diff --git a/security/opencdk/distinfo b/security/opencdk/distinfo new file mode 100644 index 000000000000..c1013828ca49 --- /dev/null +++ b/security/opencdk/distinfo @@ -0,0 +1 @@ +MD5 (opencdk-0.4.1.tar.gz) = 428f93034dbdbded596746c9656e270b diff --git a/security/opencdk/files/patch-src::keyserver.c b/security/opencdk/files/patch-src::keyserver.c new file mode 100644 index 000000000000..21839ecc16a7 --- /dev/null +++ b/security/opencdk/files/patch-src::keyserver.c @@ -0,0 +1,10 @@ +--- src/keyserver.c.orig Wed Jan 15 16:52:09 2003 ++++ src/keyserver.c Wed Jan 15 16:52:34 2003 +@@ -24,6 +24,7 @@ + #endif + #include + #ifdef HAVE_NETDB_H ++# include + # include + # include + # include diff --git a/security/opencdk/pkg-comment b/security/opencdk/pkg-comment new file mode 100644 index 000000000000..4cd8a15787ae --- /dev/null +++ b/security/opencdk/pkg-comment @@ -0,0 +1 @@ +Open Crypto Development Kit diff --git a/security/opencdk/pkg-descr b/security/opencdk/pkg-descr new file mode 100644 index 000000000000..e7c440b0abb8 --- /dev/null +++ b/security/opencdk/pkg-descr @@ -0,0 +1,15 @@ +OpenCDK - Open Crypto Development Kit + +This library provides basic parts of the OpenPGP message format. +The aim of the library is *not* to replace any available OpenPGP version. +There will be no real support for key management (sign, revoke, +alter preferences, ...) and some other parts are only rudimentary +available. The main purpose is to handle and understand OpenPGP +packets and to use basic operations. For example to encrypt/decrypt +or to sign/verify and packet routines. + +Hint: Because of the fact that sentensive data is used, the library + doesn't contain any real cryptographic code. For all crypto + routines we referring to the Libgcrypt library! + +WWW: http://www.gnutls.org/ diff --git a/security/opencdk/pkg-plist b/security/opencdk/pkg-plist new file mode 100644 index 000000000000..853ae760de01 --- /dev/null +++ b/security/opencdk/pkg-plist @@ -0,0 +1,20 @@ +bin/opencdk-config +include/opencdk.h +lib/libopencdk.so.5 +lib/libopencdk.so +lib/libopencdk.la +lib/libopencdk.a +%%PORTDOCS%%share/doc/opencdk/AUTHORS +%%PORTDOCS%%share/doc/opencdk/NEWS +%%PORTDOCS%%share/doc/opencdk/README +%%PORTDOCS%%share/doc/opencdk/THANKS +%%PORTDOCS%%share/doc/opencdk/opencdk-api.html +%%PORTDOCS%%@dirrm share/doc/opencdk +share/examples/opencdk/minpg.c +share/examples/opencdk/pub.gpg +share/examples/opencdk/sec-with-pwd.gpg +share/examples/opencdk/sec.gpg +share/examples/opencdk/t-stream.c +share/examples/opencdk/ts.gpg +share/examples/opencdk/wkold.gpg +@dirrm share/examples/opencdk