mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
net/R-cran-pingr: New port
Check if a Remote Computer is Up.
This commit is contained in:
parent
f5e0a02f8e
commit
fce80f5303
@ -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
20
net/R-cran-pingr/Makefile
Normal 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>
|
3
net/R-cran-pingr/distinfo
Normal file
3
net/R-cran-pingr/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1639069503
|
||||
SHA256 (pingr_2.0.1.tar.gz) = d49653e705e99ed6ff950d305777ffc18da09b1a79a3091622eeef5df25f7221
|
||||
SIZE (pingr_2.0.1.tar.gz) = 16845
|
5
net/R-cran-pingr/files/patch-src_Makevars
Normal file
5
net/R-cran-pingr/files/patch-src_Makevars
Normal file
@ -0,0 +1,5 @@
|
||||
--- src/Makevars.orig 2022-01-14 10:24:39 UTC
|
||||
+++ src/Makevars
|
||||
@@ -1 +1 @@
|
||||
-PKG_LIBS = -lresolv
|
||||
+PKG_LIBS =
|
13
net/R-cran-pingr/files/patch-src_dns.c
Normal file
13
net/R-cran-pingr/files/patch-src_dns.c
Normal 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>
|
13
net/R-cran-pingr/files/patch-src_rping.c
Normal file
13
net/R-cran-pingr/files/patch-src_rping.c
Normal 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
|
4
net/R-cran-pingr/pkg-descr
Normal file
4
net/R-cran-pingr/pkg-descr
Normal 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
|
Loading…
Reference in New Issue
Block a user