Lines 2-63
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= sshguard |
4 |
PORTNAME= sshguard |
5 |
PORTVERSION= 1.7.1 |
5 |
PORTVERSION= 2.0.0 |
6 |
PORTREVISION= 0 |
|
|
7 |
CATEGORIES= security |
6 |
CATEGORIES= security |
8 |
MASTER_SITES= SF/sshguard/sshguard/${PORTVERSION} |
7 |
MASTER_SITES= SF/sshguard/sshguard/${PORTVERSION} |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT?= Protect hosts from brute force attacks against ssh and other services |
10 |
COMMENT= Protect hosts from brute force attacks against ssh and other services |
12 |
|
|
|
13 |
SSHGUARDFW?= none |
14 |
|
15 |
# If SSHGUARDFW is not set by a slave port, then we only use the |
16 |
# following which makes this a metaport to choose a backend |
17 |
.if ${SSHGUARDFW} == none |
18 |
NO_BUILD=YES |
19 |
NO_INSTALL=YES |
20 |
NO_ARCH=YES |
21 |
|
22 |
OPTIONS_SINGLE= BACKEND |
23 |
OPTIONS_SINGLE_BACKEND= IPFW NULL PF |
24 |
OPTIONS_DEFAULT= IPFW |
25 |
|
26 |
IPFW_DESC= IPFW firewall backend |
27 |
NULL_DESC= null firewall backend (detection only) |
28 |
PF_DESC= pf firewall backend |
29 |
|
30 |
IPFW_RUN_DEPENDS= sshguard-ipfw>0:security/sshguard-ipfw |
31 |
NULL_RUN_DEPENDS= sshguard-null>0:security/sshguard-null |
32 |
PF_RUN_DEPENDS= sshguard-pf>0:security/sshguard-pf |
33 |
|
34 |
.include <bsd.port.options.mk> |
35 |
|
36 |
# The remaining settings are used by the slave ports |
37 |
.else |
38 |
|
11 |
|
39 |
LICENSE= BSD2CLAUSE |
12 |
LICENSE= BSD2CLAUSE |
40 |
|
13 |
|
41 |
USES= autoreconf |
14 |
USES= autoreconf |
42 |
|
15 |
|
43 |
PLIST_FILES= libexec/sshg-fw libexec/sshg-logtail libexec/sshg-parser \ |
|
|
44 |
sbin/sshguard man/man8/sshguard.8.gz |
45 |
|
46 |
USE_RC_SUBR= sshguard |
16 |
USE_RC_SUBR= sshguard |
47 |
MAKE_ARGS+= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" |
17 |
MAKE_ARGS+= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" |
48 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
49 |
CONFIGURE_ARGS+=--with-firewall=${SSHGUARDFW} |
19 |
|
50 |
|
20 |
post-patch: |
51 |
SUB_LIST+= PKGMSG_FWBLOCK=${PKGMSG_FWBLOCK} |
21 |
@${REINPLACE_CMD} -e 's|%PREFIX%|${PREFIX}|' ${WRKSRC}/doc/sshguard.8.rst |
52 |
SUB_FILES= pkg-message |
22 |
|
53 |
.endif |
23 |
post-install: |
54 |
|
24 |
${INSTALL} -d ${STAGEDIR}${PREFIX}/etc |
55 |
.if ${SSHGUARDFW} == pf |
25 |
${INSTALL} -m 644 ${WRKSRC}/examples/sshguard.conf.sample ${STAGEDIR}${PREFIX}/etc |
56 |
PKGMSG_FWBLOCK=" To activate or configure PF see http://www.sshguard.net/docs/setup/firewall/pf/" |
|
|
57 |
.elif ${SSHGUARDFW} == ipfw |
58 |
PKGMSG_FWBLOCK=" IPFW support has been rewritten. Sshguard will now add entries to table 22." |
59 |
.elif ${SSHGUARDFW} == null |
60 |
PKGMSG_FWBLOCK=" Sshguard null backend does detection only. It does not take action." |
61 |
.endif |
62 |
|
26 |
|
63 |
.include <bsd.port.mk> |
27 |
.include <bsd.port.mk> |