mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
23367d56b0
- Convert PYDISTUTILS_AUTOPLIST and USE_PYDISTUTILS to USE_PYTHON - Remove python from SHEBANG_LANG - Add REINPLACE_ARGS - Move .bak/.orig removal from pre-install: to post-patch: - Use @sample - Bump PORTREVISION for package change - Take maintainership
44 lines
1.1 KiB
Makefile
44 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= python:2 shebangfix
|
|
|
|
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>
|