diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-05-29 11:11:52 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-05-29 11:11:52 +0000 |
commit | 2436937605f578102ee1a62b817da6ef1177f5bd (patch) | |
tree | c82dee3a9b6eea2e22480c7587c7462b059f6778 /net/stone | |
parent | e965c57012681d54659985b577b43f366234bdbb (diff) | |
download | ports-2436937605f578102ee1a62b817da6ef1177f5bd.tar.gz ports-2436937605f578102ee1a62b817da6ef1177f5bd.zip |
Notes
Diffstat (limited to 'net/stone')
-rw-r--r-- | net/stone/Makefile | 37 | ||||
-rw-r--r-- | net/stone/distinfo | 1 | ||||
-rw-r--r-- | net/stone/files/base.patch | 13 | ||||
-rw-r--r-- | net/stone/files/patch-aa | 11 | ||||
-rw-r--r-- | net/stone/files/patch-ab | 31 | ||||
-rw-r--r-- | net/stone/files/ports.patch | 13 | ||||
-rw-r--r-- | net/stone/pkg-comment | 1 | ||||
-rw-r--r-- | net/stone/pkg-descr | 23 | ||||
-rw-r--r-- | net/stone/pkg-plist | 1 |
9 files changed, 131 insertions, 0 deletions
diff --git a/net/stone/Makefile b/net/stone/Makefile new file mode 100644 index 000000000000..35e72f06db4c --- /dev/null +++ b/net/stone/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: stone +# Date created: 25 April 2001 +# Whom: Yoshihiko Sarumaru <mistral@imasy.or.jp> +# +# $FreeBSD$ +# + +PORTNAME= stone +PORTVERSION= 2.1c +CATEGORIES= net +MASTER_SITES= http://www.gcd.org/sengoku/stone/ + +MAINTAINER= mistral@imasy.or.jp + +MAN1= ${PORTNAME}.1 +MANLANG= "" ja + +.include <bsd.port.pre.mk> + +pre-patch: +.if exists(/usr/bin/openssl) +ALL_TARGET= bsd-ssl +EXTRA_PATCHES= ${FILESDIR}/base.patch +.elif exists(${PREFIX}/bin/openssl) +ALL_TARGET= bsd-ssl +EXTRA_PATCHES= ${FILESDIR}/ports.patch +.else +ALL_TARGET= bsd-pop + @${ECHO} "You can build stone with SSL support by installing OpenSSL." +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/stone ${PREFIX}/bin/stone + ${INSTALL_MAN} ${WRKSRC}/stone.1 ${PREFIX}/man/man1/stone.1 + ${INSTALL_MAN} ${WRKSRC}/stone.1.ja ${PREFIX}/man/ja/man1/stone.1 + +.include <bsd.port.post.mk> diff --git a/net/stone/distinfo b/net/stone/distinfo new file mode 100644 index 000000000000..ea99e6b32cfa --- /dev/null +++ b/net/stone/distinfo @@ -0,0 +1 @@ +MD5 (stone-2.1c.tar.gz) = 959e66fbac30c06a2acb47c27bd06d01 diff --git a/net/stone/files/base.patch b/net/stone/files/base.patch new file mode 100644 index 000000000000..62e30a371d03 --- /dev/null +++ b/net/stone/files/base.patch @@ -0,0 +1,13 @@ +--- Makefile.orig Thu Apr 26 15:25:03 2001 ++++ Makefile Thu Apr 26 15:23:26 2001 +@@ -15,8 +15,8 @@ + # -DOS2 OS/2 with EMX + # -DWINDOWS Windows95/98/NT + +-SSL_FLAGS= -DUSE_SSL -I/usr/local/ssl/include +-SSL_LIBS= -L/usr/local/ssl/lib -lssl -lcrypto ++SSL_FLAGS= -DUSE_SSL ++SSL_LIBS= -lssl -lcrypto + + POP_FLAGS= -DUSE_POP + POP_LIBS= -lmd diff --git a/net/stone/files/patch-aa b/net/stone/files/patch-aa new file mode 100644 index 000000000000..7baec92625ee --- /dev/null +++ b/net/stone/files/patch-aa @@ -0,0 +1,11 @@ +--- Makefile.orig Thu Apr 26 15:28:17 2001 ++++ Makefile Thu Apr 26 15:28:05 2001 +@@ -19,7 +19,7 @@ + SSL_LIBS= -L/usr/local/ssl/lib -lssl -lcrypto + + POP_FLAGS= -DUSE_POP +-POP_LIBS= md5c.o ++POP_LIBS= -lmd + + all: + @echo "run make with one of the following arguments" diff --git a/net/stone/files/patch-ab b/net/stone/files/patch-ab new file mode 100644 index 000000000000..623260ef3d0b --- /dev/null +++ b/net/stone/files/patch-ab @@ -0,0 +1,31 @@ +--- stone.c.orig Sat Feb 24 17:32:01 2001 ++++ stone.c Tue May 15 14:27:54 2001 +@@ -87,6 +87,7 @@ + #include <ctype.h> + #include <stdarg.h> + #include <signal.h> ++#include <sys/param.h> + typedef void (*FuncPtr)(void*); + + #ifdef WINDOWS +@@ -240,7 +241,6 @@ + char *cipher_list = NULL; + #else + #ifdef USE_POP +-#include "global.h" + #include "md5.h" + #endif + #endif +@@ -2862,10 +2862,10 @@ + + FILE *openconfig() { + int pfd[2]; +- char host[STRMAX]; ++ char host[MAXHOSTNAMELEN]; + #ifdef CPP + if (CppCommand != NULL && *CppCommand != '\0') { +- if (gethostname(host,STRMAX-1) < 0) { ++ if (gethostname(host,MAXHOSTNAMELEN-1) < 0) { + message(LOG_ERR,"gethostname err=%d",errno); + exit(1); + } diff --git a/net/stone/files/ports.patch b/net/stone/files/ports.patch new file mode 100644 index 000000000000..d4cb49435d6f --- /dev/null +++ b/net/stone/files/ports.patch @@ -0,0 +1,13 @@ +--- Makefile.orig Thu Apr 26 15:25:03 2001 ++++ Makefile Thu Apr 26 15:27:36 2001 +@@ -15,8 +15,8 @@ + # -DOS2 OS/2 with EMX + # -DWINDOWS Windows95/98/NT + +-SSL_FLAGS= -DUSE_SSL -I/usr/local/ssl/include +-SSL_LIBS= -L/usr/local/ssl/lib -lssl -lcrypto ++SSL_FLAGS= -DUSE_SSL -I$(PREFIX)/include ++SSL_LIBS= -L$(PREFIX)/lib -lssl -lcrypto + + POP_FLAGS= -DUSE_POP + POP_LIBS= -lmd diff --git a/net/stone/pkg-comment b/net/stone/pkg-comment new file mode 100644 index 000000000000..6b7dc916df9b --- /dev/null +++ b/net/stone/pkg-comment @@ -0,0 +1 @@ +Stone is a TCP/IP packet repeater in the application layer diff --git a/net/stone/pkg-descr b/net/stone/pkg-descr new file mode 100644 index 000000000000..36d24e842f78 --- /dev/null +++ b/net/stone/pkg-descr @@ -0,0 +1,23 @@ +Stone is a TCP/IP packet repeater in the application layer. It +repeats TCP and UDP packets from inside to outside of a firewall, or +from outside to inside. + +Stone has following features: + +1. Simple. + Stone's source code is only 3000 lines long (written in C + language), so you can minimize the risk of security + holes. + +2. Stone supports SSL. + Using OpenSSL (http://www.openssl.org/), stone can + encrypt/decrypt packets. + +3. Stone is a http proxy. + Stone can also be a tiny http proxy. + +4. POP -> APOP conversion. + With stone and a mailer that does not support APOP, you can + access to an APOP server. + +WWW: http://www.gcd.org/sengoku/stone/ diff --git a/net/stone/pkg-plist b/net/stone/pkg-plist new file mode 100644 index 000000000000..7df79a211c88 --- /dev/null +++ b/net/stone/pkg-plist @@ -0,0 +1 @@ +bin/stone |