Name: ncrack Version: 0.4ALPHA Release: 1 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.2.3-2 BuildRequires: gcc-c++ >= 4.2.3-2 BuildRequires: libstdc++-devel >= 4.2.3-2 BuildRequires: openssl-devel >= 1.0.1 Requires: libgcc >= 4.2.3-2 Requires: libstdc++ >= 4.2.3-2 Requires: openssl >= 1.0.1 %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} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make 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 * Mon Mar 25 2013 Michael Perzl - 0.4ALPHA-1 - first version for AIX V5.1 and higher