aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2015-11-26 01:30:19 +0800
committergarga <garga@FreeBSD.org>2015-11-26 01:30:19 +0800
commite1e6236492b3f2cb116d2d295487c2b1559507b7 (patch)
treead8e030657aebd94d2193dac49a24dec8a5b9bd1 /net
parentb01f58df953ee9452650ef482001f434a37620a8 (diff)
downloadfreebsd-ports-gnome-e1e6236492b3f2cb116d2d295487c2b1559507b7.tar.gz
freebsd-ports-gnome-e1e6236492b3f2cb116d2d295487c2b1559507b7.tar.zst
freebsd-ports-gnome-e1e6236492b3f2cb116d2d295487c2b1559507b7.zip
Add net/dpinger:
IP device monitoring tool WWW: https://github.com/dennypage/dpinger Sponsored by: Rubicon Communications (Netgate)
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/dpinger/Makefile20
-rw-r--r--net/dpinger/distinfo2
-rw-r--r--net/dpinger/files/patch-Makefile11
-rw-r--r--net/dpinger/files/patch-dpinger.c11
-rw-r--r--net/dpinger/pkg-descr3
6 files changed, 48 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 740aad9fbb02..363dbc134301 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -106,6 +106,7 @@
SUBDIR += dimes
SUBDIR += dosdetector
SUBDIR += dpdk
+ SUBDIR += dpinger
SUBDIR += drawterm
SUBDIR += dropbox-api-command
SUBDIR += dropbox-uploader
diff --git a/net/dpinger/Makefile b/net/dpinger/Makefile
new file mode 100644
index 000000000000..5160d915cd21
--- /dev/null
+++ b/net/dpinger/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME= dpinger
+PORTVERSION= 0.0.1.20151125
+CATEGORIES= net
+
+MAINTAINER= garga@FreeBSD.org
+COMMENT= IP device monitoring tool
+
+LICENSE= BSD2CLAUSE
+
+USES= uidfix
+USE_GITHUB= yes
+GH_ACCOUNT= dennypage
+GH_PROJECT= dpinger
+GH_TAGNAME= 21942bac3a
+
+PLIST_FILES= bin/dpinger
+
+.include <bsd.port.mk>
diff --git a/net/dpinger/distinfo b/net/dpinger/distinfo
new file mode 100644
index 000000000000..9ab37b0b7074
--- /dev/null
+++ b/net/dpinger/distinfo
@@ -0,0 +1,2 @@
+SHA256 (dennypage-dpinger-0.0.1.20151125-21942bac3a_GH0.tar.gz) = 6b4f1911dfc38d35f103df61cd776f74def536ebc260b6b00832f5724c754701
+SIZE (dennypage-dpinger-0.0.1.20151125-21942bac3a_GH0.tar.gz) = 6073
diff --git a/net/dpinger/files/patch-Makefile b/net/dpinger/files/patch-Makefile
new file mode 100644
index 000000000000..fe5d03c6ca98
--- /dev/null
+++ b/net/dpinger/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2015-11-25 04:21:35 UTC
++++ Makefile
+@@ -4,7 +4,7 @@ MAN=
+ BINDIR= ${PREFIX}/bin
+ WARNS= 6
+
+-CFLAGS= -g
++#CFLAGS= -g
+ LDADD= -lpthread
+
+ .include <bsd.prog.mk>
diff --git a/net/dpinger/files/patch-dpinger.c b/net/dpinger/files/patch-dpinger.c
new file mode 100644
index 000000000000..61af896128ab
--- /dev/null
+++ b/net/dpinger/files/patch-dpinger.c
@@ -0,0 +1,11 @@
+--- dpinger.c.orig 2015-11-25 04:21:35 UTC
++++ dpinger.c
+@@ -164,7 +164,7 @@ cksum(
+
+ if (len == 1)
+ {
+- sum += (uint16_t) *((uint8_t *) p);
++ sum += (uint16_t) *((const uint8_t *) p);
+ }
+
+ sum = (sum >> 16) + (sum & 0xFFFF);
diff --git a/net/dpinger/pkg-descr b/net/dpinger/pkg-descr
new file mode 100644
index 000000000000..7c4901249ebb
--- /dev/null
+++ b/net/dpinger/pkg-descr
@@ -0,0 +1,3 @@
+IP device monitoring tool
+
+WWW: https://github.com/dennypage/dpinger