if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
36 lines
760 B
Makefile
36 lines
760 B
Makefile
# $OpenBSD: Makefile,v 1.36 2021/02/23 19:39:39 sthen Exp $
|
|
|
|
COMMENT = penetration testing tool to detect/exploit SQL injection
|
|
|
|
GH_ACCOUNT = sqlmapproject
|
|
GH_PROJECT = sqlmap
|
|
GH_TAGNAME = 1.5
|
|
|
|
CATEGORIES = security
|
|
|
|
HOMEPAGE = http://sqlmap.org/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_ADJ_FILES = sqlmap.py
|
|
|
|
# NO_BUILD but needs ${MODPY_LIBDIR}/compileall.py
|
|
BUILD_DEPENDS += ${_MODPY_BUILD_DEPENDS}
|
|
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
|
|
INSTDIR = ${PREFIX}/share/sqlmap
|
|
|
|
do-install:
|
|
cp -r ${WRKDIST} ${INSTDIR}
|
|
rm ${INSTDIR}/{.{gitattributes,gitignore},README.md}
|
|
rm -rf ${INSTDIR}/doc
|
|
ln -s ${TRUEPREFIX}/share/sqlmap/sqlmap.py ${PREFIX}/bin/sqlmap
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py ${INSTDIR}
|
|
|
|
.include <bsd.port.mk>
|