---
name: ap22-mod_antiloris
version: 0.4_1
origin: www/mod_antiloris
comment: Protect Apache 2.x against the Slowloris HTTP DoS attack
arch: freebsd:9:x86:64
www: http://modules.apache.org/search.php?id=1783
maintainer: alex@vts.su.ac.rs
prefix: /usr/local
licenselogic: single
flatsize: 9836
desc: |
  This module protects Apache 2.x from the Slowloris HTTP DoS attack by
  limiting the number of allowed connections.

  WWW: http://modules.apache.org/search.php?id=1783
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_antiloris.so
files:
  /usr/local/etc/apache22/Includes/mod_antiloris.conf: 0bcc0a5b7fe50686fa65644d514bd640d51402d11796e89b3e6391f90dfce3f4
  /usr/local/libexec/apache22/mod_antiloris.so: d2cba2c0472820391ceca40997ab0945bdd332cdefee6b33e1edc9bbb26aed7f
scripts:
  post-install: |
    /usr/local/sbin/apxs -e -A -n antiloris /usr/local/libexec/apache22/mod_antiloris.so
  pre-deinstall: |
    /usr/bin/sed -i '' -E '/LoadModule[[:blank:]]+antiloris_module/d' /usr/local/etc/apache22/httpd.conf
    echo "Don't forget to remove all mod_antiloris-related directives in your httpd.conf"
message: |2+

  The mod_antiloris configuration file has been installed here:

    /usr/local/etc/apache22/Includes/mod_antiloris.conf

  To activate the module:

         1. find the line bellow in file /usr/local/etc/apache22/httpd.conf,
            remove the hash sign (#) in front of it and save the file

            #LoadModule antiloris_module   libexec/apache2/mod_antiloris.so

         2. restart your Apache server

