summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-05-29 11:11:52 +0000
committerijliao <ijliao@FreeBSD.org>2001-05-29 11:11:52 +0000
commit26815aca3945361c90357f84c37ac2970b7f9a02 (patch)
treebb88125244b5113639cc80d82681dc7dc6b26498
parentd4f36bdbc27bf9cf8e3a1af36b7ac8d3a053ae23 (diff)
downloadFreeBSD-ports-26815aca3945361c90357f84c37ac2970b7f9a02.zip
FreeBSD-ports-26815aca3945361c90357f84c37ac2970b7f9a02.tar.gz
add stone
Stone is a TCP/IP packet repeater in the application layer PR: 27328 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
-rw-r--r--net/Makefile1
-rw-r--r--net/stone/Makefile37
-rw-r--r--net/stone/distinfo1
-rw-r--r--net/stone/files/base.patch13
-rw-r--r--net/stone/files/patch-aa11
-rw-r--r--net/stone/files/patch-ab31
-rw-r--r--net/stone/files/ports.patch13
-rw-r--r--net/stone/pkg-comment1
-rw-r--r--net/stone/pkg-descr23
-rw-r--r--net/stone/pkg-plist1
10 files changed, 132 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index c080305..3a7cfd2 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -333,6 +333,7 @@
SUBDIR += spat
SUBDIR += ssldump
SUBDIR += sting
+ SUBDIR += stone
SUBDIR += suckblow
SUBDIR += sup
SUBDIR += svnc
diff --git a/net/stone/Makefile b/net/stone/Makefile
new file mode 100644
index 0000000..35e72f0
--- /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 0000000..ea99e6b
--- /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 0000000..62e30a3
--- /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 0000000..7baec92
--- /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 0000000..623260e
--- /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 0000000..d4cb494
--- /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 0000000..6b7dc91
--- /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 0000000..36d24e8
--- /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 0000000..7df79a2
--- /dev/null
+++ b/net/stone/pkg-plist
@@ -0,0 +1 @@
+bin/stone
OpenPOWER on IntegriCloud