---
name: tcpproxy
version: 1.0_1
origin: net/tcpproxy
comment: A simple TCP connection proxy for IPv4 and IPv6
arch: freebsd:9:x86:64
www: http://www.spreadspace.org/tcpproxy/
maintainer: alex@hugo.bmg.gv.at
prefix: /usr/local
licenselogic: single
flatsize: 49111
desc: |
  tcpproxy is a simple tcp connection proxy which combines the features of
  rinetd and 6tunnel. tcpproxy supports IPv4 and IPv6 and also supports
  connections from IPv6 to IPv4 endpoints and vice versa.

  WWW: http://www.spreadspace.org/tcpproxy/
categories: [net]
users: [_tcpproxy]
groups: [_tcpproxy]
files:
  /usr/local/bin/tcpproxy: dcb74957c1f62fa56e184bd4c5a22396e34af4755a1bb69cc3e44b623978e147
  /usr/local/etc/rc.d/tcpproxy: acfcea756aa8a4106616486cab768042b0af182084de18cce884dca79ff1511a
  /usr/local/etc/tcpproxy_sample.conf: 14c4c550f76d705a5cb2bc8dc33937ca095507a6210aa754b251bb96cf8cafb5
  /usr/local/man/man8/tcpproxy.8.gz: 209ca26cedd4506cfe258b6158560a80adbabd372aa63869eb365190cf126369
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow _tcpproxy >/dev/null 2>&1; then  echo "Creating group '_tcpproxy' with gid '940'.";  /usr/sbin/pw groupadd _tcpproxy -g 940; else echo "Using existing group '_tcpproxy'."; fi
    if ! /usr/sbin/pw usershow _tcpproxy >/dev/null 2>&1; then  echo "Creating user '_tcpproxy' with uid '940'.";  /usr/sbin/pw useradd _tcpproxy -u 940 -g 940  -c "tcpproxy user" -d /nonexistent -s /usr/sbin/nologin;  else echo "Using existing user '_tcpproxy'."; fi
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow _tcpproxy >/dev/null 2>&1; then  echo "==> You should manually remove the \"_tcpproxy\" user. "; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
