Summary: redirect TCP connections Summary(pl): Przekieruj połączenia TCP Name: redir Version: 2.2 Release: 1 License: GPL Group: Applications/Networking Source0: ftp://metalab.unc.edu:/pub/linux/system/network/daemons/%{name}-%{version}.tar.gz Patch0: %{name}-debian.patch Vendor: Sammy BuildRequires: libwrap-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Redir redirects tcp connections coming in to a local port to a specified address/port combination. %description -l pl Redir przekierowuje połączenia tcp przychodzące na określony lokalnyt port na podany inny adres oraz port. %prep %setup -q %patch0 -p1 %build %{__make} OPT_FLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1} install redir $RPM_BUILD_ROOT%{_sbindir} install redir.man $RPM_BUILD_ROOT%{_mandir}/man1 gzip -9nf README trans*.txt %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc *.gz %attr(755,root,root) %{_sbindir}/* %{_mandir}/man*/*