aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2016-02-20 05:38:23 +0800
committerswills <swills@FreeBSD.org>2016-02-20 05:38:23 +0800
commit130ccaa22f423e5421964b7adefb655e06e75e52 (patch)
tree3df70dedced6be77f8c30e3ab907eded95e4d99a
parent8cb7d9ff03295e935b009d37a682d1a68204dd7e (diff)
downloadfreebsd-ports-gnome-130ccaa22f423e5421964b7adefb655e06e75e52.tar.gz
freebsd-ports-gnome-130ccaa22f423e5421964b7adefb655e06e75e52.tar.zst
freebsd-ports-gnome-130ccaa22f423e5421964b7adefb655e06e75e52.zip
security/honeybadger: add port
PR: 207315 Submitted by: Shawn Webb <shawn.webb@hardenedbsd.org> (with modifications)
-rw-r--r--security/Makefile1
-rw-r--r--security/honeybadger/Makefile74
-rw-r--r--security/honeybadger/distinfo14
-rw-r--r--security/honeybadger/pkg-descr6
4 files changed, 95 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index 9645a0357cff..2b3bac205789 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -189,6 +189,7 @@
SUBDIR += hitch
SUBDIR += hlfl
SUBDIR += hmap
+ SUBDIR += honeybadger
SUBDIR += honggfuzz
SUBDIR += hotssh
SUBDIR += hpenc
diff --git a/security/honeybadger/Makefile b/security/honeybadger/Makefile
new file mode 100644
index 000000000000..dc2379067f0e
--- /dev/null
+++ b/security/honeybadger/Makefile
@@ -0,0 +1,74 @@
+# $FreeBSD$
+
+PORTNAME= honeybadger
+PORTVERSION= 0.0.0.2016021901
+CATEGORIES= security
+
+MAINTAINER= shawn.webb@hardenedbsd.org
+COMMENT= Quantum Insert detector and 0-day catcher
+
+BUILD_DEPENDS= go:${PORTSDIR}/lang/go
+
+USE_GITHUB= yes
+GH_ACCOUNT= david415:DEFAULT google:gp fatih:co mattn:gc,gi \
+ golang:xs,xn
+GH_PROJECT= HoneyBadger:DEFAULT gopacket:gp color:co go-colorable:gc \
+ go-isatty:gi net:xn sys:xs
+GH_TAGNAME= 39d9557:DEFAULT cdd2162:gp 7a5857d:co 9fdad7c:gc 56b76bd:gi \
+ b6d7b13:xn 50c6bc5:xs
+
+BIN_FILES= coalesceInjector handshakeHijacker honeyBadger \
+ honeybadgerReportTool honeybadgerReportToolColor sprayInjector
+
+PLIST_FILES= ${BIN_FILES:S/^/bin\//}
+
+OPTIONS_DEFINE= DOCS
+
+PORTDOCS= README.rst LICENSE LICENSE_BSD
+
+LICENSE= GPLv3
+
+post-patch:
+ @${MKDIR} ${WRKSRC}/src/github.com/david415/HoneyBadger
+.for src in .travis.yml LICENSE LICENSE_BSD README.rst attack blocks cmd \
+ connection.go connection_test.go dispatcher.go dispatcher_test.go \
+ drivers logging ordered_coalesce.go ordered_coalesce_test.go \
+ pcap_integration_test.go retrospective.go retrospective_test.go \
+ sniffer.go supervisor.go types
+ @${MV} ${WRKSRC}/${src} \
+ ${WRKSRC}/src/github.com/david415/HoneyBadger
+.endfor
+ @${MKDIR} ${WRKSRC}/src/github.com/google
+ @${MKDIR} ${WRKSRC}/src/github.com/fatih
+ @${MKDIR} ${WRKSRC}/src/github.com/mattn
+ @${MKDIR} ${WRKSRC}/src/golang.org/x
+ @${MV} ${WRKSRC_gp} \
+ ${WRKSRC}/src/github.com/google/gopacket
+ @${MV} ${WRKSRC_co} \
+ ${WRKSRC}/src/github.com/fatih/color
+ @${MV} ${WRKSRC_gc} \
+ ${WRKSRC}/src/github.com/mattn/go-colorable
+ @${MV} ${WRKSRC_gi} \
+ ${WRKSRC}/src/github.com/mattn/go-isatty
+ @${MV} ${WRKSRC_xn} \
+ ${WRKSRC}/src/golang.org/x/net
+ @${MV} ${WRKSRC_xs} \
+ ${WRKSRC}/src/golang.org/x/sys
+
+do-build:
+.for bin in ${BIN_FILES}
+ cd ${WRKSRC}/src/github.com/david415/HoneyBadger/cmd/${bin}; ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build
+.endfor
+
+do-install:
+.for bin in ${BIN_FILES}
+ cd ${WRKSRC}/src/github.com/david415/HoneyBadger/cmd/${bin}; ${CP} ${bin} ${STAGEDIR}${PREFIX}/bin/${src}
+.endfor
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for doc in ${PORTDOCS}
+ ${CP} ${WRKSRC}/src/github.com/david415/HoneyBadger/${doc} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/security/honeybadger/distinfo b/security/honeybadger/distinfo
new file mode 100644
index 000000000000..c5c588376b85
--- /dev/null
+++ b/security/honeybadger/distinfo
@@ -0,0 +1,14 @@
+SHA256 (david415-HoneyBadger-0.0.0.2016021901-39d9557_GH0.tar.gz) = c743445d831c9bca9660c99362b663ae29f60dac229ed46c854a49e6bbaaff3e
+SIZE (david415-HoneyBadger-0.0.0.2016021901-39d9557_GH0.tar.gz) = 55436
+SHA256 (google-gopacket-cdd2162_GH0.tar.gz) = 401e42c2b83fb550e2c2462f31b7c6978a4e04bccf2ffd505e103e8d14892111
+SIZE (google-gopacket-cdd2162_GH0.tar.gz) = 629150
+SHA256 (fatih-color-7a5857d_GH0.tar.gz) = c2e5dea927967197893b954add43c3130025fbfa840ecc3a32cbe41bedca54d0
+SIZE (fatih-color-7a5857d_GH0.tar.gz) = 7165
+SHA256 (mattn-go-colorable-9fdad7c_GH0.tar.gz) = 6ba8b1614eb0dad3a966fd97c9fc0d2ea595b3bb43d04d0d59c30fe65d4c4fcd
+SIZE (mattn-go-colorable-9fdad7c_GH0.tar.gz) = 5579
+SHA256 (mattn-go-isatty-56b76bd_GH0.tar.gz) = c424f22dcd10290266a3413c1ebe055bd3278c030aab065ba955b604c455c881
+SIZE (mattn-go-isatty-56b76bd_GH0.tar.gz) = 1950
+SHA256 (golang-sys-50c6bc5_GH0.tar.gz) = 6a4a63232dc2db83acb2e1c080f1ab11a6b72193887e5e7bf3b8b87e8a88a154
+SIZE (golang-sys-50c6bc5_GH0.tar.gz) = 541816
+SHA256 (golang-net-b6d7b13_GH0.tar.gz) = fed6d62b1aee0d44726739836ef4164ca268ad1343b868e8d42dc5c7285a7898
+SIZE (golang-net-b6d7b13_GH0.tar.gz) = 740584
diff --git a/security/honeybadger/pkg-descr b/security/honeybadger/pkg-descr
new file mode 100644
index 000000000000..5d40da638014
--- /dev/null
+++ b/security/honeybadger/pkg-descr
@@ -0,0 +1,6 @@
+HoneyBadger is primarily a comprehensive TCP stream analysis tool for
+detecting and recording TCP injection attacks. HoneyBadger will also
+include a variety of prototype TCP stream injections attacks which
+prove that the TCP attack detection is reliable.
+
+WWW: https://github.com/david415/HoneyBadger