1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/security/denyhosts/Makefile
Yuri Victorovich d953541d5c security/denyhosts: Unbreak by fixing shebang
Another file needed daemon-control-dist.
Also added NO_ARCH.

Approved by:	portmgr (port compliance, infrastructure)
2018-03-14 06:11:13 +00:00

47 lines
1.2 KiB
Makefile

# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
# $FreeBSD$
PORTNAME= denyhosts
PORTVERSION= 2.6
PORTREVISION= 7
CATEGORIES= security
MASTER_SITES= SF
DISTNAME= DenyHosts-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Script to thwart ssh attacks
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS
USES= cpe python:2.7 shebangfix
REINPLACE_ARGS= -i ''
USE_PYTHON= autoplist distutils
USE_RC_SUBR= denyhosts
CPE_VENDOR= phil_schwartz
NO_ARCH= yes
PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt
SUB_FILES= pkg-message
SUB_LIST= PYTHON=${PYTHON_CMD}
SHEBANG_LANG= env
SHEBANG_FILES= daemon-control-dist \
plugins/test_deny.py \
scripts/restricted_from_invalid.py \
scripts/restricted_from_passwd.py
env_OLD_CMD= /bin/env
env_CMD= ${SETENV}
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/daemon-control-dist ${WRKSRC}/denyhosts.cfg-dist ${WRKSRC}/setup.py
@${FIND} ${WRKSRC} -type f -name '*.bak' -o -name '*.orig' -delete
post-install:
${INSTALL_DATA} ${WRKSRC}/denyhosts.cfg-dist ${STAGEDIR}${PREFIX}/etc/denyhosts.conf.sample
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>