diff options
-rw-r--r-- | security/srp_client/Makefile | 45 | ||||
-rw-r--r-- | security/srp_client/files/md5 | 3 | ||||
-rw-r--r-- | security/srp_client/patches/patch-aa | 35 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ab | 13 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ac | 61 | ||||
-rw-r--r-- | security/srp_client/patches/patch-ad | 13 | ||||
-rw-r--r-- | security/srp_client/pkg/COMMENT | 1 | ||||
-rw-r--r-- | security/srp_client/pkg/DESCR | 8 | ||||
-rw-r--r-- | security/srp_client/pkg/PLIST | 5 |
9 files changed, 184 insertions, 0 deletions
diff --git a/security/srp_client/Makefile b/security/srp_client/Makefile new file mode 100644 index 00000000000..c399d931486 --- /dev/null +++ b/security/srp_client/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/06/18 19:18:17 jlam Exp $ +# + +DISTNAME= srp-1.4.4 +PKGNAME= srp-client-1.4.4 +CATEGORIES= security net +MASTER_SITES= ftp://paris.arcot.com/pub/srp/ \ + ftp://srp.stanford.edu/pub/srp/ \ + ftp://labrea.stanford.edu/pub/srp/ \ + http://www.nit.gwu.edu/srp/ \ + ftp://ftp.kfki.hu/pub/packages/security/srp/ \ + ftp://ftp.bandit.co.jp/pub/srp/ \ + ftp://ftp.win.or.jp/pub/network/security/srp/ \ + ftp://ftp.replay.com/pub/crypto/crypto/APPS/srp/ + +MAINTAINER= jlam@netbsd.org +HOMEPAGE= http://srp.stanford.edu/srp/ + +DEPENDS+= gmp-2.0.2:../../devel/gmp + +RESTRICTED= "Crypto; export-controlled" +MIRROR_DISTFILE= no + +GNU_CONFIGURE= yes + +CPPFLAGS+= -Dunix=1 +CPPFLAGS+= -I${LOCALBASE}/include # gmp.h +LDFLAGS+= -L${LOCALBASE}/lib # libgmp.a + +CONFIGURE_ARGS+= --with-srp --with-cast --enable-loginf +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" + +.if exists(/usr/lib/libkrb.a) +CONFIGURE_ARGS+= --with-krb4 +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/telnet/telnet/telnet \ + ${PREFIX}/bin/srptelnet + $(INSTALL_DATA) ${WRKSRC}/telnet/telnet/telnet.1 \ + ${PREFIX}/man/man1/srptelnet.1 + ${INSTALL_PROGRAM} ${WRKSRC}/ftp/ftp/ftp ${PREFIX}/bin/srpftp + ${INSTALL_DATA} ${WRKSRC}/ftp/ftp/ftp.M ${PREFIX}/man/man1/srpftp.1 + +.include "../../mk/bsd.pkg.mk" diff --git a/security/srp_client/files/md5 b/security/srp_client/files/md5 new file mode 100644 index 00000000000..7f72c457a70 --- /dev/null +++ b/security/srp_client/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ + +MD5 (srp-1.4.4.tar.gz) = 6d4a861ef31d9b5f8a1f1826b57a9526 diff --git a/security/srp_client/patches/patch-aa b/security/srp_client/patches/patch-aa new file mode 100644 index 00000000000..6c614abda31 --- /dev/null +++ b/security/srp_client/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ + +--- base/src/login.c.orig Fri Dec 11 15:14:01 1998 ++++ base/src/login.c Fri Jun 18 06:56:49 1999 +@@ -34,6 +34,9 @@ + + #include "prototypes.h" + #include "defines.h" ++#if defined(unix) ++#include <sys/param.h> ++#endif + #include <sys/stat.h> + #include <stdio.h> + #include <pwd.h> +@@ -45,6 +48,8 @@ + + #if HAVE_LASTLOG_H + #include <lastlog.h> ++#elif (defined(BSD) && BSD >= 199306) ++#include <utmp.h> + #else + #include "lastlog_.h" + #endif +@@ -75,7 +80,11 @@ + * Needed for MkLinux DR1/2/2.1 - J. + */ + #ifndef LASTLOG_FILE ++#if (defined(BSD) && BSD >= 199306) ++#define LASTLOG_FILE _PATH_LASTLOG ++#else + #define LASTLOG_FILE "/var/log/lastlog" ++#endif + #endif + + char *host = ""; diff --git a/security/srp_client/patches/patch-ab b/security/srp_client/patches/patch-ab new file mode 100644 index 00000000000..26a78a02bef --- /dev/null +++ b/security/srp_client/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ + +--- base/libmisc/limits.c.orig Wed Dec 9 20:43:21 1998 ++++ base/libmisc/limits.c Fri Jun 18 06:47:16 1999 +@@ -84,6 +84,8 @@ + return 0; + } + ++extern struct utmp *getutent(); ++ + /* Counts the number of user logins and check against the limit*/ + static int + check_logins(name, maxlogins) diff --git a/security/srp_client/patches/patch-ac b/security/srp_client/patches/patch-ac new file mode 100644 index 00000000000..aaddb1d61a7 --- /dev/null +++ b/security/srp_client/patches/patch-ac @@ -0,0 +1,61 @@ +$NetBSD: patch-ac,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ + +Rename setmode (and clearmode for consistency) to avoid clash with unistd.h. + +--- telnet/telnet/commands.c.orig Thu Dec 10 17:50:48 1998 ++++ telnet/telnet/commands.c Fri Jun 18 06:59:32 1999 +@@ -64,6 +64,7 @@ + #include <fcntl.h> + #endif /* CRAY */ + ++#include <unistd.h> /* vfork() */ + #include <signal.h> + #include <netdb.h> + #include <ctype.h> +@@ -1156,13 +1157,13 @@ + } + + int +-setmode(bit) ++setlmode(bit) + { + return dolmmode(bit, 1); + } + + int +-clearmode(bit) ++clearlmode(bit) + { + return dolmmode(bit, 0); + } +@@ -1188,18 +1189,18 @@ + #endif + { "", "", 0 }, + { "", "These require the LINEMODE option to be enabled", 0 }, +- { "isig", "Enable signal trapping", setmode, 1, MODE_TRAPSIG }, +- { "+isig", 0, setmode, 1, MODE_TRAPSIG }, +- { "-isig", "Disable signal trapping", clearmode, 1, MODE_TRAPSIG }, +- { "edit", "Enable character editing", setmode, 1, MODE_EDIT }, +- { "+edit", 0, setmode, 1, MODE_EDIT }, +- { "-edit", "Disable character editing", clearmode, 1, MODE_EDIT }, +- { "softtabs", "Enable tab expansion", setmode, 1, MODE_SOFT_TAB }, +- { "+softtabs", 0, setmode, 1, MODE_SOFT_TAB }, +- { "-softtabs", "Disable character editing", clearmode, 1, MODE_SOFT_TAB }, +- { "litecho", "Enable literal character echo", setmode, 1, MODE_LIT_ECHO }, +- { "+litecho", 0, setmode, 1, MODE_LIT_ECHO }, +- { "-litecho", "Disable literal character echo", clearmode, 1, MODE_LIT_ECHO }, ++ { "isig", "Enable signal trapping", setlmode, 1, MODE_TRAPSIG }, ++ { "+isig", 0, setlmode, 1, MODE_TRAPSIG }, ++ { "-isig", "Disable signal trapping", clearlmode, 1, MODE_TRAPSIG }, ++ { "edit", "Enable character editing", setlmode, 1, MODE_EDIT }, ++ { "+edit", 0, setlmode, 1, MODE_EDIT }, ++ { "-edit", "Disable character editing", clearlmode, 1, MODE_EDIT }, ++ { "softtabs", "Enable tab expansion", setlmode, 1, MODE_SOFT_TAB }, ++ { "+softtabs", 0, setlmode, 1, MODE_SOFT_TAB }, ++ { "-softtabs", "Disable character editing", clearlmode, 1, MODE_SOFT_TAB }, ++ { "litecho", "Enable literal character echo", setlmode, 1, MODE_LIT_ECHO }, ++ { "+litecho", 0, setlmode, 1, MODE_LIT_ECHO }, ++ { "-litecho", "Disable literal character echo", clearlmode, 1, MODE_LIT_ECHO }, + { "help", 0, modehelp, 0 }, + #ifdef KLUDGELINEMODE + { "kludgeline", 0, dokludgemode, 1 }, diff --git a/security/srp_client/patches/patch-ad b/security/srp_client/patches/patch-ad new file mode 100644 index 00000000000..b50e59324a3 --- /dev/null +++ b/security/srp_client/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ + +--- ftp/ftp/pclose.c.orig Wed Dec 9 20:43:25 1998 ++++ ftp/ftp/pclose.c Fri Jun 18 06:54:14 1999 +@@ -17,6 +17,8 @@ + #include <sys/wait.h> + #ifdef HAVE_VFORK_H + #include <vfork.h> ++#else ++#include <unistd.h> /* vfork() */ + #endif + #define sig_t my_sig_t + #define sigtype RETSIGTYPE diff --git a/security/srp_client/pkg/COMMENT b/security/srp_client/pkg/COMMENT new file mode 100644 index 00000000000..e75f2a52bfa --- /dev/null +++ b/security/srp_client/pkg/COMMENT @@ -0,0 +1 @@ +client programs using Secure Remote Password protocol diff --git a/security/srp_client/pkg/DESCR b/security/srp_client/pkg/DESCR new file mode 100644 index 00000000000..9f1108765bc --- /dev/null +++ b/security/srp_client/pkg/DESCR @@ -0,0 +1,8 @@ +SRP stands for the Secure Remote Password protocol, and it represents +a new mechanism for performing secure password-based authentication +and key exchange over any type of network. SRP offers both security +and convenience improvements over authentication techniques currently +in use. + +This package builds the entire source tree but only installs(/packages) the +client side programs. diff --git a/security/srp_client/pkg/PLIST b/security/srp_client/pkg/PLIST new file mode 100644 index 00000000000..8140a8ec2f6 --- /dev/null +++ b/security/srp_client/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $ +bin/srpftp +bin/srptelnet +man/man1/srpftp.1 +man/man1/srptelnet.1 |