summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-04-18 16:24:18 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-04-18 16:24:18 +0000
commit914972d462694f5fbd0299e29adba3647d4cf5a1 (patch)
tree19c27fb23ddf6d0724670582a5da92da42b47ce2 /security
parentAdd tits 1.0.2, a server which provides telnet(1) access to one or (diff)
Add fressh 0.8.1, a free rewritten implementation of the SSH
communication protocol. Obtained from: NetBSD
Notes
Notes: svn path=/head/; revision=41649
Diffstat (limited to 'security')
-rw-r--r--security/Makefile1
-rw-r--r--security/fressh/Makefile28
-rw-r--r--security/fressh/distinfo1
-rw-r--r--security/fressh/files/patch-Makefile71
-rw-r--r--security/fressh/files/patch-crypto::ssh_crypto_openssl.c13
-rw-r--r--security/fressh/files/patch-lib::Makefile40
-rw-r--r--security/fressh/files/patch-ssh_logging.c13
-rw-r--r--security/fressh/pkg-comment1
-rw-r--r--security/fressh/pkg-descr10
-rw-r--r--security/fressh/pkg-plist5
10 files changed, 183 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index bd2d06d04b20..fed0086bc6a4 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -32,6 +32,7 @@
SUBDIR += find_ddos
SUBDIR += firewalk
SUBDIR += fragrouter
+ SUBDIR += fressh
SUBDIR += fuzz
SUBDIR += fwbuilder
SUBDIR += fwtk
diff --git a/security/fressh/Makefile b/security/fressh/Makefile
new file mode 100644
index 000000000000..540c001aab8a
--- /dev/null
+++ b/security/fressh/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: fressh
+# Date created: 25 July 2000
+# Whom: Alistair G. Crooks <agc@netbsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fressh
+PORTVERSION= 0.8.1
+CATEGORIES= security
+MASTER_SITES= http://www.fressh.org/
+
+MAINTAINER= ports@FreeBSD.org
+
+USE_BZIP2= yes
+
+.include <bsd.port.pre.mk>
+
+.if !exists(/usr/lib/libssl.a) || !exists(/usr/lib/libcrypto.a)
+.if exists(${LOCALBASE}/lib/libssl.a) && exists(${LOCALBASE}/lib/libcrypto.a)
+LIB_DEPENDS+= ssl.1:${PORTSDIR}/security/openssl
+MAKE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ RSAGLUE="-lrsaref -lRSAglue"
+.endif
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/security/fressh/distinfo b/security/fressh/distinfo
new file mode 100644
index 000000000000..033d089b8278
--- /dev/null
+++ b/security/fressh/distinfo
@@ -0,0 +1 @@
+MD5 (fressh-0.8.1.tar.bz2) = 94204676bbdbde3395726a7c98d15f85
diff --git a/security/fressh/files/patch-Makefile b/security/fressh/files/patch-Makefile
new file mode 100644
index 000000000000..3138268be3d7
--- /dev/null
+++ b/security/fressh/files/patch-Makefile
@@ -0,0 +1,71 @@
+
+$FreeBSD$
+
+--- Makefile.orig Sun Feb 11 06:01:50 2001
++++ Makefile Wed Apr 18 19:11:30 2001
+@@ -1,11 +1,11 @@
+ # $Id: Makefile,v 1.80.2.1 2001/02/11 04:01:50 tls Exp $
+
+-DEBUG = -g
+-OPTIMIZE = -O2
++#DEBUG = -g
++#OPTIMIZE = -O2
+ #PROF = -pg
+-WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes \
+- -Wpointer-arithmetic -Wreturn-type -Wwrite-strings \
+- -Wcast-qual -Wswitch -Werror # -Wshadow
++#WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes \
++# -Wpointer-arithmetic -Wreturn-type -Wwrite-strings \
++# -Wcast-qual -Wswitch -Werror # -Wshadow
+ # DEFINES += -DUNSAFE_DEBUG
+ # DEFINES += -DFORCE_VALID_LOOPBACK_HOST_KEYS
+ # DEFINES += -DNO_CRC_AT_ALL
+@@ -20,15 +20,15 @@
+ #MEMDEBUG_INCLUDE= -I /usr/pkg/include
+ #MEMDEBUG_LINK= -L /usr/pkg/lib -R /usr/pkg/lib -lleak
+
+-CPPFLAGS = ${WARNINGS} -I. -Itransport -Icrypto ${MEMDEBUG_INCLUDE}
+-CFLAGS = ${DEBUG} ${OPTIMIZE} ${PROF} ${CPPFLAGS}
++CPPFLAGS += ${WARNINGS} -I. -Itransport -Icrypto ${MEMDEBUG_INCLUDE}
++CFLAGS += ${DEBUG} ${OPTIMIZE} ${PROF} ${CPPFLAGS}
+
+ OS_HDR = ssh_sys_bsd44+.h
+ OS_SRC = ssh_sys_bsd44+.c ssh_sys_posix.c
+ OS_OBJ = ssh_sys_bsd44+.o ssh_sys_posix.o
+
+ # Use *one* of the two below:
+-LIBS= -Llib -lssh # If you have BSD pmake and BSD-style shared libs.
++LIBS+= ${LDFLAGS} -Llib -lssh # If you have BSD pmake and BSD-style shared libs.
+ SSHLIB= libssh
+ LIBCLEAN= libclean
+ LIBDEP= libdep
+@@ -40,11 +40,10 @@
+
+ #IDEA_LIB = -lcrypto_idea
+
+-LIBS+= -lutil -lcrypt -lz ${IDEA_LIB} -lcrypto ${MEMDEBUG_LINK}
++LIBS+= -lutil -lcrypt -lz ${IDEA_LIB} -lcrypto ${MEMDEBUG_LINK} ${RSAGLUE}
+
+ INSTALL=install
+ INSTALL_FLAGS=-c -r -m 755 -o bin -g bin
+-PREFIX=/usr/local
+ FRE=fre
+
+ HDRS = options.h ssh_buffer.h ssh_channel.h ssh_client.h ssh_defines.h \
+@@ -154,11 +153,11 @@
+ (cd lib ; make depend)
+
+ install: sshd
+- ${INSTALL} ${INSTALL_FLAGS} sshd ${PREFIX}/sbin/${FRE}sshd
+- ${INSTALL} ${INSTALL_FLAGS} ssh-keygen ${PREFIX}/bin/${FRE}ssh-keygen
+- ${INSTALL} ${INSTALL_FLAGS} ssh ${PREFIX}/bin/${FRE}ssh
+- ${INSTALL} ${INSTALL_FLAGS} ssh-agent ${PREFIX}/bin/${FRE}ssh-agent
+- ${INSTALL} ${INSTALL_FLAGS} ssh-add ${PREFIX}/bin/${FRE}ssh-add
++ ${BSD_INSTALL_PROGRAM} sshd ${PREFIX}/sbin/${FRE}sshd
++ ${BSD_INSTALL_PROGRAM} ssh-keygen ${PREFIX}/bin/${FRE}ssh-keygen
++ ${BSD_INSTALL_PROGRAM} ssh ${PREFIX}/bin/${FRE}ssh
++ ${BSD_INSTALL_PROGRAM} ssh-agent ${PREFIX}/bin/${FRE}ssh-agent
++ ${BSD_INSTALL_PROGRAM} ssh-add ${PREFIX}/bin/${FRE}ssh-add
+
+ clean: ${LIBCLEAN}
+ rm -f *.o crypto/*.o transport/*.o a.out sshd ssh-keygen ssh \
diff --git a/security/fressh/files/patch-crypto::ssh_crypto_openssl.c b/security/fressh/files/patch-crypto::ssh_crypto_openssl.c
new file mode 100644
index 000000000000..7b43df90b662
--- /dev/null
+++ b/security/fressh/files/patch-crypto::ssh_crypto_openssl.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- crypto/ssh_crypto_openssl.c 2001/04/18 16:00:03 1.1
++++ crypto/ssh_crypto_openssl.c 2001/04/18 16:00:24
+@@ -44,6 +44,7 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ #include <openssl/rand.h>
+
diff --git a/security/fressh/files/patch-lib::Makefile b/security/fressh/files/patch-lib::Makefile
new file mode 100644
index 000000000000..569942595639
--- /dev/null
+++ b/security/fressh/files/patch-lib::Makefile
@@ -0,0 +1,40 @@
+
+$FreeBSD$
+
+--- lib/Makefile 2001/04/18 15:56:18 1.1
++++ lib/Makefile 2001/04/18 15:56:44
+@@ -1,8 +1,8 @@
+ # $Id: Makefile,v 1.1 2001/04/18 15:56:18 root Exp root $
+
+ NOLINT = 1
+-DEBUG = -g
+-OPTIMIZE = -O2
++#DEBUG = -g
++#OPTIMIZE = -O2
+ LIB = ssh
+ NOPIC = 1
+
+@@ -10,9 +10,9 @@
+ .PATH: ${.CURDIR}/../transport
+ .PATH: ${.CURDIR}/../crypto
+
+-WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes \
+- -Wpointer-arithmetic -Wreturn-type -Wwrite-strings \
+- -Wcast-qual -Wswitch -Werror # -Wshadow
++#WARNINGS = -Wall -Wstrict-prototypes -Wmissing-prototypes \
++# -Wpointer-arithmetic -Wreturn-type -Wwrite-strings \
++# -Wcast-qual -Wswitch -Werror # -Wshadow
+ # DEFINES += -DUNSAFE_DEBUG
+ # DEFINES += -DFORCE_VALID_LOOPBACK_HOST_KEYS
+ # DEFINES += -DNO_CRC_AT_ALL
+@@ -20,8 +20,8 @@
+
+ INCLUDE = -I${.CURDIR}/.. -I${.CURDIR}/../transport -I${.CURDIR}/../crypto
+
+-CPPFLAGS = ${WARNINGS} ${INCLUDE} ${MEMDEBUG_INCLUDE}
+-CFLAGS = ${DEBUG} ${OPTIMIZE} ${CPPFLAGS}
++CPPFLAGS += ${WARNINGS} ${INCLUDE} ${MEMDEBUG_INCLUDE}
++CFLAGS += ${DEBUG} ${OPTIMIZE} ${CPPFLAGS}
+
+ OS_SRC = ssh_sys_bsd44+.c ssh_sys_posix.c
+
diff --git a/security/fressh/files/patch-ssh_logging.c b/security/fressh/files/patch-ssh_logging.c
new file mode 100644
index 000000000000..c856200a4306
--- /dev/null
+++ b/security/fressh/files/patch-ssh_logging.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- ssh_logging.c 2001/04/18 15:57:35 1.1
++++ ssh_logging.c 2001/04/18 15:57:48
+@@ -46,6 +46,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <time.h>
++#include <sys/time.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+
diff --git a/security/fressh/pkg-comment b/security/fressh/pkg-comment
new file mode 100644
index 000000000000..2b9d8b062fde
--- /dev/null
+++ b/security/fressh/pkg-comment
@@ -0,0 +1 @@
+A free rewritten implementation of the SSH communication protocol
diff --git a/security/fressh/pkg-descr b/security/fressh/pkg-descr
new file mode 100644
index 000000000000..6d4fdd87c416
--- /dev/null
+++ b/security/fressh/pkg-descr
@@ -0,0 +1,10 @@
+FreSSH is a free implementation of the SSH communication protocol.
+It is compact, modular, portable, and designed for security and
+performance. It is a completely new implementation. Unlike various
+other SSH implementations already available for Unix, it does not
+trace its ancestry to the original SSH code written by Tatu Ylonen.
+FreSSH currently implements SSH protocol version 1.5, with extensions
+which offer enhanced security when both sides of a connection are
+running FreSSH.
+
+WWW: http://www.fressh.org/
diff --git a/security/fressh/pkg-plist b/security/fressh/pkg-plist
new file mode 100644
index 000000000000..338abda8a235
--- /dev/null
+++ b/security/fressh/pkg-plist
@@ -0,0 +1,5 @@
+bin/fressh
+bin/fressh-add
+bin/fressh-agent
+bin/fressh-keygen
+sbin/fresshd