Group :: Monitoramento
RPM: nmap
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: nmap
Version: 4.20
Release: alt3
Serial: 20020501
Summary: Network exploration tool and security scanner
License: GPL
Group: Monitoring
Url: http://www.insecure.org/nmap
Packager: Dmitry V. Levin <ldv at altlinux.org>
%define srcname nmap-%version
Source: %url/dist/%srcname.tar
Source1: nmapfe-16.png
Source2: nmapfe-32.png
Source3: nmapfe-48.png
Patch1: nmap-4.11-alt-autoheader.patch
Patch2: nmap-4.20-alt-owl-drop-priv.patch
Patch3: nmap-4.01-alt-dot-dir.patch
Patch4: nmap-4.20-alt-owl-fileexistsandisreadable.patch
Patch5: nmap-4.04-alt-libdnet.patch
Patch6: nmap-4.01-alt-nmapfe.desktop.patch
Patch7: nmap-4.20-owl-osscan.patch
Requires: chrooted-resolv, libdnet >= 0:1.11-alt4
BuildRequires: gcc-c++, libcap-devel, libdnet-devel, libgtk+2-devel
BuildRequires: libpcap-devel >= 2:0.8, libpcre-devel, libssl-devel
%package frontend
Summary: Gtk+ frontend for nmap
Group: Monitoring
Requires: %name = %serial:%version-%release
Provides: nmapfe = %version-%release
%description
Nmap is an utility for network exploration or security auditing.
It supports ping scanning (determine which hosts are up), many port
scanning techniques, version detection (determine service protocols and
application versions listening behind ports), and TCP/IP fingerprinting
(remote host OS or device identification). Nmap also offers flexible
target and port specification, decoy/stealth scanning, Sun RPC scanning,
and more.
%description frontend
This package includes nmapfe, a Gtk+ frontend for nmap.
%prep
%setup -q -n %srcname
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
find -type f -name \*.orig -delete -print
bzip2 -9 CHANGELOG
%build
aclocal
autoheader
autoconf
export ac_cv_header_libiberty_h=no
%configure \
--with-libdnet \
--with-user=nmapuser \
--with-chroot-empty=/var/empty \
--with-chroot-resolv=/var/resolv \
#
%make_build
%install
%make_install install DESTDIR=%buildroot
install -pD -m644 %_sourcedir/nmapfe-16.png %buildroot%_miconsdir/nmapfe.png
install -pD -m644 %_sourcedir/nmapfe-32.png %buildroot%_niconsdir/nmapfe.png
install -pD -m644 %_sourcedir/nmapfe-48.png %buildroot%_liconsdir/nmapfe.png
%pre
/usr/sbin/groupadd -r -f nmapuser
/usr/sbin/useradd -r -g nmapuser -d /dev/null -s /dev/null -n nmapuser >/dev/null 2>&1 ||:
%post frontend
%update_menus
%postun frontend
%clean_menus
%files
%_bindir/nmap
%_datadir/nmap
%_man1dir/nmap.*
%doc CHANGELOG.bz2 docs/{README,*.txt}
%files frontend
%_bindir/nmapfe
%_bindir/xnmap
%_man1dir/nmapfe.*
%_man1dir/xnmap.*
%_desktopdir/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%changelog
…
Todas as alterações você pod ver aqui
Version: 4.20
Release: alt3
Serial: 20020501
Summary: Network exploration tool and security scanner
License: GPL
Group: Monitoring
Url: http://www.insecure.org/nmap
Packager: Dmitry V. Levin <ldv at altlinux.org>
%define srcname nmap-%version
Source: %url/dist/%srcname.tar
Source1: nmapfe-16.png
Source2: nmapfe-32.png
Source3: nmapfe-48.png
Patch1: nmap-4.11-alt-autoheader.patch
Patch2: nmap-4.20-alt-owl-drop-priv.patch
Patch3: nmap-4.01-alt-dot-dir.patch
Patch4: nmap-4.20-alt-owl-fileexistsandisreadable.patch
Patch5: nmap-4.04-alt-libdnet.patch
Patch6: nmap-4.01-alt-nmapfe.desktop.patch
Patch7: nmap-4.20-owl-osscan.patch
Requires: chrooted-resolv, libdnet >= 0:1.11-alt4
BuildRequires: gcc-c++, libcap-devel, libdnet-devel, libgtk+2-devel
BuildRequires: libpcap-devel >= 2:0.8, libpcre-devel, libssl-devel
%package frontend
Summary: Gtk+ frontend for nmap
Group: Monitoring
Requires: %name = %serial:%version-%release
Provides: nmapfe = %version-%release
%description
Nmap is an utility for network exploration or security auditing.
It supports ping scanning (determine which hosts are up), many port
scanning techniques, version detection (determine service protocols and
application versions listening behind ports), and TCP/IP fingerprinting
(remote host OS or device identification). Nmap also offers flexible
target and port specification, decoy/stealth scanning, Sun RPC scanning,
and more.
%description frontend
This package includes nmapfe, a Gtk+ frontend for nmap.
%prep
%setup -q -n %srcname
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
find -type f -name \*.orig -delete -print
bzip2 -9 CHANGELOG
%build
aclocal
autoheader
autoconf
export ac_cv_header_libiberty_h=no
%configure \
--with-libdnet \
--with-user=nmapuser \
--with-chroot-empty=/var/empty \
--with-chroot-resolv=/var/resolv \
#
%make_build
%install
%make_install install DESTDIR=%buildroot
install -pD -m644 %_sourcedir/nmapfe-16.png %buildroot%_miconsdir/nmapfe.png
install -pD -m644 %_sourcedir/nmapfe-32.png %buildroot%_niconsdir/nmapfe.png
install -pD -m644 %_sourcedir/nmapfe-48.png %buildroot%_liconsdir/nmapfe.png
%pre
/usr/sbin/groupadd -r -f nmapuser
/usr/sbin/useradd -r -g nmapuser -d /dev/null -s /dev/null -n nmapuser >/dev/null 2>&1 ||:
%post frontend
%update_menus
%postun frontend
%clean_menus
%files
%_bindir/nmap
%_datadir/nmap
%_man1dir/nmap.*
%doc CHANGELOG.bz2 docs/{README,*.txt}
%files frontend
%_bindir/nmapfe
%_bindir/xnmap
%_man1dir/nmapfe.*
%_man1dir/xnmap.*
%_desktopdir/*
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%changelog
…
Todas as alterações você pod ver aqui