jer 14/07/14 12:37:44
Modified: nbtscan-1.5.1-script-whitespace.patch
Added: nbtscan-1.5.1-gentoo.patch
Log:
EAPI bump. Convert sed scripts to patch. Fix an off-by-one in the
${P}-script-whitespace.patch.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key
A792A613)
Revision Changes Path
1.2
net-analyzer/nbtscan/files/nbtscan-1.5.1-script-whitespace.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nbtscan/files/nbtscan-1.5.1-script-whitespace.patch?rev=1.2&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nbtscan/files/nbtscan-1.5.1-script-whitespace.patch?rev=1.2&content-type=text/plain
diff :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nbtscan/files/nbtscan-1.5.1-script-whitespace.patch?r1=1.1&r2=1.2
Index: nbtscan-1.5.1-script-whitespace.patch
===================================================================
RCS file:
/var/cvsroot/gentoo-x86/net-analyzer/nbtscan/files/nbtscan-1.5.1-script-whitespace.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- nbtscan-1.5.1-script-whitespace.patch 5 Mar 2005 07:59:38 -0000
1.1
+++ nbtscan-1.5.1-script-whitespace.patch 14 Jul 2014 12:37:44 -0000
1.2
@@ -1,8 +1,5 @@
-Only in nbtscan-1.5.1a: config.log
-Only in nbtscan-1.5.1a: config.status
-diff -u nbtscan-1.5.1a/nbtscan.c nbtscan-1.5.1a-work/nbtscan.c
---- nbtscan-1.5.1a/nbtscan.c 2003-06-06 08:14:00.000000000 -0400
-+++ nbtscan-1.5.1a-work/nbtscan.c 2003-06-30 13:20:22.000000000 -0400
+--- a/nbtscan.c
++++ b/nbtscan.c
@@ -86,7 +86,7 @@
int d_print_hostinfo(struct in_addr addr, const struct nb_host_info*
hostinfo) {
int i;
@@ -20,7 +17,7 @@
- name[16]=0;
- printf("%-17s Service: 0x%02x Flags: 0x%04x\n", name, service,
hostinfo->names[i].rr_flags);
+ strncpy(comp_name, hostinfo->names[i].ascii_name, 15);
-+ comp_name[16]=0;
++ comp_name[15]=0;
+ printf("%-17s Service: 0x%02x Flags: 0x%04x\n", comp_name, service,
hostinfo->names[i].rr_flags);
}
};
1.1 net-analyzer/nbtscan/files/nbtscan-1.5.1-gentoo.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nbtscan/files/nbtscan-1.5.1-gentoo.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nbtscan/files/nbtscan-1.5.1-gentoo.patch?rev=1.1&content-type=text/plain
Index: nbtscan-1.5.1-gentoo.patch
===================================================================
--- a/Makefile.in
+++ b/Makefile.in
@@ -11,10 +11,10 @@
BINDIR = @bindir@
nbtscan: $(OBJECTS)
- $(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o nbtscan $(OBJECTS) $(LIBS)
install:
- $(INSTALL) $(TARGET) $(BINDIR)/$(TARGET)
+ $(INSTALL) $(TARGET) $(DESTDIR)/$(BINDIR)/$(TARGET)
nbtscan.o: nbtscan.c statusq.h range.h list.h
$(CC) $(CFLAGS) $(DEFS) -c nbtscan.c