pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/nbtscan Add distfile patch:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0baac3404ee
branches:  trunk
changeset: 642001:f0baac3404ee
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun Nov 23 00:05:30 2014 +0000

description:
Add distfile patch:
        - pass -Wall, use <ctype.h> correctly, use standard headers, etc.
        - fix up illegal printf usage (existing behavior was undefined)
        - roll in the bug fix from patch-ac
        - declare own functions properly, avoiding LP64 issues

Bump PKGREVISION as some of this fixes bugs.

Prompted by (and includes changes from) PR 49347 from Rob Quinn.

diffstat:

 net/nbtscan/Makefile         |   8 ++++++--
 net/nbtscan/distinfo         |   6 ++++--
 net/nbtscan/patches/patch-ac |  24 ------------------------
 3 files changed, 10 insertions(+), 28 deletions(-)

diffs (63 lines):

diff -r 82b75f86f386 -r f0baac3404ee net/nbtscan/Makefile
--- a/net/nbtscan/Makefile      Sat Nov 22 22:20:45 2014 +0000
+++ b/net/nbtscan/Makefile      Sun Nov 23 00:05:30 2014 +0000
@@ -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@localhost
 HOMEPAGE=      http://www.inetcat.net/software/nbtscan.html
 COMMENT=       NetBIOS name network scanner
diff -r 82b75f86f386 -r f0baac3404ee net/nbtscan/distinfo
--- a/net/nbtscan/distinfo      Sat Nov 22 22:20:45 2014 +0000
+++ b/net/nbtscan/distinfo      Sun Nov 23 00:05:30 2014 +0000
@@ -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
diff -r 82b75f86f386 -r f0baac3404ee net/nbtscan/patches/patch-ac
--- a/net/nbtscan/patches/patch-ac      Sat Nov 22 22:20:45 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index