---
name: jwhois
version: 4.0_3
origin: net/jwhois
comment: An improved WHOIS client capable of selecting server to query
arch: freebsd:9:x86:64
www: http://www.gnu.org/software/jwhois/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 230547
desc: |
  Jwhois is a WHOIS client, with a feature of selecting servers to
  query based on a configulation file. Query results are cached to local
  databases. If you make a same query later, the results are extracted
  from databases; you can get your answer quickly.

  WWW: http://www.gnu.org/software/jwhois/
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/jwhois: cec66c16977dc635dbe4da3f69d1866c5beb84a4fdb515c88f64cc23a1162e92
  /usr/local/etc/jwhois.conf.sample: 84505ca2614b57be8d21dbf1d1444c511abef0e76abc28a0a1c15c4488372cd4
  /usr/local/info/jwhois.info: 97c65decddc59a6e5f83d98b5a2b70b45d65a73b75e85e208c365beb1f0cea1e
  /usr/local/man/man1/jwhois.1.gz: a3fb2b136590949462cefb9cf82ad2e9861e89f570f9691edf4da9723ce3820f
  /usr/local/man/sv/man1/jwhois.1.gz: 268252af2c48963743c2f394b23d3c8421a3bcb2a6f620d15e4a85ee750fb98b
  /usr/local/share/locale/es/LC_MESSAGES/jwhois.mo: 42aba832aa8f2c229affd1a7e5e09b66c502141ca5c78b61e2b1843b6d20e1d0
  /usr/local/share/locale/fr/LC_MESSAGES/jwhois.mo: fd5316d54ec60c182cf1eb680d9b5855e6ba155cd7e6b34f438e9a374e8ad1b0
  /usr/local/share/locale/hu/LC_MESSAGES/jwhois.mo: ca0518c5b6040638058e7fc975d2fdd5bee0e35ef204fa43f43192340ae3fab2
  /usr/local/share/locale/id/LC_MESSAGES/jwhois.mo: b614bb837360e3f408a391dc488a7c852a88b9b9380acb230afc7db02894dfe0
  /usr/local/share/locale/it/LC_MESSAGES/jwhois.mo: af7da47299f37e1201001e81d0b855aa160349f60d1f0d98b005ed01082fc375
  /usr/local/share/locale/nl/LC_MESSAGES/jwhois.mo: 1a82d418ee4285ff3517dbdfc3924fd994ba87b3e8927fadcb33d5e1add9ae6f
  /usr/local/share/locale/pl/LC_MESSAGES/jwhois.mo: b9829ecedf9fc6ed1117171f8667f65f72f5ec3c39e81c991af5bd4feb0a71f5
  /usr/local/share/locale/pt_BR/LC_MESSAGES/jwhois.mo: 27bf752ab05c68911ead89e77a859178d487cdd30a92b53c7f6b9161fee03055
  /usr/local/share/locale/ro/LC_MESSAGES/jwhois.mo: 7652fcf91d1ebad794dc92a3815608de10c54f5042e467a4bd08db5e02935ce5
  /usr/local/share/locale/ru/LC_MESSAGES/jwhois.mo: 1f6fb084c995834c59374c035d16861a3ccf5fe11461481e4a7a5fdb6168423d
  /usr/local/share/locale/rw/LC_MESSAGES/jwhois.mo: b01200cb1b45ed77052da3fe96d775529aa0e4225229302fdbcd77f8e308fd52
  /usr/local/share/locale/sv/LC_MESSAGES/jwhois.mo: b298dd64e82d2f3756f211d2e23968822df64126fbb828c502bfb806b7e6498e
  /usr/local/share/locale/tr/LC_MESSAGES/jwhois.mo: 1490dce2538c87623458a98055c2392c369ed84f7329f448ea64721156bb00bb
  /usr/local/share/locale/vi/LC_MESSAGES/jwhois.mo: 13af2018d301ed5532426328721d3dcec2e887ee13b5d755aa085a828fdee007
  /usr/local/share/locale/zh_TW/LC_MESSAGES/jwhois.mo: 492da8b556f34f37b0e4a67bfb19affa6fcb3a24b3d83da7c3baf7ee858d5cac
directories:
  /usr/local/var/jwhois/: y
  /usr/local/var/: y
  /usr/local/share/locale/rw/LC_MESSAGES/: y
  /usr/local/share/locale/rw/: y
  /usr/local/man/sv/man1/: y
  /usr/local/man/sv/: y
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/jwhois.conf ]; then cp /usr/local/etc/jwhois.conf.sample /usr/local/etc/jwhois.conf; fi
    mkdir -p /usr/local/var/jwhois 2>/dev/null || true
    chown :nogroup /usr/local/var/jwhois
    chmod g+w /usr/local/var/jwhois
    file=/usr/local/info/jwhois.info
    install-info --quiet /usr/local/info/jwhois.info ${file%25/*}/dir
  pre-deinstall: |
    if cmp -s /usr/local/etc/jwhois.conf /usr/local/etc/jwhois.conf.sample; then rm -f /usr/local/etc/jwhois.conf; fi
    rm -f /usr/local/var/jwhois/jwhois.db 2>/dev/null || true
    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/jwhois.info
    install-info --quiet --delete /usr/local/info/jwhois.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
