diff --git a/.cvsignore b/.cvsignore index e69de29..5c35450 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +nmap-2.54BETA22.tgz diff --git a/inet_aton.patch b/inet_aton.patch new file mode 100644 index 0000000..bfb1040 --- /dev/null +++ b/inet_aton.patch @@ -0,0 +1,28 @@ +--- nmap-2.53/tcpip.h.orig Tue May 16 18:21:58 2000 ++++ nmap-2.53/tcpip.h Tue May 16 18:22:09 2000 +@@ -354,9 +354,9 @@ + /* Hex dump */ + int get_link_offset(char *device); + char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec); +-#ifndef HAVE_INET_ATON ++/*#ifndef HAVE_INET_ATON + int inet_aton(register const char *, struct in_addr *); +-#endif ++#endif*/ + + + #endif /*TCPIP_H*/ +--- nmap-2.53/nmap.h.orig Tue May 16 18:18:00 2000 ++++ nmap-2.53/nmap.h Tue May 16 18:18:30 2000 +@@ -362,9 +362,9 @@ + void skid_output(unsigned char *s); + + /* From glibc 2.0.6 because Solaris doesn't seem to have this function */ +-#ifndef HAVE_INET_ATON ++/*#ifndef HAVE_INET_ATON + int inet_aton(register const char *, struct in_addr *); +-#endif ++#endif*/ + #ifndef HAVE_SNPRINTF + int snprintf ( char *str, size_t n, const char *format, ... ); + #endif diff --git a/makefile.patch b/makefile.patch new file mode 100644 index 0000000..531b203 --- /dev/null +++ b/makefile.patch @@ -0,0 +1,12 @@ +--- nmap-2.53/Makefile.in.tim Thu Jun 8 17:41:49 2000 ++++ nmap-2.53/Makefile.in Thu Jun 8 17:43:24 2000 +@@ -7,7 +7,8 @@ + sbindir = @sbindir@ + mandir = @mandir@ + srcdir = @srcdir@ +-nmapdatadir = @datadir@/nmap ++datadir = @datadir@ ++nmapdatadir = $(datadir)/nmap + deskdir = $(prefix)/share/gnome/apps/Utilities + + CC = @CC@ diff --git a/nmap.spec b/nmap.spec new file mode 100644 index 0000000..6a8189d --- /dev/null +++ b/nmap.spec @@ -0,0 +1,133 @@ +Summary: Network exploration tool and security scanner +Name: nmap +Version: 2.54BETA22 +Release: 2 +Copyright: GPL +Group: Applications/System +Source0: http://www.insecure.org/nmap/%{name}-%{version}.tgz +Source1: nmapfe.desktop +Patch0: inet_aton.patch +Patch1: makefile.patch +URL: http://www.insecure.org/nmap/ +BuildRoot: %{_tmppath}/%{name}-root + +%description +Nmap is a utility for network exploration or security auditing. It supports +ping scanning (determine which hosts are up), many port scanning techniques +(determine what services the hosts are offering), and TCP/IP fingerprinting +(remote host operating system identification). Nmap also offers flexible target +and port specification, decoy scanning, determination of TCP sequence +predictability characteristics, reverse-identd scanning, and more. + +%package frontend +Summary: Gtk+ frontend for nmap +Group: Applications/System +Requires: nmap = %{PACKAGE_VERSION} , gtk+ +%description frontend +This package includes nmapfe, a Gtk+ frontend for nmap. The nmap package must +be installed before installing nmap-frontend. + +%prep +%setup -q + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall nmapdatadir=$RPM_BUILD_ROOT%{_datadir}/nmap + +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Utilities/ +install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Utilities/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc COPYING +%doc docs/README docs/copying.html docs/nmap-fingerprinting-article.txt +%doc docs/nmap.deprecated.txt docs/nmap.usage.txt docs/nmap_doc.html +%doc docs/nmap_manpage.html +%{_bindir}/nmap +%{_datadir}/nmap +%{_mandir}/man1/nmap.1.gz + +%files frontend +%defattr(-,root,root) +%{_bindir}/nmapfe +%{_bindir}/xnmap +%{_sysconfdir}/X11/applnk/Utilities/nmapfe.desktop +%{_mandir}/man1/nmapfe.1.gz +%{_mandir}/man1/xnmap.1.gz + +%changelog +* Tue Jul 10 2001 Tim Powers +- fix bugs in desktop file (#48341) + +* Wed May 16 2001 Tim Powers +- updated to 2.54BETA22 + +* Mon Nov 20 2000 Tim Powers +- rebuilt to fix bad dir perms + +* Fri Nov 3 2000 Tim Powers +- fixed nmapdatadir in the install section, forgot lto include + $RPM_BUILD_ROOT in the path + +* Thu Nov 2 2000 Tim Powers +- update to nmap-2.54BETA7 to possibly fix bug #20199 +- use the desktop file provided by the package instead of using my own +- patches in previous version are depreciated. Included in SRPM for + reference only + +* Mon Jul 24 2000 Prospector +- rebuilt + +* Mon Jul 10 2000 Tim Powers +- rebuilt + +* Wed Jun 28 2000 Tim Powers +- rebuilt package + +* Thu Jun 8 2000 Tim Powers +- fixed man pages so that they are in an FHS compliant location +- use %%makeinstall +- use predefined RPM macros wherever possible + +* Tue May 16 2000 Tim Powers +- updated to 2.53 +- using applnk now +- use %configure, and %{_prefix} where possible +- removed redundant defines at top of spec file + +* Mon Dec 13 1999 Tim Powers +- based on origional spec file from + http://www.insecure.org/nmap/index.html#download +- general cleanups, removed lots of commenrts since it madethe spec hard to + read +- changed group to Applications/System +- quiet setup +- no need to create dirs in the install section, "make + prefix=$RPM_BUILD_ROOT&{prefix} install" does this. +- using defined %{prefix}, %{version} etc. for easier/quicker maint. +- added docs +- gzip man pages +- strip after files have been installed into buildroot +- created separate package for the frontend so that Gtk+ isn't needed for the + CLI nmap +- not using -f in files section anymore, no need for it since there aren't that + many files/dirs +- added desktop entry for gnome + +* Sun Jan 10 1999 Fyodor +- Merged in spec file sent in by Ian Macdonald + +* Tue Dec 29 1998 Fyodor +- Made some changes, and merged in another .spec file sent in + by Oren Tirosh + +* Mon Dec 21 1998 Riku Meskanen +- initial build for RH 5.x diff --git a/nmapfe.desktop b/nmapfe.desktop new file mode 100644 index 0000000..07c80a2 --- /dev/null +++ b/nmapfe.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Nmapfe +Comment=Gtk+ frontend to nmap +Exec=nmapfe +Terminal=0 +Type=Application diff --git a/sources b/sources index e69de29..80f353f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +325f553a42461b78ce65fc91418fa256 nmap-2.54BETA22.tgz