diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-10-03 20:01:09 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-10-03 20:01:09 +0000 |
commit | e791395a8204d2aafd54c0ed2455310ac6d8d3e9 (patch) | |
tree | 1490af06d19fa574edd7027e984f10bbfc93cc38 /security/sqlmap | |
parent | 4729e1f397e98ab9d5888da92b478a44c0242649 (diff) | |
download | ports-e791395a8204d2aafd54c0ed2455310ac6d8d3e9.tar.gz ports-e791395a8204d2aafd54c0ed2455310ac6d8d3e9.zip |
Notes
Diffstat (limited to 'security/sqlmap')
-rw-r--r-- | security/sqlmap/Makefile | 17 | ||||
-rw-r--r-- | security/sqlmap/files/patch-lib_core-settings.py | 11 |
2 files changed, 19 insertions, 9 deletions
diff --git a/security/sqlmap/Makefile b/security/sqlmap/Makefile index 1bddae9384a7..a6378dcecadf 100644 --- a/security/sqlmap/Makefile +++ b/security/sqlmap/Makefile @@ -1,18 +1,15 @@ -# New ports collection makefile for: sqlmap -# Date created: 2008-05-21 -# Whom: Tomoyuki Sakurai <cherry@trombik.org> -# +# Created by: Tomoyuki Sakurai <cherry@trombik.org> # $FreeBSD$ -# PORTNAME= sqlmap PORTVERSION= 0.9 +PORTREVISION= 1 CATEGORIES= security python MASTER_SITES= https://github.com/sqlmapproject/sqlmap/downloads/ \ SF MAINTAINER= rm@FreeBSD.org -COMMENT= An automatic SQL injection tool +COMMENT= Automatic SQL injection tool LICENSE= GPLv2 @@ -23,16 +20,18 @@ SUB_FILES= ${PORTNAME}.sh SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \ PATH=${PYTHONPREFIX_SITELIBDIR}/${PORTNAME} -OPTIONS= MSF "Enable Metasploit Framework integration" off +OPTIONS_DEFINE= MSF +MSF_DESC= Enable Metasploit Framework integration .include <bsd.port.options.mk> -.if defined(WITH_MSF) +.if ${PORT_OPTIONS:MMSF} RUN_DEPENDS+= ${LOCALBASE}/bin/msfcli:${PORTSDIR}/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}!" @@ -47,7 +46,7 @@ do-build: .endfor do-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} .for F in AUTHORS ChangeLog README.html README.pdf THANKS ${INSTALL_DATA} ${WRKDIR}/build/doc/${F} ${DOCSDIR}/ diff --git a/security/sqlmap/files/patch-lib_core-settings.py b/security/sqlmap/files/patch-lib_core-settings.py new file mode 100644 index 000000000000..f4d2b8e3c663 --- /dev/null +++ b/security/sqlmap/files/patch-lib_core-settings.py @@ -0,0 +1,11 @@ +--- ./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" |