---
name: newscache
version: 1.2.r.6_4
origin: news/newscache
comment: NewsCache is a free cache server for USENET News
arch: freebsd:9:x86:64
www: http://www.linuxhacker.at/newscache/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 810368
desc: "What is NewsCache?\n\nNewsCache is a free cache server for USENET News available
  under the GNU\nGeneral Public License. NewsCache can be plugged in between your
  news\nreader(s) and your news server. NewsCache acts to news readers like a news\nserver
  and retrieves news articles from the news server like a news\nreader. Whenever,
  a client requests an article from NewsCache, NewsCache\nchecks whether the article
  has already been stored in the cache area. If\nthis is the case, the article is
  sent directly to its client. Otherwise,\nthe article is requested from the upstream
  news server, stored in the\ncache area and sent back to the client.\n\nAuthor: Thomas
  Gschwind,  Herber Straub\nWWW: \thttp://www.linuxhacker.at/newscache/\n"
deps:
  libsocket++: {origin: net/libsocket++, version: 1.12.13}
categories: [news]
files:
  /usr/local/bin/updatenews: d5e00514c8057da7d5964a0e0e86267332e7733e8d57ea93b571f842f07ad501
  /usr/local/etc/newscache.auth-dist: 31f180339f6a58cc00f8547208ef7e6f36a72e775c45acb54f4caf3581fda646
  /usr/local/etc/newscache.conf-dist: e5e4d43e5f1e490b9e6ab9209c330789fda72f7f79455df885ec8a0d32c83118
  /usr/local/etc/rc.d/newscache: e29c489f08dd53497f8555669c274bc8f8d41f8697155766e00b4f4bb6974a41
  /usr/local/info/NewsCache.info: 5c23a0ae2ae1052fadb8c233844647719c430ba2ac0bd36a1576eee69309b97d
  /usr/local/man/man5/newscache.conf.5.gz: fadfc09962f9483bd66caf1ed76ac0344bb831b1613986ffac929b86f2f53315
  /usr/local/man/man8/newscache.8.gz: 60f3bdd73f37a4b75b08552f384db9e54d84134f90c692655eef445870f84ffe
  /usr/local/man/man8/newscacheclean.8.gz: b8db7646e79ea691e54acc56833e65047ebce16a04bc0682541ea70faeb4177a
  /usr/local/man/man8/updatenews.8.gz: f55ba0b002b33c11748934b427d898e0e68414ff09a3364949f66ff56c7d883e
  /usr/local/sbin/newscache: 803b82e9929169838a4528fb7adffa4ef60905998b8b5ad17c303ee78b42360e
  /usr/local/sbin/newscacheclean: 6d28db4c98c7d53d83771372ee84bbf5ec88a763c27aff06bc224b62069d32b3
scripts:
  post-install: |
    cd /usr/local
    file=/usr/local/info/NewsCache.info
    install-info --quiet /usr/local/info/NewsCache.info ${file%25/*}/dir
  pre-deinstall: |
    cd /usr/local
    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: |
    cd /usr/local
    file=/usr/local/info/NewsCache.info
    install-info --quiet --delete /usr/local/info/NewsCache.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
