---
name: ap22-mod_xsendfile
version: 0.12_3
origin: www/mod_xsendfile
comment: An Apache2 module that processes X-SENDFILE headers
arch: freebsd:9:x86:64
www: https://tn123.org/mod_xsendfile/
maintainer: potatosaladx@gmail.com
prefix: /usr/local
licenselogic: single
flatsize: 16761
desc: |
  mod_xsendfile is a small Apache2 module that processes X-SENDFILE headers
  registered by the original output handler.

  If it encounters the presence of such header it will discard all output and
  send the file specified by that header instead using Apache internals
  including all optimizations like caching-headers and sendfile or mmap if
  configured.

  It is useful for processing script-output of e.g. php, perl or any cgi.

  WWW: https://tn123.org/mod_xsendfile/
deps:
  apache22: {origin: www/apache22, version: 2.2.25}
  expat: {origin: textproc/expat2, version: 2.1.0}
  perl: {origin: lang/perl5.14, version: 5.14.4}
  pcre: {origin: devel/pcre, version: 8.33}
  gettext: {origin: devel/gettext, version: 0.18.3}
  apr: {origin: devel/apr1, version: 1.4.8.1.5.2}
  gdbm: {origin: databases/gdbm, version: 1.10}
  db42: {origin: databases/db42, version: 4.2.52_5}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories:
- www
shlibs_provided:
- mod_xsendfile.so
files:
  /usr/local/libexec/apache22/mod_xsendfile.so: 08e39f4cd02c86f680267f76f7e2f80d8bf06ddddced9b5abda1882c173ff808
scripts:
  post-install: |
    /usr/local/sbin/apxs -e -A -n xsendfile /usr/local/libexec/apache22/mod_xsendfile.so
  pre-deinstall: |
    /usr/bin/sed -i '' -E '/LoadModule[[:blank:]]+xsendfile_module/d' /usr/local/etc/apache22/httpd.conf
    echo "Don't forget to remove all mod_xsendfile-related directives in your httpd.conf"
