Summary: A toolbox for network administrators and network hackers Summary(pl.UTF-8): Zestaw narzędzi dla administratorów sieci i hackerów sieciowych Name: netwox %define _base_version 5.36 Version: %{_base_version}.0 Release: 1 Epoch: 0 License: GPL Group: Applications/Networking Source0: http://www.laurentconstantin.com/common/netw/netwox/download/v5/%{name}-%{version}-src.tgz # Source0-md5: c4575d64bf842377ee97f7b895741fb2 Patch0: %{name}-config.patch URL: http://www.laurentconstantin.com/en/netw/netwox/ BuildRequires: libnet-devel BuildRequires: libpcap-devel BuildRequires: netwib-devel >= %{version} BuildRequires: sed >= 4.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _man_suffix %(echo %{_base_version} | tr -d . ) %description Netwox is a toolbox for network administrators and network hackers. Netwox contains over 100 tools using network library netwib. %description -l pl.UTF-8 Netwox to zestaw narzędzi dla administratorów sieci i hackerów sieciowych. Zawiera ponad 100 narzędzi używających biblioteki sieciowej netwib. %prep %setup -q -n %{name}-%{version}-src %patch0 -p1 %build cd src ./genemake \ NETWIBDEF_INSTPREFIX="/usr" sed -i -e 's#444#644#' -e 's#555#755#g' Makefile %{__make} \ CC="%{__cc}" \ GCCOPT="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} %{__make} -C src install \ INSTBIN=$RPM_BUILD_ROOT%{_bindir} \ INSTMAN1=$RPM_BUILD_ROOT%{_mandir}/man1 \ INSTUSERGROUP="$(id -u):$(id -g)" rm -f $RPM_BUILD_ROOT%{_mandir}/man1/netwox.1 echo ".so netwox%{_man_suffix}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/netwox.1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc doc/*.txt %attr(755,root,root) %{_bindir}/* %{_mandir}/man?/*