📄 nmap-4.20-1.spec
字号:
%define name nmap%define version 4.20%define release 1%define prefix /usr# To not build the frontend, add:# --define "buildfe 0"# ...to the rpm build command-line# To build a static rpm, add:# --define "static 1"%if "%{buildfe}" != "0"%define buildfe 1%endifSummary: Network exploration tool and security scannerName: %{name}Version: %{version}Release: %{release}Epoch: 2License: http://www.insecure.org/nmap/man/man-legal.htmlGroup: Applications/SystemSource0: http://www.insecure.org/nmap/dist/%{name}-%{version}.tgzURL: http://www.insecure.org/nmap/BuildRoot: %{_tmppath}/%{name}-root# RPM can't be relocatable until I stop storing path info in the binary# Prefix: %{prefix}%descriptionNmap is a utility for network exploration or security auditing. Itsupports ping scanning (determine which hosts are up), many portscanning techniques, version detection (determine service protocolsand application versions listening behind ports), and TCP/IPfingerprinting (remote host OS or device identification). Nmap alsooffers flexible target and port specification, decoy/stealth scanning,sunRPC scanning, and more. Most Unix and Windows platforms aresupported in both GUI and commandline modes. Several popular handhelddevices are also supported, including the Sharp Zaurus and the iPAQ.%if "%{buildfe}" == "1"%package frontendSummary: Gtk+ frontend for nmapGroup: Applications/SystemRequires: nmap, gtk2BuildPreReq: gtk2-develVersion: %{version}%description frontendThis package includes nmapfe, a Gtk+ frontend for nmap. The nmap package mustbe installed before installing nmap-frontend.%endif%prep%setup -q%buildexport CFLAGS="$RPM_OPT_FLAGS"export CXXFLAGS="$RPM_OPT_FLAGS"./configure --prefix=%{prefix} --mandir=%{prefix}/share/man --without-openssl%if "%{static}" == "1"make static%elsemake%endif%install[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOTmake prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{prefix}/share/man installmkdir -p $RPM_BUILD_ROOT%{prefix}/share/applicationsstrip $RPM_BUILD_ROOT%{prefix}/bin/* || :gzip $RPM_BUILD_ROOT%{prefix}/share/man/man1/* || :%if "%{buildfe}" == "1"%post frontend%endif%if "%{buildfe}" == "1"%postun frontend%endif%clean[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT%files %defattr(-,root,root)%doc COPYING%doc docs/README%doc docs/nmap.usage.txt%{prefix}/bin/nmap%{prefix}/share/nmap%{prefix}/share/man/man1/nmap.1.gz%if "%{buildfe}" == "1"%files frontend%defattr(-,root,root)%{prefix}/bin/nmapfe%{prefix}/bin/xnmap%{prefix}/share/applications/nmapfe.desktop%{prefix}/share/man/man1/xnmap.1.gz%{prefix}/share/man/man1/nmapfe.1.gz%endif%changelog* Sat Sep 01 2004 Stephane Loeuillet (stephane.loeuillet(a)tiscali.fr)- Place .desktop file under ${prefix}/share/applications rather than ${prefix}/share/gnome/apps/Utilities* Mon Dec 16 2002 Matthieu Verbert (mve(a)zurich.ibm.com)- Place man pages under ${prefix}/share/man rather than ${prefix}/man* Fri Jun 01 2001 GOMEZ Henri (hgomez(a)slib.fr)- Patch which checks that $RPM_BUILD_ROOT is not "/" before rm'ing it.* Tue Mar 06 2001 Ben Reed <ben(a)opennms.org>- changed spec to handle not building the frontend* Thu Dec 30 1999 Fyodor (fyodor(a)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(a)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(a)insecure.org)- Merged in spec file sent in by Ian Macdonald <ianmacd(a)xs4all.nl>* Tue Dec 29 1998 Fyodor (fyodor(a)insecure.org)- Made some changes, and merged in another .spec file sent in by Oren Tirosh <oren(a)hishome.net>* Mon Dec 21 1998 Riku Meskanen (mesrik(a)cc.jyu.fi)- initial build for RH 5.x
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -