]>
Commit | Line | Data |
---|---|---|
806231cf | 1 | Summary: Versatile network test and debugging tool |
2 | Summary(es.UTF-8): Herramienta de prueba e depuración para servicios de red | |
3 | Summary(pl.UTF-8): Proste narzędzie do testowania sieci | |
4 | Summary(pt_BR.UTF-8): Ferramenta de teste e depuração para serviços de rede | |
5 | Name: netcat-openbsd | |
fdcd7086 | 6 | Version: 1.105 |
7c95fee9 | 7 | Release: 3 |
806231cf | 8 | License: Public Domain |
9 | Group: Networking/Utilities | |
fdcd7086 JR |
10 | Source0: http://ftp.debian.org/debian/pool/main/n/%{name}/%{name}_%{version}.orig.tar.gz |
11 | # Source0-md5: 7e67b22f1ad41a1b7effbb59ff28fca1 | |
12 | # http://ftp.debian.org/debian/pool/main/n/%{name}/netcat-openbsd_1.105-5.debian.tar.gz | |
13 | Patch0: 0001-port-to-linux-with-libsd.patch | |
14 | Patch1: 0002-connect-timeout.patch | |
15 | Patch2: 0003-get-sev-by-name.patch | |
16 | Patch3: 0004-poll-hup.patch | |
17 | Patch4: 0005-send-crlf.patch | |
18 | Patch5: 0006-quit-timer.patch | |
19 | Patch6: 0007-udp-scan-timeout.patch | |
20 | Patch7: 0008-verbose-numeric-port.patch | |
21 | Patch8: 0009-dccp-support.patch | |
22 | Patch9: 0010-serialized-handling-multiple-clients.patch | |
23 | Patch10: 0011-misc-failures-and-features.patch | |
806231cf | 24 | URL: http://packages.debian.org/sid/netcat-openbsd |
fdcd7086 JR |
25 | BuildRequires: libbsd-devel |
26 | Provides: nc | |
806231cf | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Netcat is a simple Unix utility which reads and writes data across | |
31 | network connections, using TCP or UDP protocol. It is designed to be a | |
32 | reliable "back-end" tool that can be used directly or easily driven by | |
33 | other programs and scripts. At the same time, it is a feature-rich | |
34 | network debugging and exploration tool, since it can create almost any | |
35 | kind of connection you would need and has several interesting built-in | |
36 | capabilities. Netcat, or "nc" as the actual program is named, should | |
37 | have been supplied long ago as another one of those cryptic but | |
38 | standard Unix tools. | |
39 | ||
40 | %description -l es.UTF-8 | |
41 | NetCat es un cliente de red mínimo. Puede ser usado para crear | |
42 | conexiones TCP a puertos arbitrarios y puede simular conexiones sobre | |
43 | UDP. También puede oír puertos. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Netcat to proste uniksowe narzędzie, które odbiera i wysyła dane | |
47 | poprzez połączenia sieciowe protokołami TCP lub UDP. Jest | |
48 | zaprojektowane jako wiarygodny "back-end", który może być używany | |
49 | bezpośrednio albo sterowany przez inne programy i skrypty. | |
50 | Jednocześnie może pomóc w wykrywaniu usterek w sieci albo poznawaniu | |
51 | jej od środka, ponieważ może stworzyć prawie dowolny rodzaj | |
52 | połączenia, jaki może być potrzebny, i ma wbudowanych kilka ciekawych | |
53 | funkcji. Netcat - albo "nc", jak się nazywa właściwy program, powinien | |
54 | był być dostarczany już dawno temu jako kolejne tajemnicze, ale | |
55 | standardowe uniksowe narzędzie. | |
56 | ||
57 | %description -l pt_BR.UTF-8 | |
58 | O NetCat é um cliente de rede mínimo. Pode ser usado para criar | |
59 | conexões TCP para portas arbitrárias e pode simular conexões sobre | |
60 | UDP. Também pode receber conexões. | |
61 | ||
62 | %prep | |
fdcd7086 | 63 | %setup -q |
806231cf | 64 | %patch0 -p1 |
fdcd7086 JR |
65 | %patch1 -p1 |
66 | %patch2 -p1 | |
67 | %patch3 -p1 | |
68 | %patch4 -p1 | |
69 | %patch5 -p1 | |
70 | %patch6 -p1 | |
71 | %patch7 -p1 | |
72 | %patch8 -p1 | |
73 | %patch9 -p1 | |
74 | %patch10 -p1 | |
806231cf | 75 | |
76 | %build | |
fdcd7086 | 77 | %{__make} CFLAGS="%{rpmcflags}" |
806231cf | 78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
82 | ||
83 | install nc $RPM_BUILD_ROOT%{_bindir}/nc | |
84 | install nc.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_bindir}/nc | |
92 | %{_mandir}/man1/* |