Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2001 14:39:19 +0900 (JST)
From:      mistral@imasy.or.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27328: new port: stone - Simple TCP/UDP Packet Repeater
Message-ID:  <200105150539.f4F5dJQ24926@mistral.imasy.or.jp>

next in thread | raw e-mail | index | archive | help

>Number:         27328
>Category:       ports
>Synopsis:       new port: stone - Simple TCP/UDP Packet Repeater
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 14 22:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Yoshihiko Sarumaru
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
IMASY
>Environment:
System: FreeBSD mistral.imasy.or.jp 4.3-STABLE FreeBSD 4.3-STABLE #2: Wed May 9 17:38:34 JST 2001 yohta@mistral.imasy.or.jp:/usr/obj/usr/src/sys/PCG-505R i386


	
>Description:
	a new port for `stone'. Stone repeats TCP/UDP packet in applicatino
	layer. It also has capability to convert POP -> APOP, HTTP -> HTTPS.
>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	net
#	net/stone
#	net/stone/Makefile
#	net/stone/distinfo
#	net/stone/pkg-comment
#	net/stone/pkg-descr
#	net/stone/pkg-plist
#	net/stone/files
#	net/stone/files/patch-aa
#	net/stone/files/patch-ab
#	net/stone/files/ports.patch
#	net/stone/files/base.patch
#
echo c - net
mkdir -p net > /dev/null 2>&1
echo c - net/stone
mkdir -p net/stone > /dev/null 2>&1
echo x - net/stone/Makefile
sed 's/^X//' >net/stone/Makefile << 'END-of-net/stone/Makefile'
X# New ports collection makefile for:	stone
X# Date created:		25 April 2001
X# Whom:			Yoshihiko Sarumaru <mistral@imasy.or.jp>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	stone
XPORTVERSION=	2.1c
XCATEGORIES=	net
XMASTER_SITES=	http://www.gcd.org/sengoku/stone/
X
XMAINTAINER=	mistral@imasy.or.jp
X
XMAN1=		${PORTNAME}.1
XMANLANG=	"" ja
X
X.include <bsd.port.pre.mk>
X
Xpre-patch:
X.if exists(/usr/bin/openssl)
XALL_TARGET=	bsd-ssl
XEXTRA_PATCHES=	${FILESDIR}/base.patch
X.elif exists(${PREFIX}/bin/openssl)
XALL_TARGET=	bsd-ssl
XEXTRA_PATCHES=	${FILESDIR}/ports.patch
X.else
XALL_TARGET=	bsd-pop
X	@${ECHO} "You can build stone with SSL support by installing OpenSSL."
X.endif
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/stone ${PREFIX}/bin/stone
X	${INSTALL_MAN} ${WRKSRC}/stone.1 ${PREFIX}/man/man1/stone.1
X	${INSTALL_MAN} ${WRKSRC}/stone.1.ja ${PREFIX}/man/ja/man1/stone.1
X
X.include <bsd.port.post.mk>
END-of-net/stone/Makefile
echo x - net/stone/distinfo
sed 's/^X//' >net/stone/distinfo << 'END-of-net/stone/distinfo'
XMD5 (stone-2.1c.tar.gz) = 959e66fbac30c06a2acb47c27bd06d01
END-of-net/stone/distinfo
echo x - net/stone/pkg-comment
sed 's/^X//' >net/stone/pkg-comment << 'END-of-net/stone/pkg-comment'
XStone is a TCP/IP packet repeater in the application layer
END-of-net/stone/pkg-comment
echo x - net/stone/pkg-descr
sed 's/^X//' >net/stone/pkg-descr << 'END-of-net/stone/pkg-descr'
XStone is a TCP/IP packet repeater in the application layer.  It
Xrepeats TCP and UDP packets from inside to outside of a firewall, or
Xfrom outside to inside.
X
XStone has following features:
X
X1.  Simple.
X        Stone's source code is only 3000 lines long (written in C
X        language), so you can minimize the risk of security
X        holes.
X
X2.  Stone supports SSL.
X        Using OpenSSL (http://www.openssl.org/), stone can
X        encrypt/decrypt packets.
X
X3.  Stone is a http proxy.
X        Stone can also be a tiny http proxy.
X
X4.  POP -> APOP conversion.
X        With stone and a mailer that does not support APOP, you can
X        access to an APOP server.
X
XWWW: http://www.gcd.org/sengoku/stone/
END-of-net/stone/pkg-descr
echo x - net/stone/pkg-plist
sed 's/^X//' >net/stone/pkg-plist << 'END-of-net/stone/pkg-plist'
Xbin/stone
END-of-net/stone/pkg-plist
echo c - net/stone/files
mkdir -p net/stone/files > /dev/null 2>&1
echo x - net/stone/files/patch-aa
sed 's/^X//' >net/stone/files/patch-aa << 'END-of-net/stone/files/patch-aa'
X--- Makefile.orig	Thu Apr 26 15:28:17 2001
X+++ Makefile	Thu Apr 26 15:28:05 2001
X@@ -19,7 +19,7 @@
X SSL_LIBS=	-L/usr/local/ssl/lib -lssl -lcrypto
X 
X POP_FLAGS=	-DUSE_POP
X-POP_LIBS=	md5c.o
X+POP_LIBS=	-lmd
X 
X all:
X 	@echo "run make with one of the following arguments"
END-of-net/stone/files/patch-aa
echo x - net/stone/files/patch-ab
sed 's/^X//' >net/stone/files/patch-ab << 'END-of-net/stone/files/patch-ab'
X--- stone.c.orig	Sat Feb 24 17:32:01 2001
X+++ stone.c	Tue May 15 14:27:54 2001
X@@ -87,6 +87,7 @@
X #include <ctype.h>
X #include <stdarg.h>
X #include <signal.h>
X+#include <sys/param.h>
X typedef void (*FuncPtr)(void*);
X 
X #ifdef WINDOWS
X@@ -240,7 +241,6 @@
X char *cipher_list = NULL;
X #else
X #ifdef USE_POP
X-#include "global.h"
X #include "md5.h"
X #endif
X #endif
X@@ -2862,10 +2862,10 @@
X 
X FILE *openconfig() {
X     int pfd[2];
X-    char host[STRMAX];
X+    char host[MAXHOSTNAMELEN];
X #ifdef CPP
X     if (CppCommand != NULL && *CppCommand != '\0') {
X-	if (gethostname(host,STRMAX-1) < 0) {
X+	if (gethostname(host,MAXHOSTNAMELEN-1) < 0) {
X 	    message(LOG_ERR,"gethostname err=%d",errno);
X 	    exit(1);
X 	}
END-of-net/stone/files/patch-ab
echo x - net/stone/files/ports.patch
sed 's/^X//' >net/stone/files/ports.patch << 'END-of-net/stone/files/ports.patch'
X--- Makefile.orig	Thu Apr 26 15:25:03 2001
X+++ Makefile	Thu Apr 26 15:27:36 2001
X@@ -15,8 +15,8 @@
X # -DOS2		OS/2 with EMX
X # -DWINDOWS	Windows95/98/NT
X 
X-SSL_FLAGS=	-DUSE_SSL -I/usr/local/ssl/include
X-SSL_LIBS=	-L/usr/local/ssl/lib -lssl -lcrypto
X+SSL_FLAGS=	-DUSE_SSL -I$(PREFIX)/include
X+SSL_LIBS=	-L$(PREFIX)/lib -lssl -lcrypto
X 
X POP_FLAGS=	-DUSE_POP
X POP_LIBS=	-lmd
END-of-net/stone/files/ports.patch
echo x - net/stone/files/base.patch
sed 's/^X//' >net/stone/files/base.patch << 'END-of-net/stone/files/base.patch'
X--- Makefile.orig	Thu Apr 26 15:25:03 2001
X+++ Makefile	Thu Apr 26 15:23:26 2001
X@@ -15,8 +15,8 @@
X # -DOS2		OS/2 with EMX
X # -DWINDOWS	Windows95/98/NT
X 
X-SSL_FLAGS=	-DUSE_SSL -I/usr/local/ssl/include
X-SSL_LIBS=	-L/usr/local/ssl/lib -lssl -lcrypto
X+SSL_FLAGS=	-DUSE_SSL
X+SSL_LIBS=	-lssl -lcrypto
X 
X POP_FLAGS=	-DUSE_POP
X POP_LIBS=	-lmd
END-of-net/stone/files/base.patch
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105150539.f4F5dJQ24926>