---
name: httptunnel
version: 3.3_2
origin: www/httptunnel
comment: Tunnel a TCP/IP connection through a HTTP/TCP/IP connection
arch: freebsd:9:x86:64
www: http://www.nocrew.org/software/httptunnel/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 92147
desc: |
  httptunnel creates a bidirectional virtual data path tunnelled in HTTP
  requests.  The requests can be sent via an HTTP proxy if so desired.

  This can be useful for users behind restrictive firewalls.  If WWW
  access is allowed through an HTTP proxy, it's possible to use
  httptunnel and, say, telnet or PPP to connect to a computer outside
  the firewall.

  If you still don't understand what this is all about, maybe you
  can find some useful information in the FAQ file.

  This program is mostly intended for technically oriented users.
  They should know what to do.

  httptunnel is free software.  See COPYING for terms and conditions.
  If you like it, I would appreciate if you sent a post card to:
          Lars Brinkhoff
          Kopmansgatan 2
          411 13  Goteborg
          Sweden

  WWW: http://www.nocrew.org/software/httptunnel/
categories: [www]
files:
  /usr/local/bin/htc: 7eca372b5720a2fa48f3d99bc5411bf892a1a75ca9cb619f90979a5007fff8d3
  /usr/local/bin/hts: 67ae68b67b1a3336666830332b9c198c6434311f736270588249ff3422cde6ea
  /usr/local/etc/rc.d/htc: 6c32099f7ee478fd80364062de24b87facc79ac221d63151ed5b8a069d14d92c
  /usr/local/etc/rc.d/hts: 988d575f5bc2116b8819d65af855e373a14763427cf22faf72df9826be2dea26
  /usr/local/man/man1/htc.1.gz: 0101ef53d6d116bd47932636afc71230014c7af5bcc428ebfb7c59cdbde188f9
  /usr/local/man/man1/hts.1.gz: ad82c87edc8f65f19b76f7bee586c770a195c46aa0524b5f9173474e96e86b2a
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    cd /usr/local
  post-deinstall: |
    cd /usr/local
  install: "#!/bin/sh\n\ncase $2 in\nPOST-INSTALL)\n\tUSER=httptunnel\n\tGROUP=${USER}\n\tUID=361\n\tGID=${UID}\n\tPW=/usr/sbin/pw\n\n\tif
    ${PW} group show \"${GROUP}\" 2>/dev/null; then\n\t\techo \"You already have a
    group \\\"${GROUP}\\\", so I will use it.\"\n\telse\n\t\tif ${PW} groupadd ${GROUP}
    -g ${GID}; then\n\t\t\techo \"Added group \\\"${GROUP}\\\".\"\n\t\telse\n\t\t\techo
    \"Adding group \\\"${GROUP}\\\" failed...\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\n\tif
    ${PW} user show \"${USER}\" 2>/dev/null; then\n\t\techo \"You already have a user
    \\\"${USER}\\\", so I will use it.\"\n\telse\n\t\tif ${PW} useradd ${USER} -u
    ${UID} -g ${GROUP} -h - \\\n\t\t\t-d \"/var/empty\" -s /sbin/nologin -c \"OSPF
    Daemon\"\n\t\tthen\n\t\t\techo \"Added user \\\"${USER}\\\".\"\n\t\telse\n\t\t\techo
    \"Adding user \\\"${USER}\\\" failed...\"\n\t\t\texit 1\n\t\tfi\n\tfi\n\texit
    0\n\t;;\nesac\n"
  deinstall: "#!/bin/sh\n\ncase $2 in\nPOST-DEINSTALL)\n\tUSER=httptunnel\n\tGROUP=${USER}\n\tPW=/usr/sbin/pw\n\n\tif
    ${PW} groupshow \"${GROUP}\" 2>/dev/null 1>&2; then\n\t\tif [ -z \"${PACKAGE_BUILDING}\"
    -a -z \"${BATCH}\" ]; then\n\t\t\techo \"To delete the ${USER} group permanently,
    use '${PW} groupdel ${GROUP}'.\"\n\t\telse\n\t\t\t${PW} groupdel ${USER}\n\t\tfi\n\tfi\n\n\tif
    ${PW} usershow \"${USER}\" 2>/dev/null 1>&2; then\n\t\tif [ -z \"${PACKAGE_BUILDING}\"
    -a -z \"${BATCH}\" ]; then\n\t\t\techo \"To delete the ${USER} user permanently,
    use '${PW} userdel ${USER}'.\"\n\t\telse\n\t\t\t${PW} userdel ${USER}\n\t\tfi\n\tfi\n\n\texit
    0\n\t;;\nesac\n"
