diff --git a/srcpkgs/pchar/patches/no-SO_BSDCOMPAT b/srcpkgs/pchar/patches/no-SO_BSDCOMPAT new file mode 100644 index 00000000000..2f17b194b18 --- /dev/null +++ b/srcpkgs/pchar/patches/no-SO_BSDCOMPAT @@ -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; diff --git a/srcpkgs/pchar/patches/no-SO_BSDCOMPAT-2 b/srcpkgs/pchar/patches/no-SO_BSDCOMPAT-2 new file mode 100644 index 00000000000..3b0de687a98 --- /dev/null +++ b/srcpkgs/pchar/patches/no-SO_BSDCOMPAT-2 @@ -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; diff --git a/srcpkgs/pchar/patches/no-SO_BSDCOMPAT-3 b/srcpkgs/pchar/patches/no-SO_BSDCOMPAT-3 new file mode 100644 index 00000000000..17197c88e72 --- /dev/null +++ b/srcpkgs/pchar/patches/no-SO_BSDCOMPAT-3 @@ -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; diff --git a/srcpkgs/pchar/template b/srcpkgs/pchar/template new file mode 100644 index 00000000000..68016fc9175 --- /dev/null +++ b/srcpkgs/pchar/template @@ -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 " +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 +}