diff options
author | rh <rh> | 1999-02-23 18:20:59 +0000 |
---|---|---|
committer | rh <rh> | 1999-02-23 18:20:59 +0000 |
commit | f50b36adfbe4e34e48bd1761a17548a9cc0a90c4 (patch) | |
tree | fa8377b770399ce94a13a9466f2e4c94fa2fa91b /net/delegate | |
parent | b414adbdc4f6e129d6e142503a953068e12a3ca7 (diff) | |
download | pkgsrc-f50b36adfbe4e34e48bd1761a17548a9cc0a90c4.tar.gz |
A general purpose TCP/IP proxy system.
Diffstat (limited to 'net/delegate')
-rw-r--r-- | net/delegate/Makefile | 35 | ||||
-rw-r--r-- | net/delegate/files/delegated.sh | 13 | ||||
-rw-r--r-- | net/delegate/files/md5 | 1 | ||||
-rw-r--r-- | net/delegate/patches/patch-aa | 47 | ||||
-rw-r--r-- | net/delegate/pkg/COMMENT | 1 | ||||
-rw-r--r-- | net/delegate/pkg/DESCR | 9 | ||||
-rw-r--r-- | net/delegate/pkg/MESSAGE | 11 | ||||
-rw-r--r-- | net/delegate/pkg/PLIST | 5 |
8 files changed, 122 insertions, 0 deletions
diff --git a/net/delegate/Makefile b/net/delegate/Makefile new file mode 100644 index 00000000000..6e87cb66e6b --- /dev/null +++ b/net/delegate/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: DeleGate +# Version required: 5.7.2 +# Date created: 26 Jan 1997 +# Whom: Masafumi NAKANE <max@FreeBSD.ORG> +# +# $Id: Makefile,v 1.1.1.1 1999/02/23 18:20:59 rh Exp $ +# + +DISTNAME= delegate5.7.2 +PKGNAME= delegate-5.7.2 +CATEGORIES= net www japanese +MASTER_SITES= ftp://etlport.etl.go.jp/pub/DeleGate/ + +MAINTAINER= max@FreeBSD.ORG + +MAKE_ENV= PATH=$${PATH}:. + +.if defined(BATCH) +pre-build: + @echo "MANAGER=root@localhost" >> ${WRKSRC}/DELEGATE_CONF +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${PREFIX}/sbin + @${MKDIR} ${PREFIX}/share/examples/delegate + ${INSTALL_DATA} ${FILESDIR}/delegated.sh \ + ${PREFIX}/share/examples/delegate +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/delegate + ${INSTALL_DATA} ${WRKSRC}/doc/Manual.txt \ + ${PREFIX}/share/doc/delegate +.endif + @${CAT} ${PKGDIR}/MESSAGE + +.include <bsd.port.mk> diff --git a/net/delegate/files/delegated.sh b/net/delegate/files/delegated.sh new file mode 100644 index 00000000000..a8997bcba30 --- /dev/null +++ b/net/delegate/files/delegated.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ -x /usr/local/sbin/delegated ]; then + echo -n ' delegated' + /usr/local/sbin/delegated -P8080 \ + MANAGER=delegate-master@your.host.domain \ + CHARCODE=JIS \ + CACHEDIR=/var/spool/delegate/cache \ + EXPIRE=7d \ + RELIABLE=hostname \ + > /dev/null 2>&1 + +fi diff --git a/net/delegate/files/md5 b/net/delegate/files/md5 new file mode 100644 index 00000000000..5fbb39368cb --- /dev/null +++ b/net/delegate/files/md5 @@ -0,0 +1 @@ +MD5 (delegate5.7.2.tar.gz) = e733d1673af91bb788a2902a69221baa diff --git a/net/delegate/patches/patch-aa b/net/delegate/patches/patch-aa new file mode 100644 index 00000000000..7232ff8e789 --- /dev/null +++ b/net/delegate/patches/patch-aa @@ -0,0 +1,47 @@ +--- src/lock.c.orig Tue Aug 4 09:13:18 1998 ++++ src/lock.c Thu Nov 19 18:17:09 1998 +@@ -18,6 +18,7 @@ + History: + 970403 extracted from cache.c + //////////////////////////////////////////////////////////////////////#*/ ++#include <errno.h> + #include <stdio.h> + #include <sys/types.h> + extern double Time(); +@@ -112,6 +113,22 @@ + rcode = 0; + break; + } ++#ifdef EWOULDBLOCK ++ /* ++ * Only retry the lock if it was busy. Other ++ * possible sources for the lock to fail are: ++ * invalid argument, bad filedescriptor, and ++ * operation not supported by device. The latter ++ * happens if you start DeleGateD with -v, so it ++ * logs to stderr (which usually doesn't support ++ * locking at all). ++ */ ++ if (rcode == -1 && errno != EWOULDBLOCK) { ++ /* pretend lock succeeded */ ++ rcode = 0; ++ break; ++ } ++#endif + remain = timeout - elapsed; + if( remain <= 0 ) + break; +@@ -122,6 +139,13 @@ + + start = Time(); + rcode = callFuncTimeout(remain/1000,-1,func,fd); ++#ifdef EWOULDBLOCK ++ if (rcode == -1 && errno != EWOULDBLOCK) { ++ /* pretend lock succeeded */ ++ rcode = 0; ++ break; ++ } ++#endif + elapse1 = (Time() - start) * 1000; + /*{ + static int n; diff --git a/net/delegate/pkg/COMMENT b/net/delegate/pkg/COMMENT new file mode 100644 index 00000000000..473aefa4fdf --- /dev/null +++ b/net/delegate/pkg/COMMENT @@ -0,0 +1 @@ +General purpose TCP/IP proxy system diff --git a/net/delegate/pkg/DESCR b/net/delegate/pkg/DESCR new file mode 100644 index 00000000000..00aefb548ef --- /dev/null +++ b/net/delegate/pkg/DESCR @@ -0,0 +1,9 @@ +DeleGate is a general purpose protocol proxy system for protocols +using TCP/IP. This software includes support for HTTP, Gopher, FTP, +SMTP, NNTP, POP, Telnet, Wais, Whois, etc. + +More information can be found at: + http://wall.etl.go.jp/delegate/ + +- Max + diff --git a/net/delegate/pkg/MESSAGE b/net/delegate/pkg/MESSAGE new file mode 100644 index 00000000000..99d68eb79bb --- /dev/null +++ b/net/delegate/pkg/MESSAGE @@ -0,0 +1,11 @@ +********************************************************************** +Now, edit the sample script in /usr/local/share/examples/delegate directory +and copy it into /usr/local/etc/rc.d. +Especially, don't forget to specify correct value for the MANAGER. + +You can also run an interactive configuration session by executing +delegated with no argument. + +Consult /usr/local/share/doc/delegate/Manual.txt for configuration +information. +********************************************************************** diff --git a/net/delegate/pkg/PLIST b/net/delegate/pkg/PLIST new file mode 100644 index 00000000000..d8a769ac763 --- /dev/null +++ b/net/delegate/pkg/PLIST @@ -0,0 +1,5 @@ +sbin/delegated +share/examples/delegate/delegated.sh +share/doc/delegate/Manual.txt +@dirrm share/doc/delegate +@dirrm share/examples/delegate |