New package: pchar-1.5

This commit is contained in:
Christian Neukirchen 2014-08-25 02:52:52 +02:00
parent 49e7222aae
commit b3d474a9a4
4 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- PctestIpv4Udp.cc.t 2008-03-13 12:32:02.312337354 -0700
+++ PctestIpv4Udp.cc 2008-03-13 12:32:19.682770489 -0700
@@ -49,7 +49,7 @@
return socketOut;
}
-#ifdef linux
+#if defined(linux) && defined(SO_BSDCOMPAT)
// Linux needs SO_BSDCOMPAT enabled on our UDP socket, to avoid
// getting ICMP errors when we send packets out.
int bsdcompatOption;

View file

@ -0,0 +1,11 @@
--- PctestIpv4Raw.cc.t 2008-03-13 12:33:16.058194372 -0700
+++ PctestIpv4Raw.cc 2008-03-13 12:33:37.708748679 -0700
@@ -101,7 +101,7 @@
return rc;
}
-#ifdef linux
+#if defined(linux) && defined(SO_BSDCOMPAT)
// Linux needs SO_BSDCOMPAT enabled on our UDP socket, to avoid
// getting ICMP errors when we send packets out.
int bsdcompatOption;

View file

@ -0,0 +1,11 @@
--- PctestIpv6Udp.cc.t 2008-03-13 12:34:41.350681733 -0700
+++ PctestIpv6Udp.cc 2008-03-13 12:34:52.625368131 -0700
@@ -73,7 +73,7 @@
return socketOut;
}
-#ifdef linux
+#if defined(linux) && defined(SO_BSDCOMPAT)
// Linux needs SO_BSDCOMPAT enabled on our UDP socket, to avoid
// getting ICMP errors when we send packets out.
int bsdcompatOption;

21
srcpkgs/pchar/template Normal file
View file

@ -0,0 +1,21 @@
# Template file for 'pchar'
pkgname=pchar
version=1.5
revision=1
build_style=gnu-configure
short_desc="Perform network measurements along an Internet path"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="custom"
homepage="http://www.kitchenlab.org/www/bmah/Software/pchar/"
distfiles="http://www.kitchenlab.org/www/bmah/Software/pchar/${pkgname}-${version}.tar.gz"
checksum=7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27
do_install() {
vbin pchar
vman pchar.8
vdoc README
vdoc CHANGES
vdoc FAQ
sed -n '/DISCLAIMER/,$p' README >LICENSE
vlicense LICENSE
}