source: trunk/dports/net/hping3/Portfile

Last change on this file was 129496, checked in by khindenburg@…, 3 years ago

hping3: add license and depends; use newer checksums; use -W instead of cd #46085

  • 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 129496 2014-12-14 15:10:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                hping3
7version             20051105
8revision            2
9categories          net security
10platforms           darwin
11maintainers         wohner.eu:normen
12license             GPL-2 MIT
13
14description         hping is a command-line oriented TCP/IP packet assembler/analyzer
15long_description \
16    hping is a command-line oriented TCP/IP packet assembler/analyzer. \
17    The interface is inspired to the ping(8) unix command, but hping \
18    is not only able to send ICMP echo requests. It supports TCP, UDP, \
19    ICMP and RAW-IP protocols, has a traceroute mode, the ability to send \
20    files between a covered channel, and many other features.
21
22homepage            http://www.hping.org
23master_sites        ${homepage}
24
25depends_lib         port:libpcap
26
27checksums           rmd160  e4ec209228b5cb99e2d561c5a7b1c82ff8abe540 \
28                    sha256  f5a671a62a11dc8114fa98eade19542ed1c3aa3c832b0e572ca0eb1a5a4faee8
29
30patchfiles          patch-Makefile.in.diff patch-libpcap_stuff.c.diff \
31                    patch-script.c.diff patch-sendip.c.diff patch-ars.c.diff \
32                    patch-bytesex.h.diff patch-gethostname.c.diff
33
34configure.args      --no-tcl
35
36post-configure {
37    reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile
38    reinplace "s#MANPATH=#MANPATH=${prefix}/share/man#g" \
39              ${worksrcpath}/Makefile
40    reinplace "s#INSTALL_PATH=#INSTALL_PATH=${destroot}${prefix}#g" \
41              ${worksrcpath}/Makefile
42    reinplace "s#INSTALL_MANPATH=#INSTALL_MANPATH=${destroot}#g" \
43              ${worksrcpath}/Makefile
44}
45
46variant universal {}
47
48build.args          CC=${configure.cc} \
49                    CCOPT="${configure.cflags} [get_canonical_archflags cc]"
50
51post-build {
52    system -W ${worksrcpath} "make strip"
53}
54
55post-destroot {
56    file delete ${destroot}${prefix}/sbin/hping
57    file delete ${destroot}${prefix}/sbin/hping2
58}
59
60default_variants +tcl
61
62variant tcl description "Add the Tcl scripting support" {
63    depends_lib-append      port:tcl
64    configure.args-delete   --no-tcl
65}
66
67livecheck.type      regex
68livecheck.url       ${homepage}/download.php
69livecheck.regex     ${name}-(\[0-9a-z.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.