aboutsummaryrefslogtreecommitdiff
path: root/security/gnupg-idea
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2000-05-12 08:19:04 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2000-05-12 08:19:04 +0000
commitc38ef21f9052a77646ed911049f33f085820d711 (patch)
tree71e76ab3d06169b4ab127dfc8c69519037957452 /security/gnupg-idea
parentaff35e5f238cdb2da5e48b7f43428f1da5e662db (diff)
downloadports-c38ef21f9052a77646ed911049f33f085820d711.tar.gz
ports-c38ef21f9052a77646ed911049f33f085820d711.zip
Notes
Diffstat (limited to 'security/gnupg-idea')
-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 000000000000..f7b6e0dedb1c
--- /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 000000000000..2ffeb85e35a5
--- /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 000000000000..8edd8ffc2a4b
--- /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 000000000000..b61d03dbcca5
--- /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 000000000000..a42b94b4e0af
--- /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 000000000000..0bade68856bc
--- /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 000000000000..4d2f562b026b
--- /dev/null
+++ b/security/gnupg-idea/pkg-plist
@@ -0,0 +1,2 @@
+lib/gnupg/rsa
+lib/gnupg/idea