]> git.pld-linux.org Git - packages/nc.git/blame - nc.spec
- release 22
[packages/nc.git] / nc.spec
CommitLineData
07b59094 1Summary: Versatile network test and debugging tool
c307a242
ER
2Summary(es.UTF-8): Herramienta de prueba e depuración para servicios de red
3Summary(pl.UTF-8): Proste narzędzie do testowania sieci
4Summary(pt_BR.UTF-8): Ferramenta de teste e depuração para serviços de rede
07b59094
JR
5Name: nc
6Version: 1.10
05bc73c1 7Release: 22
85616873 8License: Public Domain
07b59094 9Group: Networking/Admin
84882fec 10Source0: http://www.atstake.com/research/tools/network_utilities/%{name}110.tgz
af9379b4 11# Source0-md5: 402632f2fe01c169ff19a0ad6e9d608c
96290ac8 12Source1: http://www.openbsd.org/src/usr.bin/%{name}.1
ff6b6ca5
JR
13Patch0: %{name}-arm.patch
14Patch1: %{name}-v6-20000918.patch.gz
c3f4e223 15Patch2: %{name}-proto.patch
16Patch3: %{name}-halfclose.patch
e73ba04b 17Patch4: %{name}-timeout.patch
84882fec 18URL: http://www.atstake.com/research/tools/network_utilities/
5539f943 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
03dd2ed7 20
3cd09549 21%description
96290ac8 22Netcat is a simple Unix utility which reads and writes data across
23network connections, using TCP or UDP protocol. It is designed to be a
24reliable "back-end" tool that can be used directly or easily driven by
25other programs and scripts. At the same time, it is a feature-rich
26network debugging and exploration tool, since it can create almost any
27kind of connection you would need and has several interesting built-in
28capabilities. Netcat, or "nc" as the actual program is named, should
29have been supplied long ago as another one of those cryptic but
30standard Unix tools.
03dd2ed7 31
31a31e48
JR
32%description -l es.UTF-8
33NetCat es un cliente de red mínimo. Puede ser usado para crear
db543cac
ER
34conexiones TCP a puertos arbitrarios y puede simular conexiones sobre
35UDP. También puede oír puertos.
1ebbdf8e 36
31a31e48
JR
37%description -l pl.UTF-8
38Netcat to proste uniksowe narzędzie, które odbiera i wysyła dane
39poprzez połączenia sieciowe protokołami TCP lub UDP. Jest
40zaprojektowane jako wiarygodny "back-end", który może być używany
41bezpośrednio albo sterowany przez inne programy i skrypty.
42Jednocześnie może pomóc w wykrywaniu usterek w sieci albo poznawaniu
43jej od środka, ponieważ może stworzyć prawie dowolny rodzaj
44połączenia, jaki może być potrzebny, i ma wbudowanych kilka ciekawych
45funkcji. Netcat - albo "nc", jak się nazywa właściwy program, powinien
46był być dostarczany już dawno temu jako kolejne tajemnicze, ale
47standardowe uniksowe narzędzie.
03dd2ed7 48
31a31e48
JR
49%description -l pt_BR.UTF-8
50O NetCat é um cliente de rede mínimo. Pode ser usado para criar
51conexões TCP para portas arbitrárias e pode simular conexões sobre
52UDP. Também pode receber conexões.
1ebbdf8e 53
03dd2ed7 54%prep
db543cac 55%setup -c -n %{name} -q
ff6b6ca5
JR
56%patch0 -p1
57%patch1 -p1
c3f4e223 58%patch2 -p1
59%patch3 -p1
e73ba04b 60%patch4 -p1
03dd2ed7 61
62%build
3cd09549 63# 'make linux' works too, but builds a static binary.
ff6b6ca5
JR
64%{__make} generic \
65 DFLAGS="-DINET6 -DTELNET -DGAPING_SECURITY_HOLE" \
e73ba04b 66 CC="%{__cc} %{rpmcflags}"
03dd2ed7 67
03dd2ed7 68%install
69rm -rf $RPM_BUILD_ROOT
e38009c9 70install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
03dd2ed7 71
e38009c9 72install nc $RPM_BUILD_ROOT%{_bindir}/nc
73install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
03dd2ed7 74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
ffd4a915 79%defattr(644,root,root,755)
57664320 80%doc README Changelog scripts data
ffd4a915 81%attr(755,root,root) %{_bindir}/nc
e38009c9 82%{_mandir}/man1/*
This page took 2.278492 seconds and 4 git commands to generate.