# $OpenBSD: Makefile,v 1.13 2018/09/04 12:46:21 espie Exp $

COMMENT=	protect against brute force attacks on sshd and others

DISTNAME=	sshguard-2.2.0
CATEGORIES=	security

HOMEPAGE=	https://www.sshguard.net/

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=sshguard/}

# BSD
PERMIT_PACKAGE_CDROM=	Yes

WANTLIB+=	c pthread

CONFIGURE_STYLE=simple
CONFIGURE_ARGS=	--sysconfdir="${SYSCONFDIR}" \
				--mandir="${TRUEPREFIX}/man"

NO_TEST=	Yes

post-patch:
	${SUBST_CMD} ${WRKSRC}/doc/sshguard.8 \
		${WRKSRC}/examples/sshguard.conf.sample

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sshguard
	${INSTALL_DATA} ${WRKSRC}/examples/*.{example,sample} \
		${PREFIX}/share/examples/sshguard

.include <bsd.port.mk>
