diff options
author | vanilla <vanilla@FreeBSD.org> | 1998-04-11 23:07:05 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 1998-04-11 23:07:05 +0800 |
commit | 5d750f66088d1e6fdfc57659ba3cc23a026aa63b (patch) | |
tree | 7c2e328f542b545b119468a91e44409c4fd558ab /net | |
parent | 33926b281f3af4009c0c027812045934e4ca501d (diff) | |
download | freebsd-ports-graphics-5d750f66088d1e6fdfc57659ba3cc23a026aa63b.tar.gz freebsd-ports-graphics-5d750f66088d1e6fdfc57659ba3cc23a026aa63b.tar.zst freebsd-ports-graphics-5d750f66088d1e6fdfc57659ba3cc23a026aa63b.zip |
It is a telnet/telnetd program support SSL encryption
and certification mechanism.
PR: ports/6182
Submitted by: Issei Suzuki <issei@t-cnet.or.jp
Diffstat (limited to 'net')
-rw-r--r-- | net/SSLtelnet/Makefile | 26 | ||||
-rw-r--r-- | net/SSLtelnet/distinfo | 1 | ||||
-rw-r--r-- | net/SSLtelnet/files/patch-aa | 57 | ||||
-rw-r--r-- | net/SSLtelnet/files/patch-ab | 9 | ||||
-rw-r--r-- | net/SSLtelnet/files/patch-ac | 11 | ||||
-rw-r--r-- | net/SSLtelnet/files/patch-ad | 11 | ||||
-rw-r--r-- | net/SSLtelnet/pkg-comment | 1 | ||||
-rw-r--r-- | net/SSLtelnet/pkg-descr | 20 | ||||
-rw-r--r-- | net/SSLtelnet/pkg-plist | 3 |
9 files changed, 139 insertions, 0 deletions
diff --git a/net/SSLtelnet/Makefile b/net/SSLtelnet/Makefile new file mode 100644 index 00000000000..6291c43c1ad --- /dev/null +++ b/net/SSLtelnet/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: SSLtelnet +# Version required: 0.11 +# Date created: Mar 29, 1998 +# Whom: issei@t-cnet.or.jp +# +# $Id$ + +DISTNAME= SSLtelnet-0.11 +CATEGORIES= net security +MASTER_SITES= ftp://ftp.psy.uq.oz.au:/pub/Crypto/SSLapps/ + +MAINTAINER= issei@t-cnet.or.jp + +BUILD_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay +RUN_DEPENDS= ssleay:${PORTSDIR}/security/SSLeay + +RESTRICTED= "Cryptography" + +.if !defined(BATCH) +INSTALL_TARGET= install certificate +.endif + +post-install: + strip $(PREFIX)/bin/telnet + strip $(PREFIX)/libexec/telnetd +.include <bsd.port.mk> diff --git a/net/SSLtelnet/distinfo b/net/SSLtelnet/distinfo new file mode 100644 index 00000000000..77e154d0f30 --- /dev/null +++ b/net/SSLtelnet/distinfo @@ -0,0 +1 @@ +MD5 (SSLtelnet-0.11.tar.gz) = 187bc35bda63c6797c6727ec1e5886fe diff --git a/net/SSLtelnet/files/patch-aa b/net/SSLtelnet/files/patch-aa new file mode 100644 index 00000000000..fa240b6c795 --- /dev/null +++ b/net/SSLtelnet/files/patch-aa @@ -0,0 +1,57 @@ +--- ../../SSLtelnet-0.11/Makefile Sat Aug 2 16:08:25 1997 ++++ ./Makefile Sun Mar 29 18:28:44 1998 +@@ -47,7 +47,7 @@ + + # the location where SSLeay is installed ... + # - expect a include and lib directory under here +-SSLTOP=/usr/local/ssl ++SSLTOP=$(PREFIX) + + INSTALLTOP=$(SSLTOP) + +@@ -83,8 +83,8 @@ + #LDADD=$(sockslib) -ltermcap -lcurses + + # uncomment the next two lines for linux +-CC = gcc -DLINUX -DTERMIOS $(socksflags) +-LDADD = $(sockslib) -lbsd -lncurses ++#CC = gcc -DLINUX -DTERMIOS $(socksflags) ++#LDADD = $(sockslib) -lbsd -lncurses + + ##OLD Linux stuff + #CC = gcc -DLINUX -DUSE_SHADOW $(socksflags) +@@ -95,6 +95,10 @@ + #BSD386 + #CC = gcc -DBSD386 -DTERMCAP $(socksflags) + #LDADD = -ltermcap $(sockslib) ++ ++#BSD386 ++CC = gcc -DTERMCAP $(socksflags) ++LDADD = -ltermcap $(sockslib) + + all: + @-mkdir bin 2>/dev/null +@@ -145,12 +149,11 @@ + tar: clean + (cd ..; tar cf $(TARFILE) $(DIRECTORY); /bin/rm -f $(TARFILE).Z $(TARFILE).gz >/dev/null 2>&1 ; $(COMPRESS) $(TARFILE) ) + +-install: telnet telnetd /dev/null +- @-mkdir -p $(INSTALLTOP)/bin 2>/dev/null ++install: telnet telnetd + cp bin/telnet $(INSTALLTOP)/bin/telnet + chmod 755 $(INSTALLTOP)/bin/telnet +- cp bin/telnetd $(INSTALLTOP)/bin/telnetd +- chmod 755 $(INSTALLTOP)/bin/telnetd ++ cp bin/telnetd $(INSTALLTOP)/libexec/telnetd ++ chmod 755 $(INSTALLTOP)/libexec/telnetd + @echo "*****************************************************" + @echo "* Do not forget to make the certificate for telnetd *" + @echo "* either manually or via \"make certificate\" *" +@@ -158,6 +161,7 @@ + + certificate: + (\ ++ [ -f $(INSTALLTOP)/certs/telnetd.pem ] && exit; \ + cd $(INSTALLTOP)/certs; \ + ssleay req -new -x509 -nodes -days 365 -out telnetd.pem -keyout telnetd.pem; \ + ln -s telnetd.pem `ssleay x509 -noout -hash < telnetd.pem`.0 ;\ diff --git a/net/SSLtelnet/files/patch-ab b/net/SSLtelnet/files/patch-ab new file mode 100644 index 00000000000..1c33746c2dd --- /dev/null +++ b/net/SSLtelnet/files/patch-ab @@ -0,0 +1,9 @@ +--- ../../SSLtelnet-0.11/lib/libbsd/Makefile Fri Jun 30 09:05:37 1995 ++++ ./lib/libbsd/Makefile Sun Mar 29 14:31:30 1998 +@@ -1,5 +1,5 @@ + LIB= bsd +-CFLAGS= -DLIBC_SCCS -I../../include ++CFLAGS+= -DLIBC_SCCS -I$(PREFIX)/include + OBJS= getenv.o herror.o setenv.o strerror.o getpass.o inet_addr.o + + lib${LIB}.a: ${OBJS} diff --git a/net/SSLtelnet/files/patch-ac b/net/SSLtelnet/files/patch-ac new file mode 100644 index 00000000000..6267b8de590 --- /dev/null +++ b/net/SSLtelnet/files/patch-ac @@ -0,0 +1,11 @@ +--- ../../SSLtelnet-0.11/lib/libbsd/getpass.c Sat Jun 15 18:28:30 1996 ++++ ./lib/libbsd/getpass.c Sun Mar 29 14:30:01 1998 +@@ -6,7 +6,7 @@ + + #define TTY "/dev/tty" + +-#if !defined(HPUX) && !defined(__bsdi__) ++#if !defined(HPUX) && !defined(__bsdi__) && !defined(__FreeBSD__) + + /* under HPUX use the "system" supplied routine as I cannot + * be bothered to "port" this code at the moment --tjh diff --git a/net/SSLtelnet/files/patch-ad b/net/SSLtelnet/files/patch-ad new file mode 100644 index 00000000000..90103280daa --- /dev/null +++ b/net/SSLtelnet/files/patch-ad @@ -0,0 +1,11 @@ +--- ../../SSLtelnet-0.11/lib/libbsd/inet_addr.c Sat Jun 15 18:28:34 1996 ++++ ./lib/libbsd/inet_addr.c Sun Mar 29 14:33:07 1998 +@@ -37,7 +37,7 @@ + + #if defined(__GNUC__) + +-#if defined(__bsdi__) || defined(SUNOS) && !defined(SOLARIS2) ++#if defined(__bsdi__) || defined(SUNOS) && !defined(SOLARIS2) || defined(__FreeBSD__) + + /* nothing required for SunOS 4.1.x */ + diff --git a/net/SSLtelnet/pkg-comment b/net/SSLtelnet/pkg-comment new file mode 100644 index 00000000000..31fde571a28 --- /dev/null +++ b/net/SSLtelnet/pkg-comment @@ -0,0 +1 @@ +SSL enhanced telnet/telnetd diff --git a/net/SSLtelnet/pkg-descr b/net/SSLtelnet/pkg-descr new file mode 100644 index 00000000000..d346018fd91 --- /dev/null +++ b/net/SSLtelnet/pkg-descr @@ -0,0 +1,20 @@ +This program suports both certification and cryptogoraphic with using SSL. + +If you do not have certification (/usr/local/certs/telnet.pem) provided by CA, +this port make dummy certification. Of cource it is useless to certify but you +can use SSL telnet/telnetd in encryption only mode with it. + +You must edit /etc/inetd.conf to make SSL telnetd available. Some examples +below: + +1. Accept both normail telnet client and SSL telnet client. + +telnet stream tcp nowait root /usr/local/libexec/telnetd telnetd + +2. Accpet only SSL encrypted client. + +telnet stream tcp nowait root /usr/local/libexec/telnetd telnetd -z secure + +3. Accept only SSL certificated client. + +telnet stream tcp nowait root /usr/local/libexec/telnetd telnetd -a valid diff --git a/net/SSLtelnet/pkg-plist b/net/SSLtelnet/pkg-plist new file mode 100644 index 00000000000..e1b50c6fe21 --- /dev/null +++ b/net/SSLtelnet/pkg-plist @@ -0,0 +1,3 @@ +bin/telnet +libexec/telnetd +@exec ( [ -f %D/certs/telnetd.pem ] && exit ; echo "Making certificate files" ; cd %D/certs ; ssleay req -new -x509 -nodes -days 365 -out telnetd.pem -keyout telnetd.pem; ln -s telnetd.pem `ssleay x509 -noout -hash < telnetd.pem`.0 ; chmod 644 %D/certs/telnetd.pem ) |