02d7efe6e5
While here, break some long lines, Use INSTALL_DATA to install sample config file since it's not supposed to be changed and re-generate patches using `make makepatch` PR: 230861 Approved by: maintainer timeout (> 1 month) Obtained from: pfSense Sponsored by: Rubicon Communications, LLC (Netgate)
31 lines
706 B
Makefile
31 lines
706 B
Makefile
# Created by: Mij <mij@bitchx.it>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sshguard
|
|
PORTVERSION= 2.2.0
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/sshguard/sshguard/${PORTVERSION}
|
|
|
|
MAINTAINER= dan.mcgregor@usask.ca
|
|
COMMENT= Protect hosts from brute-force attacks against SSH and other services
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USE_RC_SUBR= sshguard
|
|
GNU_CONFIGURE= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%PREFIX%|${PREFIX}|' \
|
|
${WRKSRC}/doc/sshguard.8.rst
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
|
|
${WRKSRC}/examples/sshguard.conf.sample
|
|
|
|
post-install:
|
|
${INSTALL} -d ${STAGEDIR}${PREFIX}/etc
|
|
${INSTALL_DATA} ${WRKSRC}/examples/sshguard.conf.sample \
|
|
${STAGEDIR}${PREFIX}/etc
|
|
|
|
.include <bsd.port.mk>
|