Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,11 +1,15 @@
# $NetBSD: Makefile,v 1.14 2012/10/23 17:18:40 asau Exp $
# $NetBSD: Makefile,v 1.15 2014/11/23 00:05:30 dholland Exp $
#
DISTNAME= nbtscan-1.5.1
PKGREVISION= 1
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.inetcat.net/software/
PATCHFILES= nbtscan-jumbo-patch-20141122.gz
PATCH_SITES= http://www.NetBSD.org/~dholland/patchkits/nbtscan/
PATCH_DIST_STRIP= -p1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.inetcat.net/software/nbtscan.html
COMMENT= NetBIOS name network scanner

View File

@@ -1,6 +1,8 @@
$NetBSD: distinfo,v 1.7 2009/01/25 14:21:13 obache Exp $
$NetBSD: distinfo,v 1.8 2014/11/23 00:05:30 dholland Exp $
SHA1 (nbtscan-1.5.1.tar.gz) = 4041d8f6b592fa310b8d3c79c56a2d3263dba82f
RMD160 (nbtscan-1.5.1.tar.gz) = 5130d9e6decd3346859281f45f8a179aa0286a42
Size (nbtscan-1.5.1.tar.gz) = 82107 bytes
SHA1 (patch-ac) = 93ea55a27cb434de567033acd883da08e7225646
SHA1 (nbtscan-jumbo-patch-20141122.gz) = 1bd2b2e9fa89095822070c70d5ffbf3693a0b9b1
RMD160 (nbtscan-jumbo-patch-20141122.gz) = 29c8587f16a270f73ec3e8203544c146fe69566d
Size (nbtscan-jumbo-patch-20141122.gz) = 6069 bytes

View File

@@ -1,24 +0,0 @@
$NetBSD: patch-ac,v 1.1 2009/01/25 14:21:13 obache Exp $
Fix off by one error.
--- nbtscan.c.orig 2003-06-06 12:14:00.000000000 +0000
+++ nbtscan.c
@@ -111,7 +111,7 @@ int d_print_hostinfo(struct in_addr addr
for(i=0; i< hostinfo->header->number_of_names; i++) {
service = hostinfo->names[i].ascii_name[15];
strncpy(name, hostinfo->names[i].ascii_name, 15);
- name[16]=0;
+ name[15]=0;
printf("%-17s Service: 0x%02x Flags: 0x%04x\n", name, service, hostinfo->names[i].rr_flags);
}
};
@@ -164,7 +164,7 @@ int v_print_hostinfo(struct in_addr addr
for(i=0; i< hostinfo->header->number_of_names; i++) {
service = hostinfo->names[i].ascii_name[15];
strncpy(name, hostinfo->names[i].ascii_name, 15);
- name[16]=0;
+ name[15]=0;
unique = !(hostinfo->names[i].rr_flags & 0x0080);
if(sf) {
printf("%s%s%s%s", inet_ntoa(addr), sf, name, sf);