Files
ports/security/denyhosts/Makefile
T
Po-Chuan Hsieh f76cd2c801 security/denyhosts: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
2024-03-23 22:30:47 +08:00

43 lines
1.3 KiB
Makefile

PORTNAME= denyhosts
PORTVERSION= 3.1.2
PORTREVISION= 1
CATEGORIES= security
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
MASTER_SITES= https://github.com/denyhosts/denyhosts/releases/download/v${PORTVERSION:R}/
DISTNAME= DenyHosts-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Script to thwart ssh and imap attacks
WWW= https://github.com/denyhosts/denyhosts
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:devel/py-ipaddr@${PY_FLAVOR}
USES= cpe python shebangfix
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
USE_RC_SUBR= denyhosts
PLIST_FILES= "@sample etc/denyhosts.conf.sample"
SUB_FILES= pkg-message
SUB_LIST= PYTHON=${PYTHON_CMD}
SHEBANG_FILES= daemon-control-dist \
plugins/test_deny.py \
scripts/restricted_from_invalid.py \
scripts/restricted_from_passwd.py
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/daemon-control-dist ${WRKSRC}/denyhosts.conf ${WRKSRC}/setup.py
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' ${WRKSRC}/daemon-control-dist
post-install:
${INSTALL_DATA} ${WRKSRC}/denyhosts.conf ${STAGEDIR}${PREFIX}/etc/denyhosts.conf.sample
.include <bsd.port.mk>