/
nmap.spec
342 lines (263 loc) · 9.86 KB
/
nmap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# $Id$
# Authority: matthias
# Upstream: <nmap-dev$insecure,org>
### EL6 ships with nmap-5.21-3.el6
### EL5 ships with nmap-4.11-1.1
### EL4 ships with nmap-3.70-1
### EL3 ships with nmap-3.00-4.1
### EL2 ships with nmap-2.54BETA22-3
# Tag: rfx
%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
%{?el5:%define _without_python26 1}
%{?el4:%define _without_libpcapdevel 1}
%{?el4:%define _without_python24 1}
%{?el3:%define _without_libpcapdevel 1}
%{?el3:%define _without_python24 1}
%define desktop_vendor rpmforge
Summary: Network exploration tool and security scanner
Name: nmap
Version: 6.01
Release: 1%{?dist}
Epoch: 2
License: GPL
Group: Applications/System
URL: http://www.nmap.org/
Source: http://nmap.org/dist/nmap-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: libpcap
BuildRequires: openssl-devel
BuildRequires: pcre-devel
%{!?_without_libpcapdevel:BuildRequires: libpcap-devel}
%{!?_without_python24:BuildRequires: python-devel >= 2.4}
%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: Graphical frontend for nmap
Group: Applications/System
Requires: nmap = %{epoch}:%{version}
%description frontend
This package includes zenmap, a graphical frontend for nmap. The nmap package
must be installed before installing nmap-frontend.
%prep
%setup -q
%build
%configure \
--enable-ipv6
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"
%if %{!?_without_python24:1}0
%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
desktop-file-install --delete-original \
--vendor %{desktop_vendor} \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/zenmap.desktop \
%{buildroot}%{_datadir}/applications/zenmap-root.desktop
%endif
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc CHANGELOG COPYING* HACKING docs/*.txt docs/README
%doc %{_mandir}/man1/ncat.1*
%{!?_without_python24:%doc %{_mandir}/man1/ndiff.1*}
%doc %{_mandir}/man1/nmap.1*
%lang(de) %{_mandir}/de/man1/nmap.1*
%lang(es) %{_mandir}/es/man1/nmap.1*
%lang(fr) %{_mandir}/fr/man1/nmap.1*
%lang(hr) %{_mandir}/hr/man1/nmap.1*
%lang(hu) %{_mandir}/hu/man1/nmap.1*
%lang(it) %{_mandir}/it/man1/nmap.1*
%lang(jp) %{_mandir}/jp/man1/nmap.1*
%lang(pl) %{_mandir}/pl/man1/nmap.1*
%lang(pt_BR) %{_mandir}/pt_BR/man1/nmap.1*
%lang(pt_PT) %{_mandir}/pt_PT/man1/nmap.1*
%lang(ro) %{_mandir}/ro/man1/nmap.1*
%lang(ru) %{_mandir}/ru/man1/nmap.1*
%lang(sk) %{_mandir}/sk/man1/nmap.1*
%lang(zh) %{_mandir}/zh/man1/nmap.1*
%doc %{_mandir}/man1/nping.1*
%{_bindir}/ncat
%{!?_without_python24:%{_bindir}/ndiff}
%{_bindir}/nmap
%{_bindir}/nping
%{_datadir}/ncat/
%{_datadir}/nmap/
%if %{!?_without_python24:1}0
%files frontend
%defattr(-, root, root, 0755)
%doc %{_mandir}/man1/zenmap.1*
%{_bindir}/nmapfe
%{_bindir}/uninstall_zenmap
%{_bindir}/xnmap
%{_bindir}/zenmap
%{_datadir}/applications/%{desktop_vendor}-zenmap.desktop
%{_datadir}/applications/%{desktop_vendor}-zenmap-root.desktop
%{_datadir}/zenmap/
%{python_sitelib}/radialnet/
%{!?_without_python26:%{python_sitelib}/zenmap-%{version}-py*.egg-info}
%{python_sitelib}/zenmapCore/
%{python_sitelib}/zenmapGUI/
%endif
%changelog
* Tue Jun 19 2012 David Hrbáč <david@hrbac.cz> - 2:6.01-1
- new upstream release
* Mon May 28 2012 David Hrbáč <david@hrbac.cz> - 2:6.00-1
- new upstream release
* Sat Jan 21 2012 David Hrbáč <david@hrbac.cz> - 2:5.51.6-1
- new upstream release
* Mon Feb 21 2011 David Hrbáč <david@hrbac.cz> - 2:5.51-1
- new upstream release
* Fri Sep 03 2010 David Hrbáč <david@hrbac.cz> - 5.21-1
- Updated to release 5.21.
* Fri Jul 17 2009 Dag Wieers <dag@wieers.com> - 5.00-1
- Updated to release 5.00.
* Thu Dec 13 2007 Dag Wieers <dag@wieers.com> - 4.50-1
- Updated to release 4.50.
* Sun Dec 10 2006 Dag Wieers <dag@wieers.com> - 4.20-1
- Updated to release 4.20.
* Thu Jun 29 2006 Dag Wieers <dag@wieers.com> - 4.11-1
- Updated to release 4.11.
* Wed Jun 14 2006 Dag Wieers <dag@wieers.com> - 4.10-1
- Updated to release 4.10.
* Mon Apr 24 2006 Matthias Saou <http://freshrpms.net/> 4.03-1
- Update to 4.03.
* Sun Feb 12 2006 Dag Wieers <dag@wieers.com> - 4.01-2
- Updated release to fix the checksum problems (how lame).
* Sun Feb 12 2006 Dag Wieers <dag@wieers.com> - 4.01-1
- Updated to release 4.01.
* Tue Jan 31 2006 Dag Wieers <dag@wieers.com> - 4.00-1
- Updated to release 4.00.
* Tue Sep 13 2005 Matthias Saou <http://freshrpms.net/> 3.93-0
- Update to 3.93.
* Thu Sep 8 2005 Matthias Saou <http://freshrpms.net/> 3.90-0
- Update to 3.90.
* Mon Feb 07 2005 Dag Wieers <dag@wieers.com> - 3.81-1
- Updated to release 3.81.
* Tue Oct 19 2004 Matthias Saou <http://freshrpms.net/> 3.75-0
- Update to 3.75.
* Mon Sep 6 2004 Matthias Saou <http://freshrpms.net/> 3.70-2
- Fix menu entry (TryExec vs. Exec).
* Wed Sep 1 2004 Matthias Saou <http://freshrpms.net/> 3.70-1
- Update to 3.70.
- Enable IPv6.
* Thu Jul 15 2004 Matthias Saou <http://freshrpms.net/> 3.55-1
- Update to 3.55.
* Wed May 5 2004 Matthias Saou <http://freshrpms.net/> 3.50-1
- Update to 3.50.
- Minor spec cleanups.
* Fri Nov 7 2003 Matthias Saou <http://freshrpms.net/> 3.48-2
- Rebuild for Fedora Core 1.
- Added openssl support, it works at last!
* Mon Oct 6 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.48.
- Added proper build requirements, still no openssl though.
* Tue Sep 16 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.45.
* Mon Jun 30 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.30.
* Thu Jun 19 2003 Matthias Saou <http://freshrpms.net/>
- Added epoch in the frontend's requirement to make rpm 4.2.1 happy.
* Tue Jun 17 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.28.
* Sun Apr 27 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.26.
* Tue Apr 22 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.25.
* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
- Rebuilt for Red Hat Linux 9.
* Fri Mar 21 2003 Matthias Saou <http://freshrpms.net/>
- Update to 3.20.
- Spec file cleanup.
- Added desktop entry.
* Thu Jan 9 2003 Harald Hoyer <harald@redhat.de> 3.0-3
- nmap-3.00-nowarn.patch added
* Mon Nov 18 2002 Tim Powers <timp@redhat.com>
- rebuild on all arches
- remove old desktop file from $$RPM_BUILD_ROOT so rpm won't complain
* Thu Aug 1 2002 Harald Hoyer <harald@redhat.de>
- version 3.0
* Mon Jul 29 2002 Harald Hoyer <harald@redhat.de> 2.99.2-1
- bumped version
* Fri Jul 26 2002 Harald Hoyer <harald@redhat.de> 2.99.1-2
- bumped version to 2.99RC1
* Fri Jul 19 2002 Florian La Roche <Florian.LaRoche@redhat.de>
- add an epoch
* Mon Jul 1 2002 Harald Hoyer <harald@redhat.de> 2.54.36-1
- removed desktop file
- removed "BETA" name from version
- update to BETA36
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Sun May 26 2002 Tim Powers <timp@redhat.com>
- automated rebuild
* Wed May 22 2002 Harald Hoyer <harald@redhat.de> 2.54BETA34-1
- update to 2.54BETA34
* Mon Mar 25 2002 Harald Hoyer <harald@redhat.com>
- more recent version (#61490)
* Mon Jul 23 2001 Harald Hoyer <harald@redhat.com>
- buildprereq for nmap-frontend (#49644)
* Sun Jul 22 2001 Heikki Korpela <heko@iki.fi>
- buildrequire gtk+
* Tue Jul 10 2001 Tim Powers <timp@redhat.com>
- fix bugs in desktop file (#48341)
* Wed May 16 2001 Tim Powers <timp@redhat.com>
- updated to 2.54BETA22
* Mon Nov 20 2000 Tim Powers <timp@redhat.com>
- rebuilt to fix bad dir perms
* Fri Nov 3 2000 Tim Powers <timp@redhat.com>
- fixed nmapdatadir in the install section, forgot lto include
$RPM_BUILD_ROOT in the path
* Thu Nov 2 2000 Tim Powers <timp@redhat.com>
- 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 <prospector@redhat.com>
- rebuilt
* Mon Jul 10 2000 Tim Powers <timp@redhat.com>
- rebuilt
* Wed Jun 28 2000 Tim Powers <timp@redhat.com>
- rebuilt package
* Thu Jun 8 2000 Tim Powers <timp@redhat.com>
- 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 <timp@redhat.com>
- 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 <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 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 <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