Ticket #40763: patch-hping3-Portfile.diff
File patch-hping3-Portfile.diff, 1.8 KB (added by jul_bsd@…, 10 years ago) |
---|
-
net/hping3/Portfile
old new 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 1 2 # $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name hping3 6 7 version 20051105 7 revision 18 revision 2 8 9 categories net security 9 10 platforms darwin 10 11 maintainers pmq … … 23 24 checksums sha1 e13d27e14e7f90c2148a9b00a480781732fd351e \ 24 25 rmd160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540 25 26 26 livecheck.type regex27 livecheck.url http://wiki.hping.org/1828 livecheck.regex ${master_sites}/${name}-(\[0-9a-z.\]+)${extract.suffix}29 30 27 depends_lib port:tcl 31 28 32 29 patchfiles patch-Makefile.in.diff patch-libpcap_stuff.c.diff \ 33 30 patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff \ 34 patch-bytesex.h.diff 31 patch-bytesex.h.diff patch-gethostname.c.diff 32 33 configure.args --no-tcl 35 34 36 35 post-configure { 37 36 reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile … … 43 42 ${worksrcpath}/Makefile 44 43 } 45 44 45 variant universal {} 46 47 build.args CC=${configure.cc} \ 48 CCOPT="${configure.cflags} [get_canonical_archflags cc]" 49 46 50 post-build { 47 51 system "cd ${worksrcpath} && make strip" 48 52 } … … 52 56 file delete ${destroot}${prefix}/sbin/hping2 53 57 } 54 58 55 variant no_tcl description "Remove the Tcl scripting support" { 56 depends_lib-delete port:tcl 57 configure.args-append --no-tcl 59 default_variants +tcl 60 61 variant tcl description "Add the Tcl scripting support" { 62 depends_lib-append port:tcl 63 configure.args-delete --no-tcl 58 64 } 65 66 livecheck.type regex 67 livecheck.url ${homepage}/download.php 68 livecheck.regex ${name}-(\[0-9a-z.\]+)${extract.suffix} 69