aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2003-01-19 05:30:53 +0800
committerarved <arved@FreeBSD.org>2003-01-19 05:30:53 +0800
commitbbf5e7eb7e06f0a0a09fc7149755b49beb048428 (patch)
tree87567705a72661d2fd48f2fd3274341201d9091c /security
parent40ec85c138c5e1e8f96c3a783e9d73b3d4d801fb (diff)
downloadfreebsd-ports-gnome-bbf5e7eb7e06f0a0a09fc7149755b49beb048428.tar.gz
freebsd-ports-gnome-bbf5e7eb7e06f0a0a09fc7149755b49beb048428.tar.zst
freebsd-ports-gnome-bbf5e7eb7e06f0a0a09fc7149755b49beb048428.zip
Add opencdk, Open Crypto Development Kit, libary for basic parts of the OpenPGP message format
PR: 47103 Submitted by: Sergei Kolobov <sergei@kolobov.com>
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/opencdk/Makefile42
-rw-r--r--security/opencdk/distinfo1
-rw-r--r--security/opencdk/files/patch-src::keyserver.c10
-rw-r--r--security/opencdk/pkg-comment1
-rw-r--r--security/opencdk/pkg-descr15
-rw-r--r--security/opencdk/pkg-plist20
7 files changed, 90 insertions, 0 deletions
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 <sergei@kolobov.com>
+#
+# $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 <bsd.port.mk>
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 <stdio.h>
+ #ifdef HAVE_NETDB_H
++# include <sys/types.h>
+ # include <sys/socket.h>
+ # include <netinet/in.h>
+ # include <arpa/inet.h>
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