mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
for pf in */*/Portfile
do
ed -s "$pf" <<-'EOF'
1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
1g/^[[:space:]]*$/d
w
q
EOF
done
27 lines
796 B
Plaintext
27 lines
796 B
Plaintext
PortSystem 1.0
|
|
|
|
name hping2
|
|
version rc3
|
|
revision 2
|
|
categories net
|
|
license GPL-2
|
|
maintainers nomaintainer
|
|
description a network tool
|
|
long_description a network tool able to send custom packets.
|
|
homepage http://www.hping.org/
|
|
platforms darwin
|
|
distfiles ${name}.0.0-${version}.tar.gz
|
|
master_sites ${homepage}
|
|
checksums md5 029bf240f2e0545b664b2f8b9118d9e8
|
|
patchfiles patch-Makefile.in patch-libpcap_stuff.c patch-ars.c patch-sendip.c patch-bytesex.h
|
|
post-build {
|
|
system "cd ${worksrcpath} && make strip"
|
|
}
|
|
post-configure {
|
|
reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" ${worksrcpath}/Makefile
|
|
reinplace "s|INSTALL_MANPATH=|INSTALL_MANPATH=${destroot}${prefix}/share/man|g" ${worksrcpath}/Makefile
|
|
}
|
|
post-destroot {
|
|
file delete ${destroot}${prefix}/sbin/hping
|
|
}
|