---
name: zerowait-httpd
version: 0.8d_2
origin: www/zerowait-httpd
comment: Lightweight and fast http server
arch: freebsd:9:x86:64
www: http://www.0w.ru/httpd/
maintainer: dhn@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 244123
desc: |
  0W-httpd is lightweight http server, that supports different
  enchancements, such as kqueue and sendfile for operations.
  0W-httpd runs as a single process.

  WWW: http://www.0w.ru/httpd/
categories: [www]
files:
  /usr/local/bin/convert-geoip: 70ef11110134c0b2d579d201b7496998b84e6a5d89cb26331648360a2a86373c
  /usr/local/bin/convert-ranges: 0d1e90eea96789acfa6b91360b25fbcb5b7ab87f6c64d11aa0bb4b7e687830d0
  /usr/local/bin/update-countries.sh: 8c916d1236fdc30699482fb935a407eeab6feed2d5e4fb0c24bf3bf75110aee9
  /usr/local/etc/0W-httpd/countries: 5e46bb430142d8d0d0dcaaa3691a694472002e3513c549aa574cd40832495583
  /usr/local/etc/0W-httpd/countries.ips: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
  /usr/local/etc/0W-httpd/countries.rus: 54305cca04fd1b56fc4744ae4bd59d3dad75d4c5d043b07b55206943912c42f2
  /usr/local/etc/0W-httpd/httpd.conf.sample: 23b6d01441fe6bd9463bac7860367d50dba75edf471bcf09d7d06275a49d4d6f
  /usr/local/etc/rc.d/0W-httpd: 9b358dfb8167266f963810e1016c151cd2ddbfcf89164e85a945a0830d2feda7
  /usr/local/sbin/0W-httpd: ada35b85e4ab8aa42302c99ea9dd5c32f879b090052612c06c0a35beecfda4e9
directories:
  /usr/local/etc/0W-httpd/: y
  /usr/local/0W-httpd/pids/: n
  /usr/local/0W-httpd/data/: n
  /usr/local/0W-httpd/: n
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/0W-httpd/httpd.conf ] ; then cp -p /usr/local/etc/0W-httpd/httpd.conf.sample /usr/local/etc/0W-httpd/httpd.conf; fi
    install -d -o www -g www /usr/local/0W-httpd/pids
    install -d -o www -g www /usr/local/0W-httpd/data
    install -d -o www -g www /usr/local/0W-httpd/logs
    cd /usr/local
  pre-deinstall: |
    /usr/local/etc/rc.d/0W-httpd stop
    if cmp -s /usr/local/etc/0W-httpd/httpd.conf.sample /usr/local/etc/0W-httpd/httpd.conf; then rm -f /usr/local/etc/0W-httpd/httpd.conf; fi
    rm -fr /usr/local/0W-httpd/logs > /dev/null 2>&1 || true
    cd /usr/local
  post-deinstall: |
    cd /usr/local
