Initial import of opencdk-0.4.5
-- OpenCDK (Open Crypto Development Kit) 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, etc) and some other parts are only rudimentary available. The main purpose is to handle and understand OpenPGP packets and to use basic operations. From: Jim Geovedi <jim@corebsd.or.id>
This commit is contained in:
parent
5297edb0cb
commit
7a4511dd64
42
security/opencdk/Makefile
Normal file
42
security/opencdk/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
|
||||
COMMENT= "Open Crypto Development Kit"
|
||||
|
||||
VERSION= 0.4.5
|
||||
DISTNAME= opencdk-${VERSION}
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= http://www.gnutls.org/
|
||||
MAINTAINER= Jim Geovedi <jim@corebsd.or.id>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/gnutls/opencdk/ \
|
||||
ftp://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/opencdk/ \
|
||||
http://ftp.planetmirror.com/pub/gnupg/alpha/gnutls/opencdk/ \
|
||||
http://sunsite.dk/pub/security/gcrypt/alpha/gnutls/opencdk/ \
|
||||
http://ftp.linux.it/pub/mirrors/gnupg/alpha/gnutls/opencdk/
|
||||
|
||||
LIB_DEPENDS= gcrypt.6::security/libgcrypt
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opencdk
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opencdk
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/opencdk
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/opencdk-api.html \
|
||||
${PREFIX}/share/doc/opencdk
|
||||
${INSTALL_DATA} ${WRKSRC}/tests/*.c \
|
||||
${PREFIX}/share/examples/opencdk
|
||||
${INSTALL_DATA} ${WRKSRC}/tests/*.gpg \
|
||||
${PREFIX}/share/examples/opencdk
|
||||
|
||||
.include <bsd.port.mk>
|
3
security/opencdk/distinfo
Normal file
3
security/opencdk/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (opencdk-0.4.5.tar.gz) = 53e7822ae35d6b391951933e73d3cce0
|
||||
RMD160 (opencdk-0.4.5.tar.gz) = 4ee75fb9a3c5dfdb030453c4df65f7c32ee20dd0
|
||||
SHA1 (opencdk-0.4.5.tar.gz) = 2736a64c871e69cf3799959229e59a92528608bf
|
28
security/opencdk/patches/patch-configure
Normal file
28
security/opencdk/patches/patch-configure
Normal file
@ -0,0 +1,28 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- configure.orig Wed Apr 30 20:40:54 2003
|
||||
+++ configure Wed Apr 30 20:42:33 2003
|
||||
@@ -5790,12 +5790,12 @@ else
|
||||
else
|
||||
case "$host_os" in
|
||||
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
|
||||
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
||||
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $compiler_flags'
|
||||
hardcode_libdir_flag_spec='-R$libdir'
|
||||
;;
|
||||
*)
|
||||
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
|
||||
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
||||
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
||||
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
@@ -6314,6 +6314,8 @@ openbsd*)
|
||||
version_type=sunos
|
||||
need_lib_prefix=no
|
||||
need_version=no
|
||||
+ sys_lib_search_path_spec="/usr/lib"
|
||||
+ sys_lib_dlsearch_path_spec="/usr/lib /usr/local/lib"
|
||||
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
||||
case "$host_os" in
|
||||
openbsd2.[89] | openbsd2.[89].*)
|
85
security/opencdk/patches/patch-ltmain_sh
Normal file
85
security/opencdk/patches/patch-ltmain_sh
Normal file
@ -0,0 +1,85 @@
|
||||
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- ltmain.sh.orig Tue Feb 11 04:15:04 2003
|
||||
+++ ltmain.sh Wed Apr 30 18:07:10 2003
|
||||
@@ -1062,6 +1062,17 @@ compiler."
|
||||
continue
|
||||
;;
|
||||
|
||||
+ -pthread)
|
||||
+ case $host in
|
||||
+ *-*-openbsd*)
|
||||
+ deplibs="$deplibs $arg"
|
||||
+ ;;
|
||||
+ *)
|
||||
+ continue
|
||||
+ ;;
|
||||
+ esac
|
||||
+ ;;
|
||||
+
|
||||
-module)
|
||||
module=yes
|
||||
continue
|
||||
@@ -1502,6 +1513,10 @@ compiler."
|
||||
fi
|
||||
continue
|
||||
;;
|
||||
+ -pthread)
|
||||
+ continue
|
||||
+ ;;
|
||||
+
|
||||
%DEPLIBS%)
|
||||
alldeplibs=yes
|
||||
continue
|
||||
@@ -1747,11 +1762,6 @@ compiler."
|
||||
continue
|
||||
fi
|
||||
|
||||
- if test "$installed" = no; then
|
||||
- notinst_deplibs="$notinst_deplibs $lib"
|
||||
- need_relink=yes
|
||||
- fi
|
||||
-
|
||||
if test -n "$old_archive_from_expsyms_cmds"; then
|
||||
# figure out the soname
|
||||
set dummy $library_names
|
||||
@@ -4491,40 +4501,6 @@ relink_command=\"$relink_command\""
|
||||
# Exit here if they wanted silent mode.
|
||||
test "$show" = ":" && exit 0
|
||||
|
||||
- echo "----------------------------------------------------------------------"
|
||||
- echo "Libraries have been installed in:"
|
||||
- for libdir in $libdirs; do
|
||||
- echo " $libdir"
|
||||
- done
|
||||
- echo
|
||||
- echo "If you ever happen to want to link against installed libraries"
|
||||
- echo "in a given directory, LIBDIR, you must either use libtool, and"
|
||||
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
|
||||
- echo "flag during linking and do at least one of the following:"
|
||||
- if test -n "$shlibpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
|
||||
- echo " during execution"
|
||||
- fi
|
||||
- if test -n "$runpath_var"; then
|
||||
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
|
||||
- echo " during linking"
|
||||
- fi
|
||||
- if test -n "$hardcode_libdir_flag_spec"; then
|
||||
- libdir=LIBDIR
|
||||
- eval flag=\"$hardcode_libdir_flag_spec\"
|
||||
-
|
||||
- echo " - use the \`$flag' linker flag"
|
||||
- fi
|
||||
- if test -n "$admincmds"; then
|
||||
- echo " - have your system administrator run these commands:$admincmds"
|
||||
- fi
|
||||
- if test -f /etc/ld.so.conf; then
|
||||
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
|
||||
- fi
|
||||
- echo
|
||||
- echo "See any operating system documentation about shared libraries for"
|
||||
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
|
||||
- echo "----------------------------------------------------------------------"
|
||||
exit 0
|
||||
;;
|
||||
|
12
security/opencdk/patches/patch-src_encrypt_c
Normal file
12
security/opencdk/patches/patch-src_encrypt_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_encrypt_c,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- src/encrypt.c.orig Wed Apr 30 20:40:06 2003
|
||||
+++ src/encrypt.c Wed Apr 30 20:40:16 2003
|
||||
@@ -24,7 +24,7 @@
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "opencdk.h"
|
11
security/opencdk/patches/patch-src_keyserver_c
Normal file
11
security/opencdk/patches/patch-src_keyserver_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_keyserver_c,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- src/keyserver.c.orig Wed Apr 30 18:12:13 2003
|
||||
+++ src/keyserver.c Wed Apr 30 18:12:25 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>
|
12
security/opencdk/patches/patch-src_main_c
Normal file
12
security/opencdk/patches/patch-src_main_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_main_c,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- src/main.c.orig Wed Apr 30 20:40:20 2003
|
||||
+++ src/main.c Wed Apr 30 20:40:29 2003
|
||||
@@ -24,7 +24,7 @@
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#ifdef HAVE_PWD_H
|
||||
# include <pwd.h>
|
||||
#endif
|
12
security/opencdk/patches/patch-src_misc_c
Normal file
12
security/opencdk/patches/patch-src_misc_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_misc_c,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- src/misc.c.orig Wed Apr 30 20:40:32 2003
|
||||
+++ src/misc.c Wed Apr 30 20:40:40 2003
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#include "opencdk.h"
|
||||
#include "main.h"
|
20
security/opencdk/patches/patch-tests_t-stream_c
Normal file
20
security/opencdk/patches/patch-tests_t-stream_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-tests_t-stream_c,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
--- tests/t-stream.c.orig Wed Apr 30 18:27:42 2003
|
||||
+++ tests/t-stream.c Wed Apr 30 18:34:09 2003
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
@@ -288,7 +289,7 @@ get_sig_time (unsigned long timestamp)
|
||||
static char buf[128];
|
||||
struct tm * tmbuf;
|
||||
|
||||
- tmbuf = localtime (×tamp);
|
||||
+ tmbuf = localtime ((const time_t *)×tamp);
|
||||
sprintf (buf, "%04d-%02d-%02d",
|
||||
tmbuf->tm_year+1900, tmbuf->tm_mon+1, tmbuf->tm_mday);
|
||||
return buf;
|
9
security/opencdk/pkg/DESCR
Normal file
9
security/opencdk/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
OpenCDK (Open Crypto Development Kit) 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, etc) and some other parts are only rudimentary
|
||||
available. The main purpose is to handle and understand
|
||||
OpenPGP packets and to use basic operations.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
3
security/opencdk/pkg/PFRAG.shared
Normal file
3
security/opencdk/pkg/PFRAG.shared
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
lib/libopencdk.so.6.1
|
||||
DYNLIBDIR(%D/lib)
|
17
security/opencdk/pkg/PLIST
Normal file
17
security/opencdk/pkg/PLIST
Normal file
@ -0,0 +1,17 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/05/02 04:01:25 margarida Exp $
|
||||
bin/opencdk-config
|
||||
include/opencdk.h
|
||||
lib/libopencdk.a
|
||||
lib/libopencdk.la
|
||||
share/doc/opencdk/README
|
||||
share/doc/opencdk/opencdk-api.html
|
||||
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
|
||||
%%SHARED%%
|
||||
@dirrm share/examples/opencdk
|
||||
@dirrm share/doc/opencdk
|
Loading…
Reference in New Issue
Block a user