1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

net/R-cran-pingr: New port

Check if a Remote Computer is Up.
This commit is contained in:
Guangyuan Yang 2022-01-14 05:37:03 -05:00
parent f5e0a02f8e
commit fce80f5303
7 changed files with 59 additions and 0 deletions

View File

@ -3,6 +3,7 @@
SUBDIR += 3proxy
SUBDIR += 44bsd-rdist
SUBDIR += 6tunnel
SUBDIR += R-cran-pingr
SUBDIR += R-cran-twitteR
SUBDIR += Sockets
SUBDIR += activemq

20
net/R-cran-pingr/Makefile Normal file
View File

@ -0,0 +1,20 @@
# Created by: Guangyuan Yang <ygy@FreeBSD.org>
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 <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1639069503
SHA256 (pingr_2.0.1.tar.gz) = d49653e705e99ed6ff950d305777ffc18da09b1a79a3091622eeef5df25f7221
SIZE (pingr_2.0.1.tar.gz) = 16845

View File

@ -0,0 +1,5 @@
--- src/Makevars.orig 2022-01-14 10:24:39 UTC
+++ src/Makevars
@@ -1 +1 @@
-PKG_LIBS = -lresolv
+PKG_LIBS =

View File

@ -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 <netinet/in.h>
+#endif
+
#include <resolv.h>
#include <netinet/in.h>
#include <arpa/inet.h>

View File

@ -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 <netinet/in.h>
+#endif
+
#ifdef WIN32
# define WIN32_LEAN_AND_MEAN

View File

@ -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