Gentoo

Installation
This is only a short summary about a gentoo installation. For a more detailed documentation go to: Gentoo Handbook.

SSD TRIM
To enable TRIM just add  to the   options.

/dev/sda3              /               ext4            noatime,discard 0 1

fail2ban

 * 1) emerge -av fail2ban

It will automatically install net-misc/whois, net-firewall/iptables, and net-analyzer/fail2ban.


 * 1) rc-service fail2ban start
 * 2) rc-update add fail2ban default

For more information about fail2ban see: Gentoo fail2ban documentation

logrotate
Logrotate is simple to implement. Just emerge it and all should be done automatically (if use flags are set right).
 * 1) emerge -av logrotate

There should be a config file for each logging service installed (ex. syslog-ng, apache, mysql, ...)

For more information about logrotate see: Gentoo logrotate documentation

apache2
DRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFT DRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFT See apache2 for configuration.
 * 1) emerge -av apache2

nginx
DRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFT DRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFTDRAFT See nginx for configutation.
 * 1) emerge -av nginx

bind
See: Bind9

Or the Gentoo Bind9 Turtorial for Gentoo specific stuff.