]>
Commit | Line | Data |
---|---|---|
305a2239 | 1 | # |
aeadad66 JB |
2 | # Conditional build: |
3 | %bcond_with system_dnet # use system libdnet instead of local modified version | |
cd6b49b0 | 4 | %bcond_without python # Python2 based scripts (zenmap, ndiff) |
305a2239 | 5 | %bcond_without lua # Nmap Scripting Engine (lua based) |
a1beea80 | 6 | |
38195be6 | 7 | Summary: Network exploration tool and security scanner |
193ac149 ER |
8 | Summary(es.UTF-8): Herramienta de exploración de la rede y seguridad |
9 | Summary(pl.UTF-8): Program do badania i audytu sieci | |
10 | Summary(pt_BR.UTF-8): Ferramenta de exploração da rede e segurança | |
11 | Summary(ru.UTF-8): Утилита сканирования сети и аудита безопасности | |
12 | Summary(uk.UTF-8): Утиліта сканування мережі та аудиту безпеки | |
e03875c7 | 13 | Name: nmap |
9cfffc6e | 14 | Version: 7.93 |
2074e6fc | 15 | Release: 2 |
a9ac6b28 | 16 | License: Nmap Public Source License |
e724755e | 17 | Group: Networking/Utilities |
d447c83e | 18 | Source0: https://nmap.org/dist/%{name}-%{version}.tar.bz2 |
9cfffc6e | 19 | # Source0-md5: 9027eac4b8ca57574012cb061ba9ce4d |
cd6b49b0 KM |
20 | Patch0: %{name}-desktop.patch |
21 | Patch1: ncat-system-ssl.patch | |
22 | Patch2: %{name}-pythondir.patch | |
40493182 JB |
23 | URL: http://nmap.org/ |
24 | BuildRequires: autoconf >= 2.50 | |
79634533 | 25 | BuildRequires: automake |
ef276a3d | 26 | BuildRequires: gettext-tools |
ba925282 | 27 | %{?with_system_dnet:BuildRequires: libdnet-devel} |
758fc672 | 28 | BuildRequires: liblinear-devel |
d9a19e6a | 29 | BuildRequires: libpcap-devel |
d0fd1458 | 30 | BuildRequires: libstdc++-devel |
299cad66 | 31 | BuildRequires: libtool |
38352529 | 32 | %{?with_lua:BuildRequires: lua53-devel >= 5.3} |
f2d74391 JB |
33 | BuildRequires: openssl-devel |
34 | BuildRequires: pcre-devel | |
66bb13b2 | 35 | BuildRequires: python-devel >= 1:2.4 |
d9a19e6a | 36 | BuildRequires: rpm-pythonprov |
a1beea80 | 37 | BuildRequires: rpmbuild(macros) >= 1.672 |
299cad66 | 38 | BuildRequires: sed >= 4.0 |
2f850e6d JB |
39 | %if %{with python} |
40 | Suggests: %{name}-ndiff = %{version}-%{release} | |
41 | %endif | |
72a95fd7 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3cc8cd55 | 43 | |
70ebeddc BS |
44 | #java code is run on target |
45 | %define _noautoreqfiles %{_datadir}/nmap/nselib/data/jdwp-class/.* | |
46 | ||
3cc8cd55 | 47 | %description |
38195be6 | 48 | Nmap is a utility for network exploration or security auditing. It |
49 | supports ping scanning (determine which hosts are up), many port | |
50 | scanning techniques (determine what services the hosts are offering), | |
51 | and TCP/IP fingerprinting (remote host operating system | |
52 | identification). Nmap also offers flexible target and port | |
53 | specification, decoy scanning, determination of TCP sequence | |
54 | predictability characteristics, sunRPC scanning, reverse-identd | |
55 | scanning, and more. | |
32f6323a | 56 | |
57 | nmap supports a large number of scanning techniques such as: UDP, TCP | |
702f2f0b | 58 | connect(), TCP SYN (half open), FTP proxy (bounce attack), |
b7de54c2 SZ |
59 | Reverse-ident, ICMP (ping sweep), FIN, ACK sweep, Xmas Tree, SYN |
60 | sweep, and Null scan. | |
3cc8cd55 | 61 | |
bdd6e6bd JR |
62 | %description -l es.UTF-8 |
63 | Nmap es un utilitario para la exploración y auditoría de redes. | |
64 | Soporta "ping scanning", varias técnicas de búsqueda de puertos | |
65 | abiertos, e identificación remota de sistemas operacionales vía | |
46421b79 | 66 | impresiones digitales TCP/IP. |
67 | ||
bdd6e6bd | 68 | %description -l pl.UTF-8 |
38195be6 | 69 | Nmap jest programem przeznaczonym do badania i audytu sieci. Wspiera |
bdd6e6bd JR |
70 | różne techniki skanowania (badanie jakie usługi są uruchomione na |
71 | danym hoście), a także TCP/IP fingerprinting (zdalne rozpoznawanie | |
72 | typu systemu operacyjnego). Nmap oferuje różne techniki skanowania | |
73 | wykorzystujące: UDP, TCP connect(), TCP SYN (half open), FTP proxy | |
38195be6 | 74 | (bounce attack), Reverse-ident, ICMP (ping sweep), FIN, ACK sweep, |
1d4c1618 | 75 | Xmas Tree, SYN sweep i Null scan. |
b7de54c2 | 76 | |
bdd6e6bd JR |
77 | %description -l pt_BR.UTF-8 |
78 | Nmap é um utilitário para a exploração e auditoria de redes. Ele | |
79 | suporta "ping scanning", várias técnicas de procura por portas | |
80 | abertas, e identificação remota de sistemas operacionais via | |
81 | impressões digitais TCP/IP. | |
46421b79 | 82 | |
bdd6e6bd JR |
83 | %description -l ru.UTF-8 |
84 | Nmap - это утилита для изучения сети и аудита безопасности. Она | |
85 | поддерживает ping-сканирование (определение, какие хосты работают), | |
86 | много методик сканирования портов (определение, какие сервисы | |
87 | предоставляют хосты), и "отпечатки пальцев" TCP/IP (идентификация | |
88 | операционной системы хоста). Nmap также поддерживает гибкое задание | |
89 | цели и порта, скрытое сканирование (decoy scanning), определение | |
90 | характеристик предсказуемости TCP sequence, сканирование sunRPC, | |
91 | reverse-identd сканирование и другое. | |
38195be6 | 92 | |
bdd6e6bd JR |
93 | %description -l uk.UTF-8 |
94 | Nmap - це утиліта для дослідження мережі та аудиту безпеки. Вона | |
95 | підтримує ping-сканування (визначення, які хости працюють), багато | |
96 | методик сканування портів (визначення, які сервіси надають хости), та | |
97 | "відбитки пальців" TCP/IP (ідентифікація операційної системи хоста). | |
98 | Nmap також підтримує гнучке задання цілі та порта, приховане | |
99 | сканування (decoy scanning), визначення характеристик передбачуваності | |
100 | TCP sequence, сканування sunRPC, reverse-identd сканування та інше. | |
38195be6 | 101 | |
a9ac6b28 | 102 | %package java |
76d1ff0e JB |
103 | Summary: NSE scripts that require Java |
104 | Summary(pl.UTF-8): Skrypty NSE wykorzystujące Javę | |
a9ac6b28 AM |
105 | Group: Applications/Networking |
106 | Requires: %{name} = %{version}-%{release} | |
107 | ||
108 | %description java | |
76d1ff0e JB |
109 | NSE scripts that require Java. |
110 | ||
111 | %description java -l pl.UTF-8 | |
112 | Skrypty NSE wykorzystujące Javę. | |
a9ac6b28 | 113 | |
d7d80c0b ER |
114 | %package ncat |
115 | Summary: Nmap's Netcat replacement | |
305a2239 | 116 | Summary(pl.UTF-8): Zamiennik Netcata z pakietu Nmap |
d7d80c0b | 117 | Group: Applications/System |
75118c0d | 118 | Requires: ca-certificates |
d7d80c0b | 119 | Provides: nc |
6d53ff56 | 120 | Conflicts: nmap < 6.47-3 |
d7d80c0b ER |
121 | |
122 | %description ncat | |
123 | Ncat is a feature packed networking utility which will read and write | |
124 | data across a network from the command line. It uses both TCP and UDP | |
125 | for communication and is designed to be a reliable back-end tool to | |
126 | instantly provide network connectivity to other applications and | |
127 | users. Ncat will not only work with IPv4 and IPv6 but provides the | |
128 | user with a virtually limitless number of potential uses. | |
129 | ||
305a2239 JB |
130 | %description ncat -l pl.UTF-8 |
131 | Ncat to narzędzie sieciowe o wielu możliwościach, czytające i | |
132 | zapisujące dane przez sieć z linii poleceń. Do komunikacji używa | |
133 | zarówno TCP, jak i UDP; jest zaprojektowane jako wiarygodne narzędzie | |
134 | backendowe, zapewniające łączność sieciową dla innych aplikacji i | |
135 | użytkowników. Działa nie tylko z IPv4 i IPv6, ale udostępnia | |
136 | użytkownikowi praktycznie nieograniczoną liczbę potencjalnych | |
137 | zastosowań. | |
138 | ||
2f850e6d JB |
139 | %package ndiff |
140 | Summary: ndiff - utility to compare the results of Nmap scans | |
141 | Summary(pl.UTF-8): ndiff - narzędzie do porównywania wyników skanowań Nmapa | |
142 | Group: Applications/Networking | |
143 | Conflicts: nmap < 7.91-2 | |
144 | ||
145 | %description ndiff | |
146 | Ndiff is a tool to aid in the comparison of Nmap scans. It takes two | |
147 | Nmap XML output files and prints the differences between them. | |
148 | ||
149 | %description ndiff -l pl.UTF-8 | |
150 | Ndiff to narzędzie pomagające przy porównywaniu wyników skanowań | |
151 | Nmapa. Przyjmuje dwa pliki wyjściowe Nmapa w formacie XML i wypisuje | |
152 | różnice między nimi. | |
153 | ||
b59321f3 JB |
154 | %package zenmap |
155 | Summary: Graphical frontend for nmap | |
156 | Summary(pl.UTF-8): Graficzny frontend dla nmapa | |
157 | Group: X11/Applications/Networking | |
158 | Requires: %{name} = %{version}-%{release} | |
159 | Requires: bash | |
160 | Requires: python-pygtk-gtk >= 2:2.6 | |
161 | Requires: python-sqlite >= 2.0 | |
162 | Suggests: gksu | |
163 | Provides: nmap-X11 | |
164 | Obsoletes: nmap-X11 < 4.53 | |
165 | Obsoletes: nmap-frontend < 3 | |
166 | ||
167 | %description zenmap | |
168 | This package includes zenmap, a graphical frontend for nmap. | |
169 | ||
170 | %description zenmap -l pl.UTF-8 | |
171 | Ten pakiet zawiera zenmap, czyli graficzny frontend dla nmapa. | |
172 | ||
3cc8cd55 AM |
173 | %prep |
174 | %setup -q | |
b7de54c2 | 175 | %patch0 -p1 |
d7ba167e | 176 | %patch1 -p1 |
40493182 | 177 | %patch2 -p1 |
cd6b49b0 KM |
178 | # use system provided libraries |
179 | %{__rm} -r liblinear liblua libpcap libpcre libssh2 libz | |
3cc8cd55 AM |
180 | |
181 | %build | |
38352529 | 182 | CPPFLAGS="-I/usr/include/lua5.3" |
d7ba167e | 183 | %configure \ |
38352529 | 184 | %{?with_lua:LIBLUA_LIBS="-llua5.3"} \ |
758fc672 | 185 | --with-liblinear \ |
67e79e6e | 186 | --with%{!?with_lua:out}-liblua \ |
cd6b49b0 KM |
187 | --with-libdnet%{!?with_system_dnet:=included} \ |
188 | --with%{!?with_python:out}-zenmap \ | |
189 | --with%{!?with_python:out}-ndiff \ | |
190 | STRIP=/bin/true | |
3cc8cd55 | 191 | |
cd6b49b0 | 192 | %{__make} |
3cc8cd55 AM |
193 | |
194 | %install | |
195 | rm -rf $RPM_BUILD_ROOT | |
d0fd1458 | 196 | install -d $RPM_BUILD_ROOT%{_pixmapsdir} |
3cc8cd55 | 197 | |
0c1919f7 | 198 | %{__make} install \ |
26cc5313 | 199 | DESTDIR=$RPM_BUILD_ROOT |
b9efad0f | 200 | |
cd6b49b0 | 201 | %if %{with python} |
d7d80c0b | 202 | cp -p docs/zenmap.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
0c1919f7 | 203 | |
305a2239 JB |
204 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} |
205 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
26cc5313 | 206 | %py_postclean |
3cc8cd55 | 207 | |
86c2bd9d | 208 | # remove unneeded files |
697efda0 ER |
209 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/uninstall_zenmap |
210 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/uninstall_ndiff | |
86c2bd9d | 211 | |
cd6b49b0 KM |
212 | # unify locale names |
213 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/zenmap/locale/zh{,_CN} | |
214 | %endif | |
215 | ||
305a2239 JB |
216 | # unify locale names |
217 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/pt{_PT,} | |
218 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/zh{,_CN} | |
122c164e | 219 | |
3cc8cd55 AM |
220 | %clean |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
f9e9c99d | 223 | %files |
3cc8cd55 | 224 | %defattr(644,root,root,755) |
cd6b49b0 | 225 | %doc docs/README docs/*.txt CHANGELOG HACKING |
27368187 | 226 | %attr(755,root,root) %{_bindir}/nmap |
809abded | 227 | %attr(755,root,root) %{_bindir}/nping |
465d38da | 228 | %{_datadir}/nmap |
a9ac6b28 AM |
229 | %exclude %{_datadir}/nmap/nselib/data/jdwp-class |
230 | %exclude %{_datadir}/nmap/scripts/jdwp-* | |
0ddfcb0e | 231 | %{_mandir}/man1/nmap.1* |
809abded | 232 | %{_mandir}/man1/nping.1* |
16fa4a0f KG |
233 | %lang(de) %{_mandir}/de/man1/nmap.1* |
234 | %lang(es) %{_mandir}/es/man1/nmap.1* | |
235 | %lang(fr) %{_mandir}/fr/man1/nmap.1* | |
236 | %lang(hr) %{_mandir}/hr/man1/nmap.1* | |
237 | %lang(hu) %{_mandir}/hu/man1/nmap.1* | |
238 | %lang(it) %{_mandir}/it/man1/nmap.1* | |
122c164e | 239 | %lang(ja) %{_mandir}/ja/man1/nmap.1* |
16fa4a0f KG |
240 | %lang(pl) %{_mandir}/pl/man1/nmap.1* |
241 | %lang(pt_BR) %{_mandir}/pt_BR/man1/nmap.1* | |
122c164e | 242 | %lang(pt) %{_mandir}/pt/man1/nmap.1* |
16fa4a0f KG |
243 | %lang(ro) %{_mandir}/ro/man1/nmap.1* |
244 | %lang(ru) %{_mandir}/ru/man1/nmap.1* | |
245 | %lang(sk) %{_mandir}/sk/man1/nmap.1* | |
122c164e | 246 | %lang(zh_CN) %{_mandir}/zh_CN/man1/nmap.1* |
b7de54c2 | 247 | |
a9ac6b28 AM |
248 | %files java |
249 | %defattr(644,root,root,755) | |
250 | %{_datadir}/nmap/nselib/data/jdwp-class | |
251 | %{_datadir}/nmap/scripts/jdwp-* | |
252 | ||
d7d80c0b ER |
253 | %files ncat |
254 | %defattr(644,root,root,755) | |
d7d80c0b | 255 | %attr(755,root,root) %{_bindir}/ncat |
d7d80c0b | 256 | %{_mandir}/man1/ncat.1* |
d7d80c0b | 257 | |
cd6b49b0 | 258 | %if %{with python} |
2f850e6d JB |
259 | %files ndiff |
260 | %defattr(644,root,root,755) | |
261 | %attr(755,root,root) %{_bindir}/ndiff | |
262 | %{_mandir}/man1/ndiff.1* | |
263 | %{py_sitescriptdir}/ndiff.py[co] | |
264 | ||
26cc5313 | 265 | %files zenmap |
b7de54c2 | 266 | %defattr(644,root,root,755) |
54937dc2 | 267 | %attr(755,root,root) %{_bindir}/nmapfe |
268 | %attr(755,root,root) %{_bindir}/xnmap | |
26cc5313 | 269 | %attr(755,root,root) %{_bindir}/zenmap |
305a2239 JB |
270 | %dir %{py_sitescriptdir}/radialnet |
271 | %dir %{py_sitescriptdir}/radialnet/bestwidgets | |
272 | %dir %{py_sitescriptdir}/radialnet/core | |
273 | %dir %{py_sitescriptdir}/radialnet/gui | |
274 | %dir %{py_sitescriptdir}/radialnet/util | |
275 | %dir %{py_sitescriptdir}/zenmapCore | |
276 | %dir %{py_sitescriptdir}/zenmapGUI | |
277 | %dir %{py_sitescriptdir}/zenmapGUI/higwidgets | |
278 | %{py_sitescriptdir}/radialnet/*.py[co] | |
279 | %{py_sitescriptdir}/radialnet/bestwidgets/*.py[co] | |
280 | %{py_sitescriptdir}/radialnet/core/*.py[co] | |
281 | %{py_sitescriptdir}/radialnet/gui/*.py[co] | |
282 | %{py_sitescriptdir}/radialnet/util/*.py[co] | |
283 | %{py_sitescriptdir}/zenmapCore/*.py[co] | |
284 | %{py_sitescriptdir}/zenmapGUI/*.py[co] | |
285 | %{py_sitescriptdir}/zenmapGUI/higwidgets/*.py[co] | |
286 | %{py_sitescriptdir}/zenmap-%{version}-py*.egg-info | |
26cc5313 | 287 | %dir %{_datadir}/zenmap |
26cc5313 | 288 | %{_datadir}/zenmap/config |
289 | %{_datadir}/zenmap/docs | |
290 | %{_datadir}/zenmap/misc | |
ba925282 AM |
291 | %dir %{_datadir}/zenmap/locale |
292 | %lang(de) %{_datadir}/zenmap/locale/de | |
42578d43 | 293 | %lang(es) %{_datadir}/zenmap/locale/es |
ba925282 | 294 | %lang(fr) %{_datadir}/zenmap/locale/fr |
305a2239 | 295 | %lang(hi) %{_datadir}/zenmap/locale/hi |
ba925282 | 296 | %lang(hr) %{_datadir}/zenmap/locale/hr |
f196a0d1 | 297 | %lang(it) %{_datadir}/zenmap/locale/it |
70147ac8 | 298 | %lang(ja) %{_datadir}/zenmap/locale/ja |
f196a0d1 | 299 | %lang(pl) %{_datadir}/zenmap/locale/pl |
ba925282 | 300 | %lang(pt_BR) %{_datadir}/zenmap/locale/pt_BR |
16fa4a0f | 301 | %lang(ru) %{_datadir}/zenmap/locale/ru |
305a2239 | 302 | %lang(zh_CN) %{_datadir}/zenmap/locale/zh_CN |
85408848 | 303 | %{_datadir}/zenmap/pixmaps |
cd6b49b0 | 304 | %attr(755,root,root) %{_datadir}/zenmap/su-to-zenmap.sh |
252f513d | 305 | %{_desktopdir}/zenmap-root.desktop |
306 | %{_desktopdir}/zenmap.desktop | |
26cc5313 | 307 | %{_mandir}/man1/zenmap.1* |
cd6b49b0 | 308 | %endif |