nmap/nmap.spec

Fri, 11 Mar 2011 21:36:51 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:36:51 +0100
changeset 1
4667f24fe848
parent 0
4f133201e207
permissions
-rw-r--r--

Adjust specification build configurations to port packages to MeeGo.

     1 Summary:       Network exploration tool and security scanner
     2 Vendor:        Europalab Software
     3 Packager:      Michael Schloh von Bennewitz
     4 Distribution:  MeeGo Thirdparty
     5 Name:          nmap
     6 Version:       5.21
     7 Release:       20101201
     8 URL:           http://www.nmap.org/
     9 Group:         Applications/System
    10 License:       http://nmap.org/man/man-legal.html
    11 Source0:       http://nmap.org/dist/%{name}-%{version}.tar.bz2
    12 BuildRoot:     %{_tmppath}/%{name}-root
    13 BuildRequires: openssl-devel libpcap-devel pcre-devel lua-devel
    15 # for ndiff(1) only
    16 Requires:      python >= 2.4
    18 %description
    19 Nmap ("Network Mapper") is a free and open source utility
    20 for network exploration or security auditing. Many systems and network
    21 administrators also find it useful for tasks such as network
    22 inventory, managing service upgrade schedules, and monitoring host or
    23 service uptime. Nmap uses raw IP packets in novel ways to determine
    24 what hosts are available on the network, what services (application
    25 name and version) those hosts are offering, what operating systems
    26 (and OS versions) they are running, what type of packet
    27 filters/firewalls are in use, and dozens of other characteristics. It
    28 was designed to rapidly scan large networks, but works fine against
    29 single hosts. Nmap runs on all major computer operating systems, and
    30 both console and graphical versions are available.
    32 %prep
    33 %setup -q
    35 # avoid using included copies of libraries
    36 rm -rf liblua libpcap libpcre macosx mswin32
    38 %build
    39 %configure --without-ncat --without-zenmap --with-ndiff --with-libdnet=included --with-openssl=/usr --with-libpcap=/usr --with-libpcre=/usr --with-liblua=/usr
    40 make %{?_smp_mflags}
    42 %install
    43 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    44 make install DESTDIR=$RPM_BUILD_ROOT
    45 strip $RPM_BUILD_ROOT%{_bindir}/* || :
    46 gzip $RPM_BUILD_ROOT%{_mandir}/man1/* || :
    48 %clean
    49 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
    51 %files 
    52 %defattr(-,root,root)
    53 %doc COPYING
    54 %doc docs/README
    55 %doc docs/nmap.usage.txt
    56 %doc %{_prefix}/share/man/man1/nmap.1.gz
    57 %doc %{_prefix}/share/man/*/man1/nmap.1.gz
    58 %{_bindir}/nmap
    59 %{_datadir}/nmap
    61 %{_bindir}/ndiff
    62 %doc %{_prefix}/share/man/man1/ndiff.1.gz
    64 %changelog
    65 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 5.21-20101201
    66 - Repackage for MeeGo 1.1
    67 * Sat Jun 06 2009 Fyodor (fyodor(a)insecure.org)
    68 - Removed changelog entries as SVN is a more authoritative source. Execute:
    69 - svn log --username guest --password "" svn://svn.insecure.org/nmap/nmap.spec.in

mercurial