# -*- 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 # $Id: Portfile 113683 2013-11-23 02:18:18Z ryandesign@macports.org $ PortSystem 1.0 name sqlninja version 0.2.6-r1 revision 0 categories security net platforms darwin maintainers yahoo.fr:jul_bsd openmaintainer license GPL3 description exploit SQL Injection vulnerabilities on a web application that uses Microsoft SQL Server as its back-end. long_description ${description} homepage http://sqlninja.sourceforge.net/ master_sites sourceforge extract.suffix .tgz if {${subport} eq ${name}} { checksums rmd160 1313f381e302da64cb6f9a9b1ec86bd842412129 \ sha256 7f8e9103d3fe58eb6e6f1476474589f7e5ca501703a82ae5299bd7a708342bc5 } subport ${name}-devel { version 0.2.999-alpha1 checksums rmd160 68a5ccbf3e301ca12b970c485b0ee2a309336caa \ sha256 cd1e51434fdbe8900fbfb117b753e390415a1821b0b917812f1f6040ab55f9d6 } use_configure no build {} destroot { xinstall -m 755 ${worksrcpath}/sqlninja ${destroot}${prefix}/bin/sqlninja xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/ xinstall -m 644 ${worksrcpath}/sqlninja-howto.html ${destroot}${prefix}/share/doc/${name}/ xinstall -d ${destroot}${prefix}/share/examples/${name} copy ${worksrcpath}/scripts ${destroot}${prefix}/share/examples/${name}/ copy ${worksrcpath}/sources ${destroot}${prefix}/share/examples/${name}/ ## stable if [file exists ${worksrcpath}/sqlninja.conf.example ] { xinstall -m 644 ${worksrcpath}/sqlninja.conf.example ${destroot}${prefix}/share/examples/${name}/ } ## devel if [file exists ${worksrcpath}/sqlninja.conf ] { xinstall -m 644 ${worksrcpath}/sqlninja.conf ${destroot}${prefix}/share/examples/${name}/ } } default_variants +perl5_16 variant perl5_16 conflicts perl5_18 description { use perl 5.16} { depends_lib port:p5.16-netpacket port:p5.16-net-pcap port:p5.16-net-dns \ port:p5.16-net-rawip port:p5.16-io-socket-ssl \ port:p5.16-dbi post-destroot { reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5.16|" ${destroot}${prefix}/bin/sqlninja } } variant perl5_18 conflicts perl5_16 description { use perl 5.18} { depends_lib port:p5.18-netpacket port:p5.18-net-pcap port:p5.18-net-dns \ port:p5.18-net-rawip port:p5.18-io-socket-ssl \ port:p5.18-dbi post-destroot { reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5.18|" ${destroot}${prefix}/bin/sqlninja } } livecheck.type regex livecheck.url ${homepage}/download.html livecheck.regex "(\\d+\.\\d+\.\\d+-.*)"