diff --git a/net/nbtscan/Makefile b/net/nbtscan/Makefile index ffdd9d3f930..fd5368d9dbe 100644 --- a/net/nbtscan/Makefile +++ b/net/nbtscan/Makefile @@ -2,8 +2,7 @@ COMMENT= NetBIOS name network scanner GH_ACCOUNT= resurrecting-open-source-projects GH_PROJECT= nbtscan -GH_TAGNAME= 1.5.1 -REVISION= 2 +GH_TAGNAME= 1.7.2 CATEGORIES= net @@ -13,10 +12,12 @@ PERMIT_PACKAGE= Yes WANTLIB += c NO_TEST= Yes -CONFIGURE_STYLE= gnu -ALL_TARGET= nbtscan +CONFIGURE_STYLE= autoreconf +AUTOCONF_VERSION= 2.71 +AUTOMAKE_VERSION= 1.16 +#ALL_TARGET= nbtscan -do-install: +xdo-install: ${INSTALL_PROGRAM} ${WRKSRC}/nbtscan ${PREFIX}/bin .include diff --git a/net/nbtscan/distinfo b/net/nbtscan/distinfo index 902a58e5362..ef3db714c73 100644 --- a/net/nbtscan/distinfo +++ b/net/nbtscan/distinfo @@ -1,2 +1,2 @@ -SHA256 (nbtscan-1.5.1.tar.gz) = xYMCenqiNpiIXrG94+4LSmUv2Z6pC/T/ONI/cKYPp5Q= -SIZE (nbtscan-1.5.1.tar.gz) = 81502 +SHA256 (nbtscan-1.7.2.tar.gz) = AOYb58Bc06NNX+/t//+G3GrdAtTHKLIuE/ufvqu6GYQ= +SIZE (nbtscan-1.7.2.tar.gz) = 29758 diff --git a/net/nbtscan/patches/patch-nbtscan_c b/net/nbtscan/patches/patch-nbtscan_c deleted file mode 100644 index 79f7cdde245..00000000000 --- a/net/nbtscan/patches/patch-nbtscan_c +++ /dev/null @@ -1,20 +0,0 @@ ---- nbtscan.c.orig Mon Jun 2 16:05:48 2008 -+++ nbtscan.c Mon Jun 2 16:07:01 2008 -@@ -111,7 +111,7 @@ int d_print_hostinfo(struct in_addr addr, const struct - 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, const struct - 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); diff --git a/net/nbtscan/patches/patch-statusq_h b/net/nbtscan/patches/patch-statusq_h deleted file mode 100644 index a369cb6da7a..00000000000 --- a/net/nbtscan/patches/patch-statusq_h +++ /dev/null @@ -1,10 +0,0 @@ ---- statusq.h.orig Thu May 23 13:31:35 2002 -+++ statusq.h Sat Oct 8 10:08:07 2016 -@@ -103,4 +103,7 @@ typedef struct nb_service { - char* service_name; - } nb_service_t ; - -+struct nb_host_info* parse_response(char*, int); -+char* getnbservicename(my_uint8_t, int, char*); -+ - #endif /* STATUSQ_H */ diff --git a/net/nbtscan/pkg/PLIST b/net/nbtscan/pkg/PLIST index 5046eccc2e2..52e7dcd37d7 100644 --- a/net/nbtscan/pkg/PLIST +++ b/net/nbtscan/pkg/PLIST @@ -1 +1,2 @@ @bin bin/nbtscan +@man man/man1/nbtscan.1