From b9eae41d1f51406020824eadc2f006601478d87e Mon Sep 17 00:00:00 2001 From: Sindre Pedersen Bjørdal Date: May 11 2007 23:46:11 +0000 Subject: add files to branch --- diff --git a/nbtscan-1.5.1-makefile.patch b/nbtscan-1.5.1-makefile.patch new file mode 100644 index 0000000..c792e33 --- /dev/null +++ b/nbtscan-1.5.1-makefile.patch @@ -0,0 +1,21 @@ +--- nbtscan-1.5.1a/Makefile.in.orig 2007-05-05 21:14:22.000000000 +0200 ++++ nbtscan-1.5.1a/Makefile.in 2007-05-05 21:15:00.000000000 +0200 +@@ -6,6 +6,9 @@ OBJECTS=nbtscan.o statusq.o range.o list + DEFS=@DEFS@ + TARGET=@TARGET@ + ++#for Fedora ++DESTDIR= ++ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + BINDIR = @bindir@ +@@ -14,7 +17,7 @@ nbtscan: $(OBJECTS) + $(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS) + + install: +- $(INSTALL) $(TARGET) $(BINDIR)/$(TARGET) ++ $(INSTALL) -D $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) + + nbtscan.o: nbtscan.c statusq.h range.h list.h + $(CC) $(CFLAGS) $(DEFS) -c nbtscan.c diff --git a/nbtscan.spec b/nbtscan.spec new file mode 100644 index 0000000..ac1ee45 --- /dev/null +++ b/nbtscan.spec @@ -0,0 +1,45 @@ +Name: nbtscan +Version: 1.5.1 +Release: 1%{?dist} +Summary: Tool to gather NetBIOS info from Windows networks + +Group: Applications/Internet +License: GPL +URL: http://www.inetcat.net/software/nbtscan.html +Source0: http://www.inetcat.net/software/%{name}-%{version}.tar.gz +#add $DESTDIR to make install +Patch0: nbtscan-1.5.1-makefile.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +NBTscan is a program for scanning IP networks for NetBIOS name information. +It sends a NetBIOS status query to each address in supplied range and lists +received information in human readable form. + +%prep +%setup -qn %{name}-%{version}a +%patch0 -p1 + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING README +%{_bindir}/* + + +%changelog +* Sat May 05 2007 Sindre Pedersen Bjørdal - 1.5.1-1 +- Initial build diff --git a/sources b/sources index e69de29..c222513 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +85bb085077c380b82a6ff73e0de0c154 nbtscan-1.5.1.tar.gz