diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-01-03 03:56:28 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-01-03 03:56:28 +0000 |
commit | ba7d06e99bb1ec4316c50589b37e87133cae3328 (patch) | |
tree | 1442df85f3798ead59c573a53cf58560ebe4162a /mail | |
parent | Gtk+ and GNOME interfaces for the .NET runtime (diff) |
New Port mail/twhttpd
Secure HTTP Proxy
PR: ports/43356
Submitted by: opr@bsdaemon.be <opr@bsdaemon.be>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/twhttpd/Makefile | 27 | ||||
-rw-r--r-- | mail/twhttpd/distinfo | 1 | ||||
-rw-r--r-- | mail/twhttpd/files/patch-aa | 11 | ||||
-rw-r--r-- | mail/twhttpd/files/patch-ab | 16 | ||||
-rw-r--r-- | mail/twhttpd/files/patch-ac | 11 | ||||
-rw-r--r-- | mail/twhttpd/files/patch-ad | 11 | ||||
-rw-r--r-- | mail/twhttpd/pkg-comment | 1 | ||||
-rw-r--r-- | mail/twhttpd/pkg-descr | 14 | ||||
-rw-r--r-- | mail/twhttpd/pkg-message | 5 | ||||
-rw-r--r-- | mail/twhttpd/pkg-plist | 3 |
11 files changed, 101 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 3e37f2feb8a3..dac8f10c2d9a 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -267,6 +267,7 @@ SUBDIR += tmda SUBDIR += tpop3d SUBDIR += turba + SUBDIR += twhttpd SUBDIR += vbsfilter SUBDIR += vm SUBDIR += vm-pop3d diff --git a/mail/twhttpd/Makefile b/mail/twhttpd/Makefile new file mode 100644 index 000000000000..0237da7046e4 --- /dev/null +++ b/mail/twhttpd/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: twhttpd-1.0 +# Date created: 25 Sep 2002 +# Whom: Pieter Danhieux <opr@bsdaemon.be> +# +# $FreeBSD$ +# + +PORTNAME= twhttpd +PORTVERSION= 1.0 +CATEGORIES= mail +MASTER_SITES= http://www.geocities.com/samngms/twhttpd/download/ +DISTNAME= twhttpd-${PORTVERSION} + +MAINTAINER= opr@bsdaemon.be + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_AUTOCONF= yes + +do-install: + @${INSTALL_PROGRAM} -o root -g wheel -m 0755 ${WRKSRC}/twhttpd ${PREFIX}/sbin/twhttpd + @${INSTALL} -o root -g wheel -m 0755 ${WRKSRC}/rm_cache ${PREFIX}/sbin/rm_cache + @${INSTALL} -o root -g wheel -m 0700 ${WRKSRC}/twhttpd.cfg ${PREFIX}/etc/twhttpd.cfg.sample + +post-install: + @${CAT} ${PKGMESSAGE} +.include <bsd.port.mk> diff --git a/mail/twhttpd/distinfo b/mail/twhttpd/distinfo new file mode 100644 index 000000000000..3acf24d49358 --- /dev/null +++ b/mail/twhttpd/distinfo @@ -0,0 +1 @@ +MD5 (twhttpd-1.0.tar.gz) = 09b49b470e689fc1e5917b9503cea71d diff --git a/mail/twhttpd/files/patch-aa b/mail/twhttpd/files/patch-aa new file mode 100644 index 000000000000..919d055e56f1 --- /dev/null +++ b/mail/twhttpd/files/patch-aa @@ -0,0 +1,11 @@ +--- config.h.orig Sat Aug 31 05:40:23 2002 ++++ config.h Wed Sep 25 12:01:58 2002 +@@ -31,7 +31,7 @@ + #define CURRENT_DIR "./" + #define DEFAULT_CACHE_DIR ".cache" + #define DEFAULT_COOKIE_DIR ".cookie" +-#define DEFAULT_CONFIG_FILE "/etc/twhttpd.cfg" ++#define DEFAULT_CONFIG_FILE "/usr/local/etc/twhttpd.cfg" + + #define SOCKET_TIMEOUT 45 /* socket timeout value */ + #define CONNECT_TIMEOUT 15 /* connect timeout value */ diff --git a/mail/twhttpd/files/patch-ab b/mail/twhttpd/files/patch-ab new file mode 100644 index 000000000000..21c2a4f895ab --- /dev/null +++ b/mail/twhttpd/files/patch-ab @@ -0,0 +1,16 @@ +--- httplog.c.orig Sat Dec 8 15:15:44 2001 ++++ httplog.c Wed Sep 25 12:02:28 2002 +@@ -40,6 +40,7 @@ + #include <time.h> + #include <stdio.h> + #include <syslog.h> ++#include <arpa/inet.h> + #include <netinet/in.h> + #include <sys/time.h> + #include <sys/socket.h> +@@ -151,4 +152,4 @@ + } + } + } +-} ++} diff --git a/mail/twhttpd/files/patch-ac b/mail/twhttpd/files/patch-ac new file mode 100644 index 000000000000..a663815b5f49 --- /dev/null +++ b/mail/twhttpd/files/patch-ac @@ -0,0 +1,11 @@ +--- twhttpd.c.orig Sat Aug 31 05:16:35 2002 ++++ twhttpd.c Wed Sep 25 12:02:49 2002 +@@ -33,7 +33,7 @@ + #include <signal.h> + #include <time.h> + #include <unistd.h> +-#include <wait.h> ++#include <sys/wait.h> + #include <netinet/in.h> + #include <sys/socket.h> + #include <sys/types.h> diff --git a/mail/twhttpd/files/patch-ad b/mail/twhttpd/files/patch-ad new file mode 100644 index 000000000000..3d5ace1c5058 --- /dev/null +++ b/mail/twhttpd/files/patch-ad @@ -0,0 +1,11 @@ +--- configure.in.orig Wed Sep 25 12:41:35 2002 ++++ configure.in Wed Sep 25 12:41:44 2002 +@@ -8,7 +8,7 @@ + AC_PROG_LEX + + dnl Checks for libraries. +-AC_CHECK_LIB(pwdb, crypt) ++AC_CHECK_LIB(crypt, crypt) + AC_CHECK_LIB(socket, bind) + AC_CHECK_LIB(nsl, gethostbyname) + diff --git a/mail/twhttpd/pkg-comment b/mail/twhttpd/pkg-comment new file mode 100644 index 000000000000..635dbe9311dc --- /dev/null +++ b/mail/twhttpd/pkg-comment @@ -0,0 +1 @@ +Secure HTTP Proxy diff --git a/mail/twhttpd/pkg-descr b/mail/twhttpd/pkg-descr new file mode 100644 index 000000000000..3cb9f05ea657 --- /dev/null +++ b/mail/twhttpd/pkg-descr @@ -0,0 +1,14 @@ +twhttpd is a powerful secure HTTP proxy. +twhttpd protects your internal Web server by acting as an inbound proxy +(like a reserve Squid proxy). It can also work as a secure outbound proxy +to protect your browser client. It allows you to inspect almost every +detail of the HTTP protocol headers, including the URL request line, the +server version, user-agent, referrer, cookie, query, etc., in a +easy-to-use script-like configuration file. +This program is generally considered an "Expert Tool"; you will need +knowledge of the HTTP protocol to configure the proxy properly. + +WWW: http://www.geocities.com/samngms/twhttpd/ + +- Pieter +opr@bsdaemon.be diff --git a/mail/twhttpd/pkg-message b/mail/twhttpd/pkg-message new file mode 100644 index 000000000000..92e87913862d --- /dev/null +++ b/mail/twhttpd/pkg-message @@ -0,0 +1,5 @@ +*************************************************************************** +twhttpd is installed in /usr/local/sbin/ +Now copy /usr/local/etc/twhttpd.cfg.sample to twhttpd.cfg, +and edit it. +*************************************************************************** diff --git a/mail/twhttpd/pkg-plist b/mail/twhttpd/pkg-plist new file mode 100644 index 000000000000..e0c8911ac315 --- /dev/null +++ b/mail/twhttpd/pkg-plist @@ -0,0 +1,3 @@ +sbin/twhttpd +sbin/rm_cache +etc/twhttpd.cfg.sample |