---
name: netmask
version: 2.4_1
origin: net-mgmt/netmask
comment: Tool for generating terse netmasks in several common formats
arch: freebsd:9:x86:64
www: UNKNOWN
maintainer: mike@urgle.com
prefix: /usr/local
licenselogic: single
flatsize: 43418
desc: |
  This is a handy tool for generating terse netmasks in several common
  formats.  If you've ever maintained a firewall with more than a few rules
  in it, you might use netmask to clean up and generalize sloppy rules left by
  the netadmin before you.  It will also convert netmasks from one format
  to another for the day you change your firewall software.
categories: [net-mgmt]
files:
  /usr/local/bin/netmask: 17061be667b9d30964073a9c6fc4d8ca2d41ea51c528b89fec0cb7587349b4a9
  /usr/local/info/netmask.info: 13d398707f05ce9e1a544c8a19bd1e0c64d6861bb8f6465ebc9f89c7d80e13a6
  /usr/local/man/man1/netmask.1.gz: b39677ce8744f52ce32d1ad5706762425028bed44c703e7c21841800371538ed
scripts:
  post-install: |
    file=/usr/local/info/netmask.info
    install-info --quiet /usr/local/info/netmask.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/netmask.info
    install-info --quiet --delete /usr/local/info/netmask.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
