1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/security/denyhosts/Makefile
Dmitry Marakasov c13db80c72 - Add CPE info
Approved by:	portmgr blanket
2015-04-23 20:16:47 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Janos Mohacsi <janos.mohacsi@bsd.hu>
# $FreeBSD$
PORTNAME= denyhosts
PORTVERSION= 2.6
PORTREVISION= 6
CATEGORIES= security
MASTER_SITES= SF
DISTNAME= DenyHosts-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Script to thwart ssh attacks
LICENSE= GPLv2
OPTIONS_DEFINE= DOCS
REINPLACE_ARGS= -i ''
USE_PYTHON= autoplist distutils
USE_RC_SUBR= denyhosts
USES= cpe python:2 shebangfix
CPE_VENDOR= phil_schwartz
PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt
SUB_FILES= pkg-message
SUB_LIST= PYTHON=${PYTHON_CMD}
SHEBANG_LANG= env
SHEBANG_FILES= 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>