Date: Fri, 19 Mar 2021 23:01:01 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r568816 - in head/net/liboping: . files Message-ID: <202103192301.12JN112F062631@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Mar 19 23:01:01 2021 New Revision: 568816 URL: https://svnweb.freebsd.org/changeset/ports/568816 Log: - Implement proper handling for EHOSTDOWN on FreeBSD [1] - While here, fix license, WWWs and silence stripping PR: 246855 Submitted by: portmaster@bsdforge.com (maintainer) Added: head/net/liboping/files/ head/net/liboping/files/patch-src_liboping.c (contents, props changed) Modified: head/net/liboping/Makefile Modified: head/net/liboping/Makefile ============================================================================== --- head/net/liboping/Makefile Fri Mar 19 22:04:20 2021 (r568815) +++ head/net/liboping/Makefile Fri Mar 19 23:01:01 2021 (r568816) @@ -3,14 +3,15 @@ PORTNAME= liboping PORTVERSION= 1.8.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net -MASTER_SITES= http://noping.cc/files/ +MASTER_SITES= https://noping.cc/files/ MAINTAINER= portmaster@BSDforge.com COMMENT= Liboping, a C library, and utility to generate ICMP echo requests -LICENSE= GPLv2 +LICENSE= LGPL21+ +LICENSE_FILE= ${WRKSRC}/COPYING USES= libtool ncurses perl5 shebangfix USE_LDCONFIG= yes @@ -18,7 +19,7 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-pkgconfigdir="${PREFIX}/libdata/pkgconfig" post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/Oping/Oping.so - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liboping.so.0.2.11 + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/Oping/Oping.so + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liboping.so.0.2.11 .include <bsd.port.mk> Added: head/net/liboping/files/patch-src_liboping.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/liboping/files/patch-src_liboping.c Fri Mar 19 23:01:01 2021 (r568816) @@ -0,0 +1,14 @@ +--- src/liboping.c.orig 2014-09-28 09:21:20 UTC ++++ src/liboping.c +@@ -801,6 +801,11 @@ static ssize_t ping_sendto (pingobj_t *obj, pinghost_t + if (errno == ENETUNREACH) + return (0); + #endif ++ /* BSDs return EHOSTDOWN on ARP/ND failure */ ++#if defined(EHOSTDOWN) ++ if (errno == EHOSTDOWN) ++ return (0); ++#endif + ping_set_errno (obj, errno); + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103192301.12JN112F062631>