ports/85634: new port: net/micro_proxy - A really small HTTP/HTTPS proxy
Emanuel Haupt
ehaupt at critical.ch
Fri Sep 2 12:30:29 UTC 2005
>Number: 85634
>Category: ports
>Synopsis: new port: net/micro_proxy - A really small HTTP/HTTPS proxy
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 02 12:30:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Emanuel Haupt
>Release: FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD admin.critical.ch 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Jun 30 09:36:40 CEST 2005 root at admin.critical.ch:/usr/obj/usr/src-release/src/sys/GENERIC i386
>Description:
new port: net/micro_proxy - A really small HTTP/HTTPS proxy
Microproxy is a very small Unix-based HTTP/HTTPS proxy. It runs from inetd,
which means its performance is poor. But for low-traffic sites, it's quite
adequate.
It implements all the basic features of an HTTP/HTTPS proxy, including IPv6
forwarding, in only 320 lines of code.
>How-To-Repeat:
>Fix:
--- micro_proxy.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:
#
# micro_proxy
# micro_proxy/Makefile
# micro_proxy/pkg-descr
# micro_proxy/distinfo
# micro_proxy/pkg-message
# micro_proxy/pkg-deinstall
#
echo c - micro_proxy
mkdir -p micro_proxy > /dev/null 2>&1
echo x - micro_proxy/Makefile
sed 's/^X//' >micro_proxy/Makefile << 'END-of-micro_proxy/Makefile'
X# New ports collection makefile for: micro_proxy
X# Date created: 2 Sep 2005
X# Whom: Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME= micro_proxy
XPORTVERSION= 20021030
XCATEGORIES= net
XMASTER_SITES= http://www.acme.com/software/micro_proxy/
XDISTNAME= ${PORTNAME}_30oct2002
X
XMAINTAINER= ehaupt at critical.ch
XCOMMENT= A really small HTTP/HTTPS proxy
X
XWRKSRC= ${WRKDIR}/${PORTNAME}
XPLIST_FILES= libexec/micro_proxy
XMAN8= micro_proxy.8
X
Xdo-build:
X ${CC} ${CFLAGS} -c ${WRKSRC}/${PORTNAME}.c -o ${WRKSRC}/${PORTNAME}.o
X ${CC} ${CFLAGS} ${WRKSRC}/${PORTNAME}.o -o ${WRKSRC}/${PORTNAME}
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
X ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${MANPREFIX}/man/man8
X
Xpost-install:
X @${SED} -e 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-micro_proxy/Makefile
echo x - micro_proxy/pkg-descr
sed 's/^X//' >micro_proxy/pkg-descr << 'END-of-micro_proxy/pkg-descr'
XMicroproxy is a very small Unix-based HTTP/HTTPS proxy. It runs from inetd,
Xwhich means its performance is poor. But for low-traffic sites, it's quite
Xadequate.
X
XIt implements all the basic features of an HTTP/HTTPS proxy, including IPv6
Xforwarding, in only 320 lines of code.
X
XWWW: http://www.acme.com/software/micro_proxy/
X
X- ehaupt
Xehaupt at critical.ch
END-of-micro_proxy/pkg-descr
echo x - micro_proxy/distinfo
sed 's/^X//' >micro_proxy/distinfo << 'END-of-micro_proxy/distinfo'
XMD5 (micro_proxy_30oct2002.tar.gz) = d83288fbc61b73a9dc0f62a49c6f1ab2
XSIZE (micro_proxy_30oct2002.tar.gz) = 5822
END-of-micro_proxy/distinfo
echo x - micro_proxy/pkg-message
sed 's/^X//' >micro_proxy/pkg-message << 'END-of-micro_proxy/pkg-message'
X===============================================================================
X
XMicro_proxy has been successfully installed. If you want to run micro_proxy
Xwith inetd add
X
X webproxy 8080/tcp
X
Xto services(5),
X
X webproxy stream tcp nowait nobody %%PREFIX%%/libexec/micro_proxy -R 10000 micro_proxy
X
Xto inetd.conf(5),
X
X enable_inetd="YES"
X
Xto rc.conf(5) and restart inetd(8). See micro_proxy(8) for more information.
X
X===============================================================================
END-of-micro_proxy/pkg-message
echo x - micro_proxy/pkg-deinstall
sed 's/^X//' >micro_proxy/pkg-deinstall << 'END-of-micro_proxy/pkg-deinstall'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
Xcase $2 in
XPOST-DEINSTALL)
Xcat << "EOF"
X===============================================================================
XMicro_proxy has been successfully deinstalled. If you ran it with inetd(8) make
Xsure you remove all the manual configuration.
X===============================================================================
XEOF
X;;
Xesac
END-of-micro_proxy/pkg-deinstall
exit
--- micro_proxy.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list