Ticket #22325: Portfile

File Portfile, 2.0 KB (added by nefar@…, 15 years ago)
Line 
1# $Id:
2
3PortSystem 1.0
4name                sshguard-ipfw
5version             1.4
6categories          net security
7platforms           darwin
8maintainers         nefar@otherware.org
9
10description         Protects hosts from brute force attacks against ssh and other services using ipfw
11
12long_description    Sshguard monitors services from their logging activity. It \
13                    reacts to messages about dangerous activity by blocking the \
14                    source address with the local firewall. \
15                    \
16                    Sshguard employs a clever parser that can recognize several \
17                    logging formats at once transparently (syslog, syslog-ng, \
18                    metalog, multilog, raw messages), and detects attacks for \
19                    many services out of the box, including SSH, FreeBSD's ftpd \
20                    and dovecot.  It can operate all the major firewalling \
21                    systems, including PF, netfilter/iptables, IPFIREWALL/ipfw, \
22                    IPFILTER. \
23                    \
24                    Sshguard has several relevant features like support for \
25                    IPv6, whitelisting, suspension, log message authentication. \
26                    It is reliable, easy to set up and demands very few \
27                    resources to the system.
28
29distname            sshguard-${version}
30homepage            http://sshguard.sourceforge.net
31master_sites        sourceforge:sshguard
32checksums           md5     76ec42919089c51a64df1cd5caa27e08 \
33                    sha1    afd1134199ba41721b3d4032239529040e5dd367 \
34                    rmd160  1a34d29d8849ea279049a8eb24ddef839dafdbf7
35use_bzip2           yes
36configure.args      --with-ipfw=/sbin/ipfw --with-firewall=ipfw
37startupitem.create  yes
38startupitem.start "tail -n0 -F /var/log/secure.log | ${prefix}/sbin/sshguard 2>&1 > /dev/null &"
39startupitem.stop "ps wuax | grep sshguard | grep -v daemondo | grep -v grep | grep sshguard| kill `awk '{ print \$2}'`"