Name: ncrack Version: 0.4ALPHA Release: 3 Summary: High-speed network auth cracking tool Group: Applications/Internet License: GPLv2 with exceptions URL: http://nmap.org/ncrack/ Source0: http://nmap.org/ncrack/dist/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc >= 4.5.4-1 BuildRequires: gcc-c++ >= 4.5.4-1 BuildRequires: libstdc++-devel >= 4.5.4-1 BuildRequires: make BuildRequires: openssl-devel >= 1.0.2j-2 Requires: libgcc >= 4.5.4-1 Requires: libstdc++ >= 4.5.4-1 Requires: openssl >= 1.0.2j-2 %description Ncrack is a high-speed network authentication cracking tool. It was built to help companies secure their networks by proactively testing all their hosts and networking devices for poor passwords. Security professionals also rely on Ncrack when auditing their clients. Ncrack was designed using a modular approach, a command-line syntax similar to Nmap and a dynamic engine that can adapt its behaviour based on network feedback. It allows for rapid, yet reliable large-scale auditing of multiple hosts. %prep %setup -q %patch0 %build export CFLAGS="-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include" export CXXFLAGS="${CFLAGS}" export CC="gcc -D_LARGE_FILES" export CXX="g++ -D_LARGE_FILES" export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --with-openssl=%{_prefix} gmake %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} gmake DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip -X32_64 ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc COPYING COPYING.OpenSSH %{_bindir}/* %{_mandir}/man1/* %{_datadir}/%{name} /usr/bin/* %changelog * Wed Nov 16 2016 Michael Perzl - 0.4ALPHA-3 - recompiled against latest versions * Fri Mar 04 2016 Michael Perzl - 0.4ALPHA-2 - recompiled against latest versions * Mon Mar 25 2013 Michael Perzl - 0.4ALPHA-1 - first version for AIX V5.1 and higher