rpms/nbtscan/EL-4 nbtscan-1.5.1-makefile.patch, NONE, 1.1 nbtscan.spec, NONE, 1.1
Sindre Pedersen Bjørdal (sindrepb)
fedora-extras-commits at redhat.com
Fri May 11 23:44:37 UTC 2007
Author: sindrepb
Update of /cvs/extras/rpms/nbtscan/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3496
Added Files:
nbtscan-1.5.1-makefile.patch nbtscan.spec
Log Message:
add files to branch
nbtscan-1.5.1-makefile.patch:
--- NEW FILE nbtscan-1.5.1-makefile.patch ---
--- 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
--- NEW FILE nbtscan.spec ---
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 <foolish[AT]guezz.net> - 1.5.1-1
- Initial build
More information about the fedora-extras-commits
mailing list