security/sqlmap: update to 1.0.4.19; switch to GH

This commit is contained in:
Ruslan Makhmatkhanov 2016-04-17 21:00:05 +00:00
parent 89d9398306
commit 5d35098c0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413542
4 changed files with 734 additions and 208 deletions

View File

@ -2,58 +2,58 @@
# $FreeBSD$
PORTNAME= sqlmap
PORTVERSION= 0.9
PORTREVISION= 2
PORTVERSION= 1.0.4.19
CATEGORIES= security python
MASTER_SITES= https://github.com/sqlmapproject/sqlmap/downloads/ \
SF
MAINTAINER= rm@FreeBSD.org
COMMENT= Automatic SQL injection tool
LICENSE= GPLv2
USES= python:2
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= ${PORTNAME}.sh
USE_GITHUB= yes
GH_TUPLE= sqlmapproject:sqlmap:aa21550
NO_ARCH= yes
USES= python:2.7 shebangfix
SHEBANG_FILES= *.py
SUB_FILES= sqlmap.sh
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
PATH=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}
PORTDOCS= AUTHORS ChangeLog README.html README.pdf THANKS
PATH=${PYTHONPREFIX_SITELIBDIR}/sqlmap
PORTDOCS= *
OPTIONS_DEFINE= MSF
MSF_DESC= Enable Metasploit Framework integration
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMSF}
RUN_DEPENDS+= ${LOCALBASE}/bin/msfcli:security/metasploit
.endif
post-patch:
(cd ${WRKSRC} && ${RM} -rf `${FIND} . -type d -name .svn`)
@${RM} -f ${WRKSRC}/lib/core/settings.py.orig
@${GREP} -lr '/usr/bin/env python' ${WRKSRC} | \
${XARGS} ${REINPLACE_CMD} -i "" \
-e "s!/usr/bin/env python!${PYTHON_CMD}!"
MSF_RUN_DEPENDS= msfcli:security/metasploit
do-build:
@${PYTHON_CMD} -m compileall ${WRKSRC}
@${PYTHON_CMD} -O -m compileall ${WRKSRC}
${MKDIR} ${WRKDIR}/build/extra/
${MV} ${WRKSRC}/doc/ ${WRKDIR}/build/
.for F in msfauxmod runcmd udfhack
${MV} ${WRKSRC}/extra/${F} ${WRKDIR}/build/extra/${F}
${MV} ${WRKSRC}/README.md ${WRKDIR}/build/doc/
${MV} ${WRKSRC}/sqlmap.conf ${WRKDIR}/build/
# remove development files
.for f in .gitattributes .gitignore .travis.yml
${RM} ${WRKSRC}/${f}
.endfor
# move non-python files out of WRKSRC
.for f in runcmd shellcodeexec
${MV} ${WRKSRC}/extra/${f} ${WRKDIR}/build/extra/${f}
.endfor
${MV} ${WRKSRC}/udf ${WRKDIR}/build/extra/
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKDIR}/build/doc/|} ${STAGEDIR}${DOCSDIR}
( cd ${WRKDIR}/build/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} )
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/extra
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sqlmap/extra
( cd ${WRKDIR}/build/extra/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} )
( cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/sqlmap )
${INSTALL_DATA} ${WRKSRC}/sqlmap.conf ${STAGEDIR}${PREFIX}/etc/sqlmap.conf-dist
${INSTALL_DATA} ${WRKDIR}/build/sqlmap.conf ${STAGEDIR}${PREFIX}/etc/sqlmap.conf.sample
${INSTALL_SCRIPT} ${WRKDIR}/sqlmap.sh ${STAGEDIR}${PREFIX}/bin/sqlmap
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (sqlmap-0.9.tar.gz) = 9c76666d0555620329d949aca87571825adb8fcda9cd564e6410e1d2b6228c55
SIZE (sqlmap-0.9.tar.gz) = 6216924
SHA256 (sqlmapproject-sqlmap-1.0.4.19-aa21550_GH0.tar.gz) = da88388efca67a8aae1da348613df632b6c4528696c3047794c601a193bcbe28
SIZE (sqlmapproject-sqlmap-1.0.4.19-aa21550_GH0.tar.gz) = 6700105

View File

@ -1,11 +0,0 @@
--- ./lib/core/settings.py.orig 2011-04-11 04:23:42.000000000 +0400
+++ ./lib/core/settings.py 2012-10-03 23:09:17.000000000 +0400
@@ -18,7 +18,7 @@
# sqlmap version and site
VERSION = "0.9"
-REVISION = getRevisionNumber()
+REVISION = 3630
VERSION_STRING = "sqlmap/%s" % VERSION
DESCRIPTION = "automatic SQL injection and database takeover tool"
SITE = "http://sqlmap.sourceforge.net"

File diff suppressed because it is too large Load Diff