aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-11-25 17:30:19 +0000
committerRenato Botelho <garga@FreeBSD.org>2015-11-25 17:30:19 +0000
commitc6b123a9688e6b96f091733927811185cfca8921 (patch)
treead8e030657aebd94d2193dac49a24dec8a5b9bd1 /net
parent869a663eae6f0a3d7f596907ad61fe89b7b2e149 (diff)
downloadports-c6b123a9688e6b96f091733927811185cfca8921.tar.gz
ports-c6b123a9688e6b96f091733927811185cfca8921.zip
Notes
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