source: trunk/dports/security/sqlmap/Portfile

Last change on this file was 145009, checked in by khindenburg@…, 18 months ago

sqlmap: fully remove obsolete variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 145009 2016-01-23 19:57:59Z ryandesign@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
57variant python26 conflicts python27 description {Build for python26} {
58    python.default_version 26
59}
60variant python27 conflicts python26 description {Build for python27} {
61    python.default_version 27
62}
63if {    ![variant_isset python26]
64    &&  ![variant_isset python27]
65    } {
66    default_variants +python27
67}
Note: See TracBrowser for help on using the repository browser.