From nobody Fri Jan 14 10:37:16 2022 X-Original-To: dev-commits-ports-all@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 7CCC4195D116; Fri, 14 Jan 2022 10:37:16 +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 4JZyRJ33JFz4cxZ; Fri, 14 Jan 2022 10:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642156636; 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=dnoBqSiNZRdjHHrKfAfN0oIyvxQr8wN90Wd/2oFF4nY=; b=An53EkBWbKqkyiZBuBjQEDzcAubHl1iSNWwba0K8GNBMAufNR6s7L6krIYpGqy1RpJaFiN mVDI/swFwgxF/G5tVG1Q2Z1fzHrUXRMQpm+6v7xDyDU0qT2+XDJtZ1LXJIIc8IitSXEksD /dFdkmmwzYLmJrlWDJMksbRUSarqY3ogOZeXh7Y9vI8giN/O1fvG7v91Yqp2l9kua0gxtc iu/ySlsSrU/2I09k2YUbQmbd+8JJSsTps6dig3hIOhcgyBr1JX/ScGhMR35NADvYXeGq4f uMEO3Wo4XYoLM7gqWwq+jShv07hOffRclNxrUw84btZDUPmyInDSSbicYc6PgA== 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 44C2D127B7; Fri, 14 Jan 2022 10:37:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20EAbGpZ084305; Fri, 14 Jan 2022 10:37:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20EAbGnX084304; Fri, 14 Jan 2022 10:37:16 GMT (envelope-from git) Date: Fri, 14 Jan 2022 10:37:16 GMT Message-Id: <202201141037.20EAbGnX084304@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guangyuan Yang Subject: git: fce80f530301 - main - net/R-cran-pingr: New port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ygy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fce80f530301d0079d84bc4b818ba957ad29617b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642156636; 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=dnoBqSiNZRdjHHrKfAfN0oIyvxQr8wN90Wd/2oFF4nY=; b=VGFD/FTaMLXJqbjnnS5212SV99yYUDKvkm+WimEqNwfpAK6KqvdNUq/JZsm7hkE8uFQOK8 ZZhZlPYIN1PzWpd5Cci7woqa5lNd+VzZY0cCBSwDG9u3+r7nJd1xlzuxEXC0pgSfP2s9/2 QaOrUrw/iaWf/MYysPUnHNaZewcXNrn6bPv8TzCmOn2ewtM+5U/hfmoMxaSSpv1MY8+3gi +CCYBejwU/RshxYnKtUSVi+P1yFZjIHyOZzofSA0N1fr4e57HRd1fwbPhgZpQwsZNuiQJG xe71kBUU2puZZqb7S3dIBIG3bdAhOdTCE98H0DTb4jEg84ZCpgmDA5dT9nB3sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642156636; a=rsa-sha256; cv=none; b=SJqgqft7By1wqzJ8m5s7scPOFWu2yaqk++1AYTBzno8BxvaSssO604EEIyzUOfLTWind4R 2PEo0yqzFZJLfZSovY7TzlmEzEZMLBKn3q79NU1L22G22THnpTdn9htr4O4E1BUZ+VkRyS SVZdSgZwJKQ9T0cAcpyMnTBtP2u3WqVBpXWMMFF9tgmMdpArqLwpNZ4qlsK119PhdfNeBR Ze9PBzO710Q0LX8W8BLObCQgJZO6l5bhWIRJjWxE7vzP504HLgNT26yzcxobEdqTjZ1vUR +JO0giv3MssyayjQwVJIfwkVh/KslsmqDsdimP6Rrc2Zx/sLB1HMtVciN5cgnA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ygy: URL: https://cgit.FreeBSD.org/ports/commit/?id=fce80f530301d0079d84bc4b818ba957ad29617b commit fce80f530301d0079d84bc4b818ba957ad29617b Author: Guangyuan Yang AuthorDate: 2022-01-14 10:37:03 +0000 Commit: Guangyuan Yang CommitDate: 2022-01-14 10:37:03 +0000 net/R-cran-pingr: New port Check if a Remote Computer is Up. --- net/Makefile | 1 + net/R-cran-pingr/Makefile | 20 ++++++++++++++++++++ net/R-cran-pingr/distinfo | 3 +++ net/R-cran-pingr/files/patch-src_Makevars | 5 +++++ net/R-cran-pingr/files/patch-src_dns.c | 13 +++++++++++++ net/R-cran-pingr/files/patch-src_rping.c | 13 +++++++++++++ net/R-cran-pingr/pkg-descr | 4 ++++ 7 files changed, 59 insertions(+) diff --git a/net/Makefile b/net/Makefile index 579c250ba9b4..e47709700d7b 100644 --- a/net/Makefile +++ b/net/Makefile @@ -3,6 +3,7 @@ SUBDIR += 3proxy SUBDIR += 44bsd-rdist SUBDIR += 6tunnel + SUBDIR += R-cran-pingr SUBDIR += R-cran-twitteR SUBDIR += Sockets SUBDIR += activemq diff --git a/net/R-cran-pingr/Makefile b/net/R-cran-pingr/Makefile new file mode 100644 index 000000000000..0a89cb3b0a23 --- /dev/null +++ b/net/R-cran-pingr/Makefile @@ -0,0 +1,20 @@ +# Created by: Guangyuan Yang + +PORTNAME= pingr +DISTVERSION= 2.0.1 +CATEGORIES= net +DISTNAME= ${PORTNAME}_${DISTVERSION} + +MAINTAINER= ygy@FreeBSD.org +COMMENT= Check if a Remote Computer is Up + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= R-cran-processx>0:sysutils/R-cran-processx +TEST_DEPENDS= R-cran-covr>0:devel/R-cran-covr \ + R-cran-testthat>0:devel/R-cran-testthat + +USES= cran:auto-plist,compiles + +.include diff --git a/net/R-cran-pingr/distinfo b/net/R-cran-pingr/distinfo new file mode 100644 index 000000000000..1e16340e1696 --- /dev/null +++ b/net/R-cran-pingr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1639069503 +SHA256 (pingr_2.0.1.tar.gz) = d49653e705e99ed6ff950d305777ffc18da09b1a79a3091622eeef5df25f7221 +SIZE (pingr_2.0.1.tar.gz) = 16845 diff --git a/net/R-cran-pingr/files/patch-src_Makevars b/net/R-cran-pingr/files/patch-src_Makevars new file mode 100644 index 000000000000..530e99b645ce --- /dev/null +++ b/net/R-cran-pingr/files/patch-src_Makevars @@ -0,0 +1,5 @@ +--- src/Makevars.orig 2022-01-14 10:24:39 UTC ++++ src/Makevars +@@ -1 +1 @@ +-PKG_LIBS = -lresolv ++PKG_LIBS = diff --git a/net/R-cran-pingr/files/patch-src_dns.c b/net/R-cran-pingr/files/patch-src_dns.c new file mode 100644 index 000000000000..90a6847707d5 --- /dev/null +++ b/net/R-cran-pingr/files/patch-src_dns.c @@ -0,0 +1,13 @@ +--- src/dns.c.orig 2022-01-14 08:39:31 UTC ++++ src/dns.c +@@ -262,6 +262,10 @@ SEXP r_nsl(SEXP hostname, SEXP server, SEXP class, SEX + + #else + ++#ifdef __FreeBSD__ ++#include ++#endif ++ + #include + #include + #include diff --git a/net/R-cran-pingr/files/patch-src_rping.c b/net/R-cran-pingr/files/patch-src_rping.c new file mode 100644 index 000000000000..b78a790d79aa --- /dev/null +++ b/net/R-cran-pingr/files/patch-src_rping.c @@ -0,0 +1,13 @@ +--- src/rping.c.orig 2022-01-14 09:37:12 UTC ++++ src/rping.c +@@ -5,6 +5,10 @@ + + #include "pingr.h" + ++#ifdef __FreeBSD__ ++#include ++#endif ++ + #ifdef WIN32 + + # define WIN32_LEAN_AND_MEAN diff --git a/net/R-cran-pingr/pkg-descr b/net/R-cran-pingr/pkg-descr new file mode 100644 index 000000000000..469c0c9b1f1a --- /dev/null +++ b/net/R-cran-pingr/pkg-descr @@ -0,0 +1,4 @@ +Check if a remote computer is up. It can either just call the system ping +command, or check a specified TCP port. + +WWW: https://github.com/r-lib/pingr#readme