---- nmbscan.orig 2005-09-21 22:10:05.223491664 +0200
-+++ nmbscan 2005-09-21 22:11:59.215162296 +0200
+--- a/nmbscan 2005-09-21 22:10:05.223491664 +0200
++++ b/nmbscan 2005-09-21 22:11:59.215162296 +0200
@@ -402,7 +402,7 @@
function get_server_and_os_by_ip
--- /dev/null
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Scans the shares of a SMB/NetBIOS network"
+HOMEPAGE="http://nmbscan.g76r.eu/"
+SRC_URI="http://nmbscan.g76r.eu/down/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+
+RDEPEND="net-dns/bind-tools
+ net-fs/samba
+ net-misc/iputils
+ sys-apps/net-tools
+ virtual/awk"
+
+S=${WORKDIR}
+PATCHES=( "${FILESDIR}"/${P}-head.diff )
+
+src_compile() { :; }
+
+src_install() {
+ dobin nmbscan
+}