diff options
Diffstat (limited to 'net-analyzer/nmbscan')
-rw-r--r-- | net-analyzer/nmbscan/Manifest | 6 | ||||
-rw-r--r-- | net-analyzer/nmbscan/files/nmbscan-1.2.5-head.diff | 11 | ||||
-rw-r--r-- | net-analyzer/nmbscan/metadata.xml | 11 | ||||
-rw-r--r-- | net-analyzer/nmbscan/nmbscan-1.2.5.ebuild | 42 |
4 files changed, 70 insertions, 0 deletions
diff --git a/net-analyzer/nmbscan/Manifest b/net-analyzer/nmbscan/Manifest new file mode 100644 index 000000000000..e9d6ef45e07c --- /dev/null +++ b/net-analyzer/nmbscan/Manifest @@ -0,0 +1,6 @@ +AUX nmbscan-1.2.5-head.diff 443 SHA256 a3546ea0f9a80da0627e328273a320af592c820ac961d204b7beab91df78b258 SHA512 a2dd91d24b4fbbd4fa9344f3c17347527be16fadd3b2166e3a46bf68ce9e788d3c98b341feeb46be41aaf35548e631b49761fbcbd8729b4fdeea5ad141278d10 WHIRLPOOL 52b8fd656f642ecaf5bc0121c543078c54a94dc7f044ae3b65ff013ae819c6151434b2830d98c9c96b7f23cd9aa07cc3b829b62f84d538ed3d2b6c264ce47062 +DIST nmbscan-1.2.5.tar.gz 44749 SHA256 e5f55548e256ded0dd8fc9067ac5c4a5df3d4d7489e871e2bd9b84ce04c7efeb SHA512 37030c6759cc8b257356274b54ec7474e49ddc523be20180c509064f9238da3350f0f0e73e84f2e89201405e93a350a7a7cdc24ef890e638b62648ee2fc4feb9 WHIRLPOOL 943314c9d225e40e3849384cbaa338f1ff6da09d45e0bc9c1bffdf7800077b84a4a07f5de2e30dca05d542224e72686533acbc96721b3d04e3c87291591ecccb +EBUILD nmbscan-1.2.5.ebuild 691 SHA256 c1043d27ed19971cc8aa275bb6d17348c9c66c2db35062a0d9221174350cc6b9 SHA512 56d714ad46645cb44fe44de8e707ec7022e2dae507b2ee8e08ba5b64c36f7165cb6788d2fed9daf9fad071336c588a856824aa568928d3caa92a9851e3f7863c WHIRLPOOL 949678571584e370590caa7d989bf7adf0e0573ef46c3d57216574c3830538569f10db3445bdbc226d5e0904e6f5769ce70152bb414837c68ff8e1a3e90fdcf2 +MISC ChangeLog 2558 SHA256 61f265869cceb9e84a4cecabb7ad627d3316443f86b37de219ae9a372709a91f SHA512 4788c9cfb615368ff0a1617fc203fda1f30397170e665171f5f827a232836d42121f513d10140348e239143342160a4087e2ac0e4c2f0a32eace69d35bebe41d WHIRLPOOL 1b85eebb370a80df150f40d2ef98e7461af5382800a0adbd755447c825e08387c6406482f3115700eefd8fb69e16d389d0a6fa5930c9152cf9fcb9f70e1024fa +MISC ChangeLog-2015 2630 SHA256 4e5ee501dac6e5bc8580feefe3d707cda3815cd86d3502384868720946dd04ba SHA512 c2cd9890ec597e005e75eab4edd75834371200332125b6b260ae673fc845bce9bf71c15b292e0b8f41ddaadd5c4041c5665fa96e9eb8939d6baffe494f4e2320 WHIRLPOOL cbcd2364eb536454010f68c1d9cd8eb7faf759963466b3a8465d95f0c1224ba07f493923cd96bea17629ee57a513ea4f1ccc5cf3cfbcc46fb495bf9b0e084f95 +MISC metadata.xml 683 SHA256 e3febc7dbbfb597ee91947e8d1f68d7b4afb0108306110db416a97637630cea3 SHA512 f0bb01d9be906681f1e7bf349e776b7cfc15a61be7a3e944e7291dac9f42a3fe151b05e20c6a13b98c8bad598d56811699a8365ba9227419bea4e2373de26b19 WHIRLPOOL e349fcf3cab3b22fa7cd41bd93caf59572d51d6435c4dd2c7c8f7ab6e737d90c34164434597b5ccfa38504e98afe25d0cd02ca4a4d971472b3961431f85e9790 diff --git a/net-analyzer/nmbscan/files/nmbscan-1.2.5-head.diff b/net-analyzer/nmbscan/files/nmbscan-1.2.5-head.diff new file mode 100644 index 000000000000..6139f71f297d --- /dev/null +++ b/net-analyzer/nmbscan/files/nmbscan-1.2.5-head.diff @@ -0,0 +1,11 @@ +--- nmbscan.orig 2005-09-21 22:10:05.223491664 +0200 ++++ nmbscan 2005-09-21 22:11:59.215162296 +0200 +@@ -402,7 +402,7 @@ + + function get_server_and_os_by_ip + { +- V=$(smbclient -L ${2:-$1} -I $1 -U % 2>&1 | grep '^Domain'| sed 's#.*OS=\[\(.*\)\].*Server=\[\(.*\)\].*#\2/\1#' | head -1) ++ V=$(smbclient -L ${2:-$1} -I $1 -U % 2>&1 | grep '^Domain'| sed 's#.*OS=\[\(.*\)\].*Server=\[\(.*\)\].*#\2/\1#' | head -n 1) + echo ${V:--/-} + } + diff --git a/net-analyzer/nmbscan/metadata.xml b/net-analyzer/nmbscan/metadata.xml new file mode 100644 index 000000000000..6d85f89a0e7e --- /dev/null +++ b/net-analyzer/nmbscan/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<longdescription> +nmbscan scans the shares of a SMB network, using the NMB and SMB protocols. +It is useful for acquiring information on a local area network for such purposes as security auditing. +It can obtain such information as NMB/SMB/Windows hostname, IP address, IP hostname, ethernet MAC address, Windows username, NMB/SMB/Windows domain name, and master browser. +It can discover all the NMB/SMB/Windows hosts on a local area network by using the hosts lists maintained by master browsers. +</longdescription> +</pkgmetadata> diff --git a/net-analyzer/nmbscan/nmbscan-1.2.5.ebuild b/net-analyzer/nmbscan/nmbscan-1.2.5.ebuild new file mode 100644 index 000000000000..7e8c9f28df4c --- /dev/null +++ b/net-analyzer/nmbscan/nmbscan-1.2.5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit eutils + +DESCRIPTION="netbios scanner" +HOMEPAGE="http://nmbscan.gbarbier.org/" +SRC_URI="http://nmbscan.gbarbier.org/down/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ~ppc ppc64 s390 sparc x86" +IUSE="" + +DEPEND="" +RDEPEND="app-shells/bash + net-dns/bind-tools + net-fs/samba + net-misc/iputils + sys-apps/coreutils + virtual/awk + sys-apps/grep + sys-apps/net-tools + sys-apps/sed" + +src_prepare() { + epatch "${FILESDIR}"/${P}-head.diff || die +} + +src_configure() { + return +} + +src_compile() { + return +} + +src_install() { + dobin nmbscan || die +} |