home *** CD-ROM | disk | FTP | other *** search
- %define name nmap
- %define version 2.53
- %define release 1
- %define prefix /usr
-
- Summary: Network exploration tool and security scanner
- Name: %{name}
- Version: %{version}
- Release: %{release}
- Copyright: GPL
- Group: Applications/System
- Source0: http://www.insecure.org/nmap/dist/%{name}-%{version}.tgz
- URL: http://www.insecure.org/nmap/
- BuildRoot: /var/tmp/%{name}-root
- # RPM can't be relocatable until I stop storing path info in the binary
- # Prefix: %{prefix}
-
- %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, sunRPC scanning, reverse-identd
- scanning, and more.
-
- %package frontend
- Summary: Gtk+ frontend for nmap
- Group: Applications/System
- Requires: nmap, gtk+
- Version: 0.%{version}
- %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
- CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
- make
-
- %install
- rm -rf $RPM_BUILD_ROOT
-
- make prefix=$RPM_BUILD_ROOT%{prefix} install
-
- mkdir -p $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Utilities
-
- strip $RPM_BUILD_ROOT%{prefix}/bin/* || :
- gzip $RPM_BUILD_ROOT%{prefix}/man/man1/* || :
-
- %post frontend
- rm -f ${prefix}/bin/xnmap
- ln -s nmapfe ${prefix}/bin/xnmap
-
- %postun frontend
- rm -f ${prefix}/bin/xnmap
-
- %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 docs/nmap_manpage-es.html docs/nmap_manpage-fr.html
- %{prefix}/bin/nmap
- %{prefix}/share/nmap
- %{prefix}/man/man1/nmap.1.gz
-
- %files frontend
- %defattr(-,root,root)
- %{prefix}/bin/nmapfe
- %{prefix}/bin/xnmap
- %{prefix}/share/gnome/apps/Utilities/nmapfe.desktop
- %{prefix}/man/man1/xnmap.1.gz
- %{prefix}/man/man1/nmapfe.1.gz
-
- %changelog
- * Thu Dec 30 1999 Fyodor <fyodor@insecure.org>
- - Updated description
- - Eliminated source1 (nmapfe.desktop) directive and simply packaged it with Nmap
- - Fixed nmap distribution URL (source0)
- - Added this .rpm to base Nmap distribution
-
- * Mon Dec 13 1999 Tim Powers <timp@redhat.com>
- - based on origional spec file from
- http://www.insecure.org/nmap/index.html#download
- - general cleanups, removed lots of commenrts since it made the 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 <fyodor@dhp.com>
- - Merged in spec file sent in by Ian Macdonald <ianmacd@xs4all.nl>
-
- * Tue Dec 29 1998 Fyodor <fyodor@dhp.com>
- - Made some changes, and merged in another .spec file sent in
- by Oren Tirosh <oren@hishome.net>
-
- * Mon Dec 21 1998 Riku Meskanen <mesrik@cc.jyu.fi>
- - initial build for RH 5.x
-
-
-
-
-
-
-
-
-
-
-
-