[120992] trunk/dports/net/hping3/Portfile

mf2k at macports.org mf2k at macports.org
Fri Jun 13 12:32:24 PDT 2014


Revision: 120992
          https://trac.macports.org/changeset/120992
Author:   mf2k at macports.org
Date:     2014-06-13 12:32:24 -0700 (Fri, 13 Jun 2014)
Log Message:
-----------
hping3: Build fix. Rename no_tcl variant to tcl per Macports standard. (#44004)

Modified Paths:
--------------
    trunk/dports/net/hping3/Portfile

Modified: trunk/dports/net/hping3/Portfile
===================================================================
--- trunk/dports/net/hping3/Portfile	2014-06-13 19:21:37 UTC (rev 120991)
+++ trunk/dports/net/hping3/Portfile	2014-06-13 19:32:24 UTC (rev 120992)
@@ -1,3 +1,4 @@
+# -*- 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$
 
 PortSystem 1.0
@@ -4,7 +5,7 @@
 
 name		hping3
 version		20051105
-revision	1
+revision	2
 categories	net security
 platforms       darwin
 maintainers	wohner.eu:normen
@@ -13,7 +14,7 @@
 long_description \
     hping is a command-line oriented TCP/IP packet assembler/analyzer. \
     The interface is inspired to the ping(8) unix command, but hping \
-    isn't only able to send ICMP echo requests. It supports TCP, UDP, \
+    is not only able to send ICMP echo requests. It supports TCP, UDP, \
     ICMP and RAW-IP protocols, has a traceroute mode, the ability to send \
     files between a covered channel, and many other features.
 
@@ -21,18 +22,14 @@
 master_sites	${homepage}
 
 checksums	sha1 e13d27e14e7f90c2148a9b00a480781732fd351e \
-		rmd160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540
+		    rmd160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540
 
-livecheck.type	regex
-livecheck.url	http://wiki.hping.org/18
-livecheck.regex	${master_sites}/${name}-(\[0-9a-z.\]+)${extract.suffix}
-
-depends_lib	port:tcl
-
 patchfiles	patch-Makefile.in.diff patch-libpcap_stuff.c.diff \
 		patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff \
-		patch-bytesex.h.diff
+		patch-bytesex.h.diff patch-gethostname.c.diff
 
+configure.args  --no-tcl
+
 post-configure {
     reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile
     reinplace "s#MANPATH=#MANPATH=${prefix}/share/man#g" \
@@ -43,6 +40,11 @@
     	      ${worksrcpath}/Makefile
 }
 
+variant universal {}
+
+build.args          CC=${configure.cc} \
+                    CCOPT="${configure.cflags} [get_canonical_archflags cc]"
+
 post-build {
     system "cd ${worksrcpath} && make strip"
 }
@@ -52,7 +54,13 @@
     file delete ${destroot}${prefix}/sbin/hping2
 }
 
-variant no_tcl description "Remove the Tcl scripting support" {
-    depends_lib-delete		port:tcl
-    configure.args-append	--no-tcl
+default_variants +tcl
+
+variant tcl description "Add the Tcl scripting support" {
+    depends_lib-append		port:tcl
+    configure.args-delete	--no-tcl
 }
+
+livecheck.type	regex
+livecheck.url	${homepage}/download.php
+livecheck.regex	${name}-(\[0-9a-z.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140613/77dd6dc4/attachment.html>


More information about the macports-changes mailing list