freebsd-ports/net/dshell/Makefile
MANTANI Nobutaka 9db74072ec net/dshell: Resurrect port and update to the snapshot on 2021-06-10.
This port was previously removed due to lack of Python 3 support.
Current version supports Python 3.
2021-10-10 23:11:06 +09:00

41 lines
1.2 KiB
Makefile

PORTNAME= dshell
PORTVERSION= 3.2.1.b.${SNAPDATE}
CATEGORIES= net
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= Extensible network forensic analysis framework
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bash:shells/bash \
${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}GeoIP2>0:net/py-GeoIP2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}netifaces>0:net/py-netifaces@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pcapy>0:net/py-pcapy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pypacker>0:net/py-pypacker@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}elasticsearch>0:textproc/py-elasticsearch@${PY_FLAVOR}
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= python
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
NO_ARCH= yes
GH_ACCOUNT= USArmyResearchLab
GH_PROJECT= Dshell
GH_TAGNAME= 502a546
SNAPDATE= 20210610
SUB_FILES= pkg-message
SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
post-patch:
${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \
-e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/scripts/dshell
${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' ${WRKSRC}/dshell/data/dshellrc
.include <bsd.port.mk>