---
name: gnetcat
version: 0.7.1_3
origin: net/gnetcat
comment: GPL'ed re-write of the well known networking tool netcat
arch: freebsd:9:x86:64
www: http://netcat.sourceforge.net/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 52589
desc: "Netcat is a featured networking utility which reads and writes data across\nnetwork
  connections, using the TCP/IP protocol. It is designed to be a reliable\n\"back-end\"
  tool that can be used directly or easily driven by other programs and\nscripts.
  At the same time, it is a feature-rich network debugging and\nexploration tool,
  since it can create almost any kind of connection you \nwould need and has several
  interesting built-in capabilities.\n\nWWW: http://netcat.sourceforge.net/\n"
deps:
  gettext: {origin: devel/gettext, version: 0.18.1.1_1}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories: [net]
files:
  /usr/local/bin/gnetcat: 291e728603b4a1c55f4c25dacc85b03ed8ee68a955ab728bd36a7580e2b0abd8
  /usr/local/info/gnetcat.info: 3f7fc4ca089e3541b329e4c24d126e99f8e6090560c302a611b88ba4ad4e6e14
  /usr/local/man/man1/gnetcat.1.gz: d8c14f1d8d3d5f1dafd63039b1c8dd62cdc2ae3293dc1c0740501d646c844a91
scripts:
  post-install: |
    file=/usr/local/info/gnetcat.info
    install-info --quiet /usr/local/info/gnetcat.info ${file%25/*}/dir
  pre-deinstall: |
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    file=/usr/local/info/gnetcat.info
    install-info --quiet --delete /usr/local/info/gnetcat.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
