45 lines
1.8 KiB
Makefile
45 lines
1.8 KiB
Makefile
PORTNAME= cowrie
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.0.4
|
|
CATEGORIES= security python
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Cowrie SSH/Telnet honeypot
|
|
WWW= https://www.cowrie.org/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/docs/LICENSE.rst
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
${PYTHON_PKGNAMEPREFIX}attrs>=26.1.0:devel/py-attrs@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}bcrypt>=5.0.0:security/py-bcrypt@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cryptography>=48.0.1:security/py-cryptography@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}hyperlink>=21.0.0:www/py-hyperlink@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}idna>=3.16:dns/py-idna@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}packaging>=26.2:devel/py-packaging@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyasn1-modules>0:devel/py-pyasn1-modules@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}requests>=2.32.5:www/py-requests@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}service-identity>=24.2.0:security/py-service-identity@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}treq>0:www/py-treq@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}twisted>0:devel/py-twisted@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}urllib3>=2.7.0:net/py-urllib3@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_GITHUB= yes
|
|
USE_PYTHON= pep517 cryptography autoplist noflavors
|
|
|
|
MAKE_ENV= SETUPTOOLS_SCM_PRETEND_VERSION="${PORTVERSION}"
|
|
|
|
CONFLICTS_INSTALL= py*-asciinema # bin/asciinema
|
|
|
|
NO_ARCH= yes
|
|
|
|
post-patch: # in pyproject.toml patch first == into >= to avoid deps failures due to exact version requirements
|
|
@${REINPLACE_CMD} -e 's/==/>=/' ${WRKSRC}/pyproject.toml
|
|
|
|
.include <bsd.port.mk>
|