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

Last change on this file since 130984 was 130984, checked in by larryv@…, 5 years ago

sqlmap: Replace +python25 with +python27

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