Files
2025-09-28 08:49:05 +00:00

38 lines
932 B
Makefile

COMMENT= Windows Exploit Suggester - Next Generation
MODPY_DISTV= 1.0.3
DISTNAME= wesng-${MODPY_DISTV}
# definitions.zip isn't in the pypi release, and is updated frequently;
# fetch it from upstream's github repo instead
DEF_DATE= 20250926
DEF_COMMITHASH= 09c2e325dc6adcafbc957552bbb79abebd07a167
HOMEPAGE= https://github.com/bitsadmin/wesng
CATEGORIES= security
# BSD
PERMIT_PACKAGE= Yes
MODULES= lang/python
MODPY_PI= yes
MODPY_PYBUILD= setuptools
RUN_DEPENDS= textproc/py-chardet \
graphics/py-termcolor
DISTFILES= ${DISTNAME}.tar.gz
DISTFILES.d = definitions-${DEF_DATE}{definitions}.zip
SITES.d= https://github.com/bitsadmin/wesng/raw/${DEF_COMMITHASH}/
EXTRACT_ONLY= ${DISTFILES}
pre-configure:
${SUBST_CMD} ${WRKSRC}/wes.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/wesng/
${INSTALL_DATA} ${FULLDISTDIR}/definitions-${DEF_DATE}.zip \
${PREFIX}/share/wesng/definitions.zip
.include <bsd.port.mk>