From 84b33e273a2e9b7fa39b11ffd282da1301f29fd1 Mon Sep 17 00:00:00 2001 From: max Date: Thu, 19 Sep 1996 11:33:49 +0000 Subject: An alternative for S/KEY's key command. --- security/donkey/Makefile | 22 +++++++++++++++++ security/donkey/distinfo | 1 + security/donkey/files/patch-aa | 54 ++++++++++++++++++++++++++++++++++++++++++ security/donkey/pkg-comment | 1 + security/donkey/pkg-descr | 48 +++++++++++++++++++++++++++++++++++++ security/donkey/pkg-plist | 2 ++ 6 files changed, 128 insertions(+) create mode 100644 security/donkey/Makefile create mode 100644 security/donkey/distinfo create mode 100644 security/donkey/files/patch-aa create mode 100644 security/donkey/pkg-comment create mode 100644 security/donkey/pkg-descr create mode 100644 security/donkey/pkg-plist (limited to 'security') diff --git a/security/donkey/Makefile b/security/donkey/Makefile new file mode 100644 index 0000000..92d748d --- /dev/null +++ b/security/donkey/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: donkey +# Version required: 0.5 +# Date created: 17 Sep 1996 +# Whom: Masafumi NAKANE +# +# $Id: porting.sgml,v 1.16 1996/03/21 14:15:01 asami Exp $ +# + +DISTNAME= donkey-0.5 +CATEGORIES+= security +MASTER_SITES= ftp://ftp.aist-nara.ac.jp/pub/Security/tool/donkey/ + +MAINTAINER= max@FreeBSD.ORG + +GNU_CONFIGURE= yes +WRKSRC= ${WRKDIR}/${DISTNAME}/obj/FreeBSD +PATCH_ARGS= -d ${WRKDIR}/${DISTNAME} --forward --quiet -E ${PATCH_STRIP} + +pre-configure: + @(cd ${WRKDIR}/${DISTNAME}; ./setup FreeBSD) + +.include diff --git a/security/donkey/distinfo b/security/donkey/distinfo new file mode 100644 index 0000000..27795f8 --- /dev/null +++ b/security/donkey/distinfo @@ -0,0 +1 @@ +MD5 (donkey-0.5.tar.gz) = dd3ebca4504edbcecdde63896d60b7b6 diff --git a/security/donkey/files/patch-aa b/security/donkey/files/patch-aa new file mode 100644 index 0000000..14cbf23 --- /dev/null +++ b/security/donkey/files/patch-aa @@ -0,0 +1,54 @@ +*** src/Makefile.in.orig Sun Apr 30 14:13:56 1995 +--- src/Makefile.in Thu Sep 19 03:17:50 1996 +*************** +*** 2,8 **** + # Makefile for Donkey + # + +! BINDIR = /usr/local/bin + + SRCS = donkey.c getopt.c passphrase.c btoe.c skey.c md.c md2.c md4.c md5.c + OBJS = donkey.o getopt.o passphrase.o btoe.o skey.o md.o md2.o md4.o md5.o +--- 2,9 ---- + # Makefile for Donkey + # + +! PREFIX ?= /usr/local +! BINDIR = ${PREFIX}/bin + + SRCS = donkey.c getopt.c passphrase.c btoe.c skey.c md.c md2.c md4.c md5.c + OBJS = donkey.o getopt.o passphrase.o btoe.o skey.o md.o md2.o md4.o md5.o +*************** +*** 10,16 **** + CMPT = key + + CC = @CC@ +! CFLAGS = @CFLAGS@ + #CFLAGS = -Aa -D_INCLUDE_POSIX_SOURCE + DEFS = @DEFS@ + #DEFS = -DDefaultMD=MD5 +--- 11,17 ---- + CMPT = key + + CC = @CC@ +! CFLAGS += @CFLAGS@ + #CFLAGS = -Aa -D_INCLUDE_POSIX_SOURCE + DEFS = @DEFS@ + #DEFS = -DDefaultMD=MD5 +*************** +*** 25,31 **** + $(CC) -o $(PROG) $(CFLAGS) $(OBJS) $(LIBS) + + install: +! cp $(PROG) $(BINDIR) + ln -s $(PROG) $(BINDIR)/$(CMPT) + + clean: +--- 26,32 ---- + $(CC) -o $(PROG) $(CFLAGS) $(OBJS) $(LIBS) + + install: +! install -cs -o bin -g bin -m 755 $(PROG) $(BINDIR) + ln -s $(PROG) $(BINDIR)/$(CMPT) + + clean: diff --git a/security/donkey/pkg-comment b/security/donkey/pkg-comment new file mode 100644 index 0000000..f018c17 --- /dev/null +++ b/security/donkey/pkg-comment @@ -0,0 +1 @@ +An alternative for S/KEY's key command diff --git a/security/donkey/pkg-descr b/security/donkey/pkg-descr new file mode 100644 index 0000000..e318e18 --- /dev/null +++ b/security/donkey/pkg-descr @@ -0,0 +1,48 @@ +---- From 00readme (slightly modified) ---- + + + +Donkey is an alternative for S/KEY's "key" command. The new feature that +the original key doesn't have is print an entry for skeykeys as +follows; + + kazu 0099 al02004 115d83956f1089b6 Apr 26,1995 22:13:27 + +This means that donkey is also an alternative for "keyinit". Since the +entry is printed to stdout (not to /etc/skeykeys), you can easily send +it to remote operator by e-mail (with PGP signature or something). So, +it is possible to initiate S/KEY without logging in from the console of the +host. + +The name "Donkey" is an acronym of "Don't Key". + + + + +(1) Calculate a One-Time-Password. + +Execute Donkey with sequence and seed, then input your passphrase. + +The -f option allows you to choose hash function from MD2, MD4, and MD5. + +The default hash function is MD4 due to the historical reason. + +(2) Calculate multiple One-Time-Passwords at once. + +Use -n option. + +Note that although "Enter passphrase" is printed out to stderr, +One-Time-Passwords go to stdout. So, you can redirect the output +safely. + +(3) Print skeykeys entry. + +Use -i option without argments. Then, enter login name, sequence and +seed. If you like default value, just type RET. Input your passphrase +twice to get the entry. + + + +Donkey conforms GNU GENERAL PUBLIC LICENSE Version 2 and is + Copyright (C) 1995 Kazuhiko Yamamoto + diff --git a/security/donkey/pkg-plist b/security/donkey/pkg-plist new file mode 100644 index 0000000..0ed1aca --- /dev/null +++ b/security/donkey/pkg-plist @@ -0,0 +1,2 @@ +bin/donkey +bin/key -- cgit v1.1