]> git.pld-linux.org Git - packages/netcat-openbsd.git/blame - netcat-openbsd.spec
- include correct function prototypes so the compiler can correctly
[packages/netcat-openbsd.git] / netcat-openbsd.spec
CommitLineData
806231cf 1Summary: Versatile network test and debugging tool
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
5Name: netcat-openbsd
fdcd7086 6Version: 1.105
7c95fee9 7Release: 3
806231cf 8License: Public Domain
9Group: Networking/Utilities
fdcd7086
JR
10Source0: 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
13Patch0: 0001-port-to-linux-with-libsd.patch
14Patch1: 0002-connect-timeout.patch
15Patch2: 0003-get-sev-by-name.patch
16Patch3: 0004-poll-hup.patch
17Patch4: 0005-send-crlf.patch
18Patch5: 0006-quit-timer.patch
19Patch6: 0007-udp-scan-timeout.patch
20Patch7: 0008-verbose-numeric-port.patch
21Patch8: 0009-dccp-support.patch
22Patch9: 0010-serialized-handling-multiple-clients.patch
23Patch10: 0011-misc-failures-and-features.patch
806231cf 24URL: http://packages.debian.org/sid/netcat-openbsd
fdcd7086
JR
25BuildRequires: libbsd-devel
26Provides: nc
806231cf 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30Netcat is a simple Unix utility which reads and writes data across
31network connections, using TCP or UDP protocol. It is designed to be a
32reliable "back-end" tool that can be used directly or easily driven by
33other programs and scripts. At the same time, it is a feature-rich
34network debugging and exploration tool, since it can create almost any
35kind of connection you would need and has several interesting built-in
36capabilities. Netcat, or "nc" as the actual program is named, should
37have been supplied long ago as another one of those cryptic but
38standard Unix tools.
39
40%description -l es.UTF-8
41NetCat es un cliente de red mínimo. Puede ser usado para crear
42conexiones TCP a puertos arbitrarios y puede simular conexiones sobre
43UDP. También puede oír puertos.
44
45%description -l pl.UTF-8
46Netcat to proste uniksowe narzędzie, które odbiera i wysyła dane
47poprzez połączenia sieciowe protokołami TCP lub UDP. Jest
48zaprojektowane jako wiarygodny "back-end", który może być używany
49bezpośrednio albo sterowany przez inne programy i skrypty.
50Jednocześnie może pomóc w wykrywaniu usterek w sieci albo poznawaniu
51jej od środka, ponieważ może stworzyć prawie dowolny rodzaj
52połączenia, jaki może być potrzebny, i ma wbudowanych kilka ciekawych
53funkcji. Netcat - albo "nc", jak się nazywa właściwy program, powinien
54był być dostarczany już dawno temu jako kolejne tajemnicze, ale
55standardowe uniksowe narzędzie.
56
57%description -l pt_BR.UTF-8
58O NetCat é um cliente de rede mínimo. Pode ser usado para criar
59conexões TCP para portas arbitrárias e pode simular conexões sobre
60UDP. 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
80rm -rf $RPM_BUILD_ROOT
81install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
82
83install nc $RPM_BUILD_ROOT%{_bindir}/nc
84install nc.1 $RPM_BUILD_ROOT%{_mandir}/man1
85
86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%files
90%defattr(644,root,root,755)
91%attr(755,root,root) %{_bindir}/nc
92%{_mandir}/man1/*
This page took 0.088646 seconds and 4 git commands to generate.