From owner-svn-ports-all@freebsd.org Tue Jun 4 19:07:20 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54A6515BAFF5; Tue, 4 Jun 2019 19:07:20 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E8ED58170B; Tue, 4 Jun 2019 19:07:19 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C44D521BD6; Tue, 4 Jun 2019 19:07:19 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x54J7JQ6051667; Tue, 4 Jun 2019 19:07:19 GMT (envelope-from eugen@FreeBSD.org) Received: (from eugen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x54J7Jfu051664; Tue, 4 Jun 2019 19:07:19 GMT (envelope-from eugen@FreeBSD.org) Message-Id: <201906041907.x54J7Jfu051664@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eugen set sender to eugen@FreeBSD.org using -f From: Eugene Grosbein Date: Tue, 4 Jun 2019 19:07:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r503488 - in head/net/echoping: . files X-SVN-Group: ports-head X-SVN-Commit-Author: eugen X-SVN-Commit-Paths: in head/net/echoping: . files X-SVN-Commit-Revision: 503488 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E8ED58170B X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2019 19:07:20 -0000 Author: eugen Date: Tue Jun 4 19:07:18 2019 New Revision: 503488 URL: https://svnweb.freebsd.org/changeset/ports/503488 Log: net/echoping: keep up with changes echping does not exist at SourceForge anymore. Use distfile from Github and deal with differences: - new distfile has no configure scripts but configure.ac and requires generation of configure, but modern autoreconf cannot handle its configure.ac files properly so they need some polishing with pre-configure target to be useful; - broad usage of HTTP Strict Transport Security requires new patch fixing echoping's HTTP "accept_redirects" mode, so this echoping does not fail in this mode on HTTP redirects; - pet portlint; - bump PORTREVISION. Added: head/net/echoping/files/ head/net/echoping/files/patch-http.c (contents, props changed) Modified: head/net/echoping/Makefile head/net/echoping/distinfo Modified: head/net/echoping/Makefile ============================================================================== --- head/net/echoping/Makefile Tue Jun 4 18:27:42 2019 (r503487) +++ head/net/echoping/Makefile Tue Jun 4 19:07:18 2019 (r503488) @@ -3,9 +3,8 @@ PORTNAME= echoping PORTVERSION= 6.0.2 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= net ipv6 -MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Ping-like program that uses TCP and/or HTTP @@ -16,7 +15,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libpopt.so:devel/popt \ libidn.so:dns/libidn -USES= cpe libtool ssl +USES= autoreconf cpe libtool ssl + CPE_VENDOR= echoping_project GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-http --enable-icp --enable-smtp --with-ssl \ @@ -26,6 +26,12 @@ INSTALL_TARGET= install-strip PING_PLUGINS= dns random whois +USE_GITHUB= yes +GH_ACCOUNT= bortzmeyer +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= dfe95b5 +WRKSRC= ${WRKDIR}/${PORTNAME}-${GH_TAGNAME}/SRC + OPTIONS_DEFINE= LDAP PGSQL OPTIONS_DEFAULT=LDAP OPTIONS_SUB= yes @@ -36,7 +42,11 @@ LDAP_VARS= PING_PLUGINS+=ldap PGSQL_USES= pgsql PGSQL_VARS= PING_PLUGINS+=postgresql -post-patch: - @${REINPLACE_CMD} '/^echoping_LDADD =/s/$$/ -lm/' ${WRKSRC}/Makefile.in +pre-configure: + ${FIND} ${WRKSRC} -name configure.ac -execdir ${SH} -c '\ + ${CAT} ${WRKSRC}/configure-common.ac > configure.ac.tmp && \ + ${SED} '/configure-common\.ac/d' configure.ac >> configure.ac.tmp && \ + ${MV} configure.ac.tmp configure.ac' \; + ${REINPLACE_CMD} '/^echoping_LDADD =/s/$$/ -lm/' ${WRKSRC}/Makefile.am .include Modified: head/net/echoping/distinfo ============================================================================== --- head/net/echoping/distinfo Tue Jun 4 18:27:42 2019 (r503487) +++ head/net/echoping/distinfo Tue Jun 4 19:07:18 2019 (r503488) @@ -1,2 +1,3 @@ -SHA256 (echoping-6.0.2.tar.gz) = 1dfa4c45bf461b2379ff91773ed7136176e2abac9e85c26bc9654942b5155eac -SIZE (echoping-6.0.2.tar.gz) = 1660983 +TIMESTAMP = 1559666517 +SHA256 (bortzmeyer-echoping-6.0.2-dfe95b5_GH0.tar.gz) = 712ec52f47281aac8e6121fa4e261df22360112221eb3615f4cfa22fb5efd0ce +SIZE (bortzmeyer-echoping-6.0.2-dfe95b5_GH0.tar.gz) = 130632 Added: head/net/echoping/files/patch-http.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/echoping/files/patch-http.c Tue Jun 4 19:07:18 2019 (r503488) @@ -0,0 +1,11 @@ +--- http.c.orig 2015-06-03 13:06:16 UTC ++++ http.c +@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, + /* 204 No Content is not an error, message body is empty by definition, see RFC 2616 */ + if (reply_code == 204) + return 0; /* zero bytes is correct */ ++ if (accept_redirects && reply_code >= 300 && reply_code < 400) ++ return 0; + + if (! (reply_code >= 200 && reply_code < 300) && + ! ((reply_code >= 300 && reply_code < 400) && accept_redirects))