source: trunk/dports/security/sqlmap/Portfile @ 98787

Last change on this file since 98787 was 98787, checked in by pixilla@…, 7 years ago

security/sqlmap:

  • New port sqlmap version 0.9.
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 98787 2012-10-15 23:16:30Z pixilla@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                sqlmap
8version             0.9
9set branch          [join [lrange [split ${version} .] 0 1] .]
10categories          security databases python
11maintainers         pixilla openmaintainer
12platforms           darwin
13license             GPL-2
14
15description         sqlmap is an open source penetration testing tool.
16long_description    sqlmap is an open source penetration testing tool that automates the \
17                    process of detecting and exploiting SQL injection flaws and taking over \
18                    of database servers. It comes with a powerful detection engine, many \
19                    niche features for the ultimate penetration tester and a broad range of \
20                    switches lasting from database fingerprinting, over data fetching from \
21                    the database, to accessing the underlying file system and executing \
22                    commands on the operating system via out-of-band connections.
23
24homepage            http://sqlmap.sourceforge.net/
25master_sites        sourceforge
26
27checksums           rmd160  5a6a737157cda4ffe9c6fd326d9fa39f0a0bfe59 \
28                    sha256  9c76666d0555620329d949aca87571825adb8fcda9cd564e6410e1d2b6228c55
29
30worksrcdir          ${name}
31python.link_binaries no
32
33post-patch {
34    fs-traverse f ${worksrcpath} {
35        switch [file extension ${f}] {
36            .svn {
37                delete ${f}
38                continue
39            }
40            .py {
41                reinplace "s|^#! */usr/bin/env python\$|#!${python.bin}|" ${f}
42            }
43        }
44    }
45}
46build {
47    system "${python.bin} -m compileall ${worksrcpath}"
48    system "${python.bin} -O -m compileall ${worksrcpath}"
49}
50destroot {
51    delete ${destroot}${prefix}/share/doc/${name}
52    xinstall -d ${destroot}${python.pkgd}
53    copy ${worksrcpath} ${destroot}${python.pkgd}/
54}
55
56variant python25 conflicts python26 python27 description {Build for python25} {
57    python.default_version 25
58}
59variant python26 conflicts python25 python27 description {Build for python26} {
60    python.default_version 26
61}
62variant python27 conflicts python25 python26 description {Build for python27} {
63    python.default_version 27
64}
65if {    ![variant_isset python25]
66    &&  ![variant_isset python26]
67    &&  ![variant_isset python27]
68    } {
69    default_variants +python27
70}
Note: See TracBrowser for help on using the repository browser.