summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2000-05-12 08:19:04 +0000
committerkuriyama <kuriyama@FreeBSD.org>2000-05-12 08:19:04 +0000
commit67ce12a980d8b1135c692cdb5238e4226ba9a525 (patch)
tree2ac08df5df0a97e25eb533ef6aabb145d583b75d
parent3fab6836be1b71addb950f437b3a7a28b9a9c695 (diff)
downloadFreeBSD-ports-67ce12a980d8b1135c692cdb5238e4226ba9a525.zip
FreeBSD-ports-67ce12a980d8b1135c692cdb5238e4226ba9a525.tar.gz
gnupg extensions: rsa idea
Submitted by: dirk.meyer@dinoex.sub.org
-rw-r--r--security/gnupg-idea/Makefile59
-rw-r--r--security/gnupg-idea/distinfo2
-rw-r--r--security/gnupg-idea/files/patch-idea.c42
-rw-r--r--security/gnupg-idea/files/patch-rsa.c40
-rw-r--r--security/gnupg-idea/pkg-comment1
-rw-r--r--security/gnupg-idea/pkg-descr14
-rw-r--r--security/gnupg-idea/pkg-plist2
7 files changed, 160 insertions, 0 deletions
diff --git a/security/gnupg-idea/Makefile b/security/gnupg-idea/Makefile
new file mode 100644
index 0000000..f7b6e0d
--- /dev/null
+++ b/security/gnupg-idea/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: gnupg-rsa
+# Date created: 10 May, 2000
+# Whom: dirk.meyer@dinoex.sub.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnupg-rsa
+PORTVERSION= 1.0.1
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.gnupg.org/pub/gcrypt/contrib/
+
+MAINTAINER= dirk.meyer@dinoex.sub.org
+
+RESTRICTED= "Crypto; export-controlled"
+RUN_DEPENDS= ${LOCALBASE}/bin/gpg:${PORTSDIR}/security/gnupg
+NO_WRKSUBDIR= yes
+DIST_SUBDIR= ${PORTNAME}
+CFLAGS+= -O2 -shared -fPIC -DIS_MODULE
+CFLAGS+= -Wall -Wcast-align -Wshadow -Wstrict-prototypes
+
+.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
+pre-fetch:
+ @${ECHO_MSG}
+ @${ECHO_MSG} You must set variable USA_RESIDENT to YES, if you are USA resident
+ @${ECHO_MSG} or to NO, if you aren\'t USA resident to build this package
+ @${FALSE}
+.endif
+
+.if ${USA_RESIDENT} == NO
+DISTFILES= rsa.c idea.c
+CONTRIB= rsa idea
+#EXTRACT_ONLY=
+.else
+ @${ECHO_MSG}
+ @${ECHO_MSG} rsaref not jet supported
+ @${FALSE}
+.endif
+
+.include <bsd.port.pre.mk>
+
+do-extract:
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+.for i in ${DISTFILES}
+ ${CP} ${_DISTDIR}/${i} ${WRKSRC}/${i}
+.endfor
+
+do-build:
+.for i in ${CONTRIB}
+ ${CC} ${CFLAGS} -o ${WRKSRC}/${i} ${WRKSRC}/${i}.c
+.endfor
+
+do-install:
+.for i in ${CONTRIB}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/lib/gnupg/${i}
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/security/gnupg-idea/distinfo b/security/gnupg-idea/distinfo
new file mode 100644
index 0000000..2ffeb85
--- /dev/null
+++ b/security/gnupg-idea/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnupg-rsa/rsa.c) = d8b6f26df0e3e0ccd93c2d0589d8766f
+MD5 (gnupg-rsa/idea.c) = 7d0557459e0a41da099ddbd837d4bd40
diff --git a/security/gnupg-idea/files/patch-idea.c b/security/gnupg-idea/files/patch-idea.c
new file mode 100644
index 0000000..8edd8ff
--- /dev/null
+++ b/security/gnupg-idea/files/patch-idea.c
@@ -0,0 +1,42 @@
+--- idea.c.orig Tue May 9 08:18:54 2000
++++ idea.c Tue May 9 08:20:49 2000
+@@ -474,7 +474,9 @@
+ }
+
+
+-
++#ifndef IS_MODULE
++static
++#endif
+ const char * const gnupgext_version = "IDEA ($Revision: 1.11 $)";
+
+ static struct {
+@@ -504,6 +506,9 @@
+ * version = interface version of the function/pointer
+ * (currently this is 1 for all functions)
+ */
++#ifndef IS_MODULE
++static
++#endif
+ void *
+ gnupgext_enum_func( int what, int *sequence, int *class, int *vers )
+ {
+@@ -533,4 +538,18 @@
+ return ret;
+ }
+
++
++
++#ifndef IS_MODULE
++
++void register_internal_cipher_extension( const char *module_id,
++ void * (*enumfunc)(int, int*, int*, int*) );
++
++void
++idea_constructor(void)
++{
++ register_internal_cipher_extension( gnupgext_version,
++ gnupgext_enum_func );
++}
++#endif
+
diff --git a/security/gnupg-idea/files/patch-rsa.c b/security/gnupg-idea/files/patch-rsa.c
new file mode 100644
index 0000000..b61d03d
--- /dev/null
+++ b/security/gnupg-idea/files/patch-rsa.c
@@ -0,0 +1,40 @@
+--- rsa.c.orig Tue May 9 08:21:33 2000
++++ rsa.c Tue May 9 08:22:16 2000
+@@ -64,6 +64,9 @@
+ /* end configurable stuff */
+
+
++#ifndef IS_MODULE
++static
++#endif
+ const char * const gnupgext_version = "RSA ($Revision: 1.10 $)";
+
+ #ifndef DIM
+@@ -500,6 +503,9 @@
+ * 31 = integer with available pubkey algorithms
+ * version = interface version of the function/pointer
+ */
++#ifndef IS_MODULE
++static
++#endif
+ void *
+ gnupgext_enum_func( int what, int *sequence, int *class, int *vers )
+ {
+@@ -529,4 +535,17 @@
+ return ret;
+ }
+
++
++#ifndef IS_MODULE
++
++void register_internal_cipher_extension( const char *module_id,
++ void * (*enumfunc)(int, int*, int*, int*) );
++
++void
++rsa_constructor(void)
++{
++ register_internal_cipher_extension( gnupgext_version,
++ gnupgext_enum_func );
++}
++#endif
+
diff --git a/security/gnupg-idea/pkg-comment b/security/gnupg-idea/pkg-comment
new file mode 100644
index 0000000..a42b94b
--- /dev/null
+++ b/security/gnupg-idea/pkg-comment
@@ -0,0 +1 @@
+gnupg extensions: rsa idea
diff --git a/security/gnupg-idea/pkg-descr b/security/gnupg-idea/pkg-descr
new file mode 100644
index 0000000..0bade68
--- /dev/null
+++ b/security/gnupg-idea/pkg-descr
@@ -0,0 +1,14 @@
+GNUPG is a complete and free replacement for PGP.
+
+Because it does not use IDEA or RSA it can be used without any
+restrictions. GNUPG is nearly in complicance with the OpenPGP draft.
+
+WWW: http://www.d.shuttle.de/isil/gnupg/
+
+Here are modules to use the depricated encodings.
+
+ - sign and check PGP2.x signaturs
+ - decode PGP2.x messages.
+ - You can't encrypt to PGP2.x users.
+
+dirk.meyer@dinoex.sub.org
diff --git a/security/gnupg-idea/pkg-plist b/security/gnupg-idea/pkg-plist
new file mode 100644
index 0000000..4d2f562
--- /dev/null
+++ b/security/gnupg-idea/pkg-plist
@@ -0,0 +1,2 @@
+lib/gnupg/rsa
+lib/gnupg/idea
OpenPOWER on IntegriCloud