From nobody Thu Jun 06 18:23:47 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VwCQC6prXz5LHWW; Thu, 06 Jun 2024 18:23:47 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VwCQC6D9Nz4TVh; Thu, 6 Jun 2024 18:23:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717698227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KA8vCmms0feBfUg0xmQtugESYGV4+aZipQdvNMA04DA=; b=x2P2JbNy7reEt0BPnrIrFheuw/ZGcU/vh8I3USHacoRCCFh08i8wrhBXg+1c9cCVqQOxtd A7JzDthdmA9+fQM5WeYt03jZT0wQmRWip0v3rX/U4Nrl6c5ib439mPmDlU80si9kWIzZOn HG03+oGtTGndUBKcTHdiHbqnqp9eH6fW6jAFZE2pdY+OpFLAG3/VVmcg1dLNT2M4dTKDJp rcgAgyUVY3YSHRJWk/SJnjl7lNG52AKqJxPyWXnlnm/D3oLul2IhXqSoMW8VWcJEmm+RJu Ce3+Wd0yv1y0mx+rD3KLTjAkNSJatpIWpNnjo0j+S3ed39tx8As5j0S5o3v4NQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717698227; a=rsa-sha256; cv=none; b=TFgwfp7RokAx/cxZTv//Sq9mZ1cXIzg1k0dBiFsJ+qITcAG02HMlnrslLL2zZVR4vL0Hpb pWEOxkzH7JdRn4InETLhoVX+X4OrnNQCwrorpTnnDCFhGnZJ+fNhIb909INIWNcNiD7Y3D u3K5B1yQyFjZgvT2fTWjzX1sHLzqzcB/lqZe0OD4vgKI8l1wptDPdmOsK78RRc/6Sa/USA 3Bsw6JtxcuK7L6jy3S+SqlXbEXjyQqEvTtEzKnmHbMlvoaVXWPzlAXzz5wzTd86moaxINl kSLKY4dvCYTTonrT0IBDjskOXaIrp8h4G+ZpY18zfhBJopajwGkXSUtG3PayWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717698227; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KA8vCmms0feBfUg0xmQtugESYGV4+aZipQdvNMA04DA=; b=GgQy1qpQfAphxa87ZQNZkrGBuG+LGzKcruK0LjEuw4wJORlVSMd0/tlFtYlQFze+UM7ibx 3+R+lWC6As8HPsZPRqtUa9dIatSfHsz7H5ScHsiXlxrmcxVWQYpT1wDWhb3G61dxR0L6mh SO4uqRlxCn5T9S6niuVi2TVDtWEL1kxrf9XcFEjPdsPGSg7qHu7/0nl7BfS9XJ9dPYl1Z5 uIK6m7ImBHRiB/tSFDYiNsZfAVtqhpjgZQ48str7y7C85CFMOda0cBLZVJ9RoBzdw7H3Nd eLtgK4/vYbC4IxAqt/vMsr9XOv4ZQGQVxcS+X1ev+KxYZc3PEhMGSdjdclobcQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VwCQC5RrqzxNf; Thu, 6 Jun 2024 18:23:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 456INlYO008154; Thu, 6 Jun 2024 18:23:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 456INlK9008151; Thu, 6 Jun 2024 18:23:47 GMT (envelope-from git) Date: Thu, 6 Jun 2024 18:23:47 GMT Message-Id: <202406061823.456INlK9008151@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d362e6d9dbb4 - main - net/httping: Update to 3.7a and newer snapshot (bb94c6d) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d362e6d9dbb4a8d3e1692175df7434973c6f5e7f Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d362e6d9dbb4a8d3e1692175df7434973c6f5e7f commit d362e6d9dbb4a8d3e1692175df7434973c6f5e7f Author: Po-Chuan Hsieh AuthorDate: 2024-06-06 18:22:27 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-06-06 18:22:27 +0000 net/httping: Update to 3.7a and newer snapshot (bb94c6d) - Update WWW - Fix LICENSE - Update pkg-descr - Take maintainership Changes: https://github.com/folkertvanheusden/HTTPing/commits/master --- net/httping/Makefile | 44 +++++++++++++++------------------- net/httping/distinfo | 6 ++--- net/httping/files/patch-CMakeLists.txt | 30 +++++++++++++++++++++++ net/httping/files/patch-Makefile | 25 ------------------- net/httping/files/patch-utils.h | 8 ------- net/httping/pkg-descr | 7 +++--- net/httping/pkg-plist | 5 ++-- 7 files changed, 59 insertions(+), 66 deletions(-) diff --git a/net/httping/Makefile b/net/httping/Makefile index 38687b138c91..a436b8aad299 100644 --- a/net/httping/Makefile +++ b/net/httping/Makefile @@ -1,41 +1,35 @@ PORTNAME= httping -PORTVERSION= 2.9 +PORTVERSION= 3.7a DISTVERSIONPREFIX= v CATEGORIES= net -MAINTAINER= ports@FreeBSD.org +MAINTAINER= sunpoet@FreeBSD.org COMMENT= Ping-like tool for HTTP requests -WWW= https://github.com/folkertvanheusden/HTTPing +WWW= https://www.vanheusden.com/httping/ \ + https://github.com/folkertvanheusden/HTTPing -LICENSE= GPLv2 +LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= gettext-runtime gettext-tools gmake localbase:ldflags ssl \ - tar:tgz +USES= cmake pkgconfig localbase:ldflags ssl + +CMAKE_ARGS= -DCMAKE_INSTALL_MANDIR=${PREFIX}/share/man/man1 + USE_GITHUB= yes GH_ACCOUNT= folkertvanheusden GH_PROJECT= HTTPing +GH_TAGNAME= bb94c6d -OPTIONS_DEFINE= FFTW NCURSES NLS -OPTIONS_DEFAULT= NCURSES -OPTIONS_SUB= NLS +OPTIONS_DEFINE= DOCS FFTW NCURSES NLS +OPTIONS_DEFAULT=NCURSES +OPTIONS_SUB= yes +FFTW_CMAKE_BOOL= USE_FFTW FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3 -FFTW_MAKE_ENV= FW=yes -FFTW_MAKE_ENV_OFF= FW=no +NCURSES_CMAKE_BOOL= USE_TUI +NCURSES_LDFLAGS= ${NCURSESLIBS} NCURSES_USES= ncurses -NCURSES_MAKE_ENV= NC=yes -NCURSES_MAKE_ENV_OFF= NC=yes -NLS_MAKE_ENV_OFF= NO_GETTEXT=yes - -.include - -# DragonFly seems to require this -.if ${OPSYS} == FreeBSD -MAKE_ENV+= TFO=yes -.endif - -post-patch-NCURSES-on: - @${REINPLACE_CMD} "s/-lncursesw/${NCURSESLIBS}/g" ${WRKSRC}/Makefile +NLS_CMAKE_BOOL= USE_GETTEXT +NLS_USES= gettext-runtime gettext-tools -.include +.include diff --git a/net/httping/distinfo b/net/httping/distinfo index adcc122778f8..434e3eaacaed 100644 --- a/net/httping/distinfo +++ b/net/httping/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1668248438 -SHA256 (folkertvanheusden-HTTPing-v2.9_GH0.tar.gz) = 37da3c89b917611d2ff81e2f6c9e9de39d160ef0ca2cb6ffec0bebcb9b45ef5d -SIZE (folkertvanheusden-HTTPing-v2.9_GH0.tar.gz) = 83674 +TIMESTAMP = 1717694660 +SHA256 (folkertvanheusden-HTTPing-v3.7a-bb94c6d_GH0.tar.gz) = 18911d26c05798f28721d56150358b37c69e577a8f67ac056978b2ba699c43c4 +SIZE (folkertvanheusden-HTTPing-v3.7a-bb94c6d_GH0.tar.gz) = 82257 diff --git a/net/httping/files/patch-CMakeLists.txt b/net/httping/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..74858e4bbc20 --- /dev/null +++ b/net/httping/files/patch-CMakeLists.txt @@ -0,0 +1,30 @@ +--- CMakeLists.txt.orig 2024-05-14 21:12:06 UTC ++++ CMakeLists.txt +@@ -6,12 +6,12 @@ add_definitions(-DVERSION=\"${VERSION}\") + file (STRINGS "version" VERSION) + add_definitions(-DVERSION=\"${VERSION}\") + +-add_definitions(-DLOCALEDIR=\"/usr/local/share/locale\") ++add_definitions(-DLOCALEDIR=\"${CMAKE_INSTALL_PREFIX}/share/locale\") + + set(SOURCES colors.c cookies.c error.c fft.c gen.c help.c http.c io.c kalman.c main.c mssl.c nc.c res.c socks5.c tcp.c utils.c) + add_executable(httping ${SOURCES}) + +-target_link_libraries(httping m) ++target_link_libraries(httping intl m) + + if (USE_GETTEXT) + find_package(Intl REQUIRED) +@@ -30,10 +30,12 @@ target_compile_options(httping PUBLIC ${NCURSES_CFLAGS + target_include_directories(httping PUBLIC ${NCURSES_INCLUDE_DIRS}) + target_compile_options(httping PUBLIC ${NCURSES_CFLAGS_OTHER}) + ++if (USE_FFTW) + pkg_check_modules(FFTW3 fftw3) + target_link_libraries(httping ${FFTW3_LIBRARIES}) + target_include_directories(httping PUBLIC ${FFTW3_INCLUDE_DIRS}) + target_compile_options(httping PUBLIC ${FFTW3_CFLAGS_OTHER}) ++endif () + endif () + + pkg_check_modules(SSL libssl) diff --git a/net/httping/files/patch-Makefile b/net/httping/files/patch-Makefile deleted file mode 100644 index b57f3059e3d5..000000000000 --- a/net/httping/files/patch-Makefile +++ /dev/null @@ -1,25 +0,0 @@ ---- Makefile.orig 2022-10-29 19:34:27 UTC -+++ Makefile -@@ -32,11 +32,10 @@ TARGET=httping - - LOCALEDIR=/usr/share/locale - --DEBUG=yes --WFLAGS=-Wall -W -Wextra -pedantic -D_FORTIFY_SOURCE=2 -+DEBUG?=no - OFLAGS= - CFLAGS+=$(WFLAGS) $(OFLAGS) -DVERSION=\"$(VERSION)\" -DLOCALEDIR=\"$(LOCALEDIR)\" --LDFLAGS+=-lm -+LDFLAGS+=-lm -lintl - - PACKAGE=$(TARGET)-$(VERSION) - PREFIX?=/usr -@@ -81,7 +80,7 @@ endif - ifeq ($(NC),yes) - CFLAGS+=-DNC - OBJS+=nc.o --LDFLAGS+=-lncursesw -+LDFLAGS+=-lncursesw -ltinfow - endif - - ifeq ($(FW),yes) diff --git a/net/httping/files/patch-utils.h b/net/httping/files/patch-utils.h deleted file mode 100644 index c04d32cda192..000000000000 --- a/net/httping/files/patch-utils.h +++ /dev/null @@ -1,8 +0,0 @@ ---- utils.h.orig 2022-10-29 19:34:27 UTC -+++ utils.h -@@ -16,4 +16,4 @@ char * format_value(double value, int digits_sig, int - #define min(x, y) ((x) < (y) ? (x) : (y)) - #define max(x, y) ((x) > (y) ? (x) : (y)) - --void myusleep(useconds_t v); -+void myusleep(__useconds_t v); diff --git a/net/httping/pkg-descr b/net/httping/pkg-descr index 8fa8ad346426..a24a83ce0f3a 100644 --- a/net/httping/pkg-descr +++ b/net/httping/pkg-descr @@ -1,3 +1,4 @@ -Httping is like ping but for http-requests. Give it an url, and it will show -you how long it takes to connect, send a request and retrieve the reply (only -the headers). +Httping is like 'ping' but for http-requests. Give it an url, and it'll show you +how long it takes to connect, send a request and retrieve the reply (only the +headers). Be aware that the transmission across the network also takes time! So +it measures the latency of the webserver + network. diff --git a/net/httping/pkg-plist b/net/httping/pkg-plist index 569eb7da2120..ba09362c8eb5 100644 --- a/net/httping/pkg-plist +++ b/net/httping/pkg-plist @@ -1,6 +1,7 @@ bin/httping +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/plot-json.py %%NLS%%share/locale/nl/LC_MESSAGES/httping.mo %%NLS%%share/locale/ru/LC_MESSAGES/httping.mo share/man/man1/httping.1.gz -share/man/nl/man1/httping-nl.1.gz -share/man/ru/man1/httping-ru.1.gz