Skip site navigation (1)Skip section navigation (2)
Date:      25 Sep 2002 13:21:32 +0200
From:      opr <opr@bsdaemon.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43356: New Port
Message-ID:  <1032952892.10974.3.camel@laptop.core.bsdaemon.be>

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

>Number:         43356
>Category:       ports
>Synopsis:       New Port
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 25 04:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     opr@bsdaemon.be
>Release:        FreeBSD 4.6.2-RELEASE-p2 i386
>Organization:
BSDaemon/Securax
>Environment:
System: FreeBSD laptop.core.bsdaemon.be 4.6.2-RELEASE-p2 FreeBSD 4.6.2-RELEASE-p2 #2: Thu Sep 19 11:18:36 CEST 2002 opr@laptop.core.bsdaemon.be:/usr/obj/usr/src/sys/LAPTOP i386



>Description:
	Secure HTTP Proxy
>How-To-Repeat:

>Fix:

--- twhttpd.shar begins here ---
# 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:
#
#	twhttpd
#	twhttpd/pkg-plist
#	twhttpd/distinfo
#	twhttpd/pkg-descr
#	twhttpd/pkg-comment
#	twhttpd/Makefile
#	twhttpd/files
#	twhttpd/files/patch-aa
#	twhttpd/files/patch-ab
#	twhttpd/files/patch-ac
#	twhttpd/files/patch-ad
#	twhttpd/pkg-message
#
echo c - twhttpd
mkdir -p twhttpd > /dev/null 2>&1
echo x - twhttpd/pkg-plist
sed 's/^X//' >twhttpd/pkg-plist << 'END-of-twhttpd/pkg-plist'
Xsbin/twhttpd
Xsbin/rm_cache
Xetc/twhttpd.cfg.sample
END-of-twhttpd/pkg-plist
echo x - twhttpd/distinfo
sed 's/^X//' >twhttpd/distinfo << 'END-of-twhttpd/distinfo'
XMD5 (twhttpd-1.0.tar.gz) = 09b49b470e689fc1e5917b9503cea71d
END-of-twhttpd/distinfo
echo x - twhttpd/pkg-descr
sed 's/^X//' >twhttpd/pkg-descr << 'END-of-twhttpd/pkg-descr'
Xtwhttpd is a powerful secure HTTP proxy.
Xtwhttpd protects your internal Web server by acting as an inbound proxy 
X(like a reserve Squid proxy). It can also work as a secure outbound proxy 
Xto protect your browser client. It allows you to inspect almost every 
Xdetail of the HTTP protocol headers, including the URL request line, the 
Xserver version, user-agent, referrer, cookie, query, etc., in a 
Xeasy-to-use script-like configuration file. 
XThis program is generally considered an "Expert Tool"; you will need 
Xknowledge of the HTTP protocol to configure the proxy properly.  
X
XWWW: http://www.geocities.com/samngms/twhttpd/
X
X- Pieter
Xopr@bsdaemon.be
END-of-twhttpd/pkg-descr
echo x - twhttpd/pkg-comment
sed 's/^X//' >twhttpd/pkg-comment << 'END-of-twhttpd/pkg-comment'
XSecure HTTP Proxy
END-of-twhttpd/pkg-comment
echo x - twhttpd/Makefile
sed 's/^X//' >twhttpd/Makefile << 'END-of-twhttpd/Makefile'
X# New ports collection makefile for:	twhttpd-1.0
X# Date created: 	25 Sep 2002
X# Whom:			Pieter Danhieux <opr@bsdaemon.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	twhttpd
XPORTVERSION=	1.0
XCATEGORIES=	mail
XMASTER_SITES=	http://www.geocities.com/samngms/twhttpd/download/
XDISTNAME=	twhttpd-${PORTVERSION}
X
XMAINTAINER=	opr@bsdaemon.be
X
XGNU_CONFIGURE=  yes
XUSE_GMAKE=	yes
XUSE_AUTOCONF=	yes
X
Xdo-install:
X	@${INSTALL_PROGRAM} -o root -g wheel -m 0755 ${WRKSRC}/twhttpd ${PREFIX}/sbin/twhttpd
X	@${INSTALL} -o root -g wheel -m 0755 ${WRKSRC}/rm_cache ${PREFIX}/sbin/rm_cache
X	@${INSTALL} -o root -g wheel -m 0700 ${WRKSRC}/twhttpd.cfg ${PREFIX}/etc/twhttpd.cfg.sample
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X.include <bsd.port.mk>
END-of-twhttpd/Makefile
echo c - twhttpd/files
mkdir -p twhttpd/files > /dev/null 2>&1
echo x - twhttpd/files/patch-aa
sed 's/^X//' >twhttpd/files/patch-aa << 'END-of-twhttpd/files/patch-aa'
X--- config.h.orig	Sat Aug 31 05:40:23 2002
X+++ config.h	Wed Sep 25 12:01:58 2002
X@@ -31,7 +31,7 @@
X #define CURRENT_DIR           "./"
X #define DEFAULT_CACHE_DIR     ".cache"
X #define DEFAULT_COOKIE_DIR    ".cookie"
X-#define DEFAULT_CONFIG_FILE   "/etc/twhttpd.cfg"
X+#define DEFAULT_CONFIG_FILE   "/usr/local/etc/twhttpd.cfg"
X 
X #define SOCKET_TIMEOUT    45      /* socket timeout value */
X #define CONNECT_TIMEOUT   15      /* connect timeout value */
END-of-twhttpd/files/patch-aa
echo x - twhttpd/files/patch-ab
sed 's/^X//' >twhttpd/files/patch-ab << 'END-of-twhttpd/files/patch-ab'
X--- httplog.c.orig	Sat Dec  8 15:15:44 2001
X+++ httplog.c	Wed Sep 25 12:02:28 2002
X@@ -40,6 +40,7 @@
X #include <time.h>
X #include <stdio.h>
X #include <syslog.h>
X+#include <arpa/inet.h>
X #include <netinet/in.h>
X #include <sys/time.h>
X #include <sys/socket.h>
X@@ -151,4 +152,4 @@
X             }
X         }
X     }
X-}
X+}
END-of-twhttpd/files/patch-ab
echo x - twhttpd/files/patch-ac
sed 's/^X//' >twhttpd/files/patch-ac << 'END-of-twhttpd/files/patch-ac'
X--- twhttpd.c.orig	Sat Aug 31 05:16:35 2002
X+++ twhttpd.c	Wed Sep 25 12:02:49 2002
X@@ -33,7 +33,7 @@
X #include <signal.h>
X #include <time.h>
X #include <unistd.h>
X-#include <wait.h>
X+#include <sys/wait.h>
X #include <netinet/in.h>
X #include <sys/socket.h>
X #include <sys/types.h>
END-of-twhttpd/files/patch-ac
echo x - twhttpd/files/patch-ad
sed 's/^X//' >twhttpd/files/patch-ad << 'END-of-twhttpd/files/patch-ad'
X--- configure.in.orig	Wed Sep 25 12:41:35 2002
X+++ configure.in	Wed Sep 25 12:41:44 2002
X@@ -8,7 +8,7 @@
X AC_PROG_LEX
X 
X dnl Checks for libraries.
X-AC_CHECK_LIB(pwdb, crypt)
X+AC_CHECK_LIB(crypt, crypt)
X AC_CHECK_LIB(socket, bind)
X AC_CHECK_LIB(nsl, gethostbyname)
X 
END-of-twhttpd/files/patch-ad
echo x - twhttpd/pkg-message
sed 's/^X//' >twhttpd/pkg-message << 'END-of-twhttpd/pkg-message'
X***************************************************************************
Xtwhttpd is installed in /usr/local/sbin/
XNow copy /usr/local/etc/twhttpd.cfg.sample to twhttpd.cfg, 
Xand edit it.
X***************************************************************************
END-of-twhttpd/pkg-message
exit
--- twhttpd.shar ends here ---




-- 
www.bsdaemon.be - securax.org - docs.bsdaemon.be
keyserver: pgpkeys.mit.edu	PGP keyID: DA07EAE9


>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?1032952892.10974.3.camel>