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 113683 2013-11-23 02:18:18Z ryandesign@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sqlninja |
---|
7 | version 0.2.6-r1 |
---|
8 | revision 0 |
---|
9 | categories security net |
---|
10 | platforms darwin |
---|
11 | maintainers yahoo.fr:jul_bsd openmaintainer |
---|
12 | license GPL3 |
---|
13 | |
---|
14 | description exploit SQL Injection vulnerabilities on a web application that uses Microsoft SQL Server as its back-end. |
---|
15 | |
---|
16 | long_description ${description} |
---|
17 | |
---|
18 | homepage http://sqlninja.sourceforge.net/ |
---|
19 | master_sites sourceforge |
---|
20 | extract.suffix .tgz |
---|
21 | |
---|
22 | if {${subport} eq ${name}} { |
---|
23 | |
---|
24 | checksums rmd160 1313f381e302da64cb6f9a9b1ec86bd842412129 \ |
---|
25 | sha256 7f8e9103d3fe58eb6e6f1476474589f7e5ca501703a82ae5299bd7a708342bc5 |
---|
26 | |
---|
27 | } |
---|
28 | |
---|
29 | subport ${name}-devel { |
---|
30 | |
---|
31 | version 0.2.999-alpha1 |
---|
32 | checksums rmd160 68a5ccbf3e301ca12b970c485b0ee2a309336caa \ |
---|
33 | sha256 cd1e51434fdbe8900fbfb117b753e390415a1821b0b917812f1f6040ab55f9d6 |
---|
34 | } |
---|
35 | |
---|
36 | use_configure no |
---|
37 | build {} |
---|
38 | |
---|
39 | destroot { |
---|
40 | xinstall -m 755 ${worksrcpath}/sqlninja ${destroot}${prefix}/bin/sqlninja |
---|
41 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
42 | xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/ |
---|
43 | xinstall -m 644 ${worksrcpath}/sqlninja-howto.html ${destroot}${prefix}/share/doc/${name}/ |
---|
44 | xinstall -d ${destroot}${prefix}/share/examples/${name} |
---|
45 | copy ${worksrcpath}/scripts ${destroot}${prefix}/share/examples/${name}/ |
---|
46 | copy ${worksrcpath}/sources ${destroot}${prefix}/share/examples/${name}/ |
---|
47 | ## stable |
---|
48 | if [file exists ${worksrcpath}/sqlninja.conf.example ] { |
---|
49 | xinstall -m 644 ${worksrcpath}/sqlninja.conf.example ${destroot}${prefix}/share/examples/${name}/ |
---|
50 | } |
---|
51 | ## devel |
---|
52 | if [file exists ${worksrcpath}/sqlninja.conf ] { |
---|
53 | xinstall -m 644 ${worksrcpath}/sqlninja.conf ${destroot}${prefix}/share/examples/${name}/ |
---|
54 | } |
---|
55 | } |
---|
56 | |
---|
57 | default_variants +perl5_16 |
---|
58 | |
---|
59 | variant perl5_16 conflicts perl5_18 description { use perl 5.16} { |
---|
60 | depends_lib port:p5.16-netpacket port:p5.16-net-pcap port:p5.16-net-dns \ |
---|
61 | port:p5.16-net-rawip port:p5.16-io-socket-ssl \ |
---|
62 | port:p5.16-dbi |
---|
63 | post-destroot { |
---|
64 | reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5.16|" ${destroot}${prefix}/bin/sqlninja |
---|
65 | } |
---|
66 | } |
---|
67 | |
---|
68 | variant perl5_18 conflicts perl5_16 description { use perl 5.18} { |
---|
69 | depends_lib port:p5.18-netpacket port:p5.18-net-pcap port:p5.18-net-dns \ |
---|
70 | port:p5.18-net-rawip port:p5.18-io-socket-ssl \ |
---|
71 | port:p5.18-dbi |
---|
72 | post-destroot { |
---|
73 | reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5.18|" ${destroot}${prefix}/bin/sqlninja |
---|
74 | } |
---|
75 | } |
---|
76 | |
---|
77 | |
---|
78 | livecheck.type regex |
---|
79 | livecheck.url ${homepage}/download.html |
---|
80 | livecheck.regex "(\\d+\.\\d+\.\\d+-.*)</a></h3>" |
---|