%define name nessus-plugins %define version 2.2.3 %define release 1mdk Name: %{name} Summary: Nessus security scanner plugins Version: %{version} Release: %{release} License: GPL Group: System/Servers URL: http://www.nessus.org Source0: ftp://ftp.gwdg.de/pub/linux/misc/nessus/nessus-%{version}/src/%{name}-GPL-%{version}.tar.bz2 Source1: http://www.nessus.org/nasl/all-2.0.tar.bz2 Source9: plugins_api.txt.bz2 BuildRequires: bison BuildRequires: flex BuildRequires: openssl-devel BuildRequires: libnasl-devel = %{version} BuildRequires: nessus-devel = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Nessus is a free, up-to-date, and full featured remote security scanner for Linux. It is multithreaded, plugin-based, and has a nice GTK interface. It has powerful reporting capabilities (HTML, LaTeX, ASCII text) and not only points out problems, but suggests a solution for each of them. This package provides more then 1000 plugins for nessus. %prep %setup -q -n %{name} bzip2 -cd %{SOURCE9} > ./`basename %{SOURCE9} .bz2` tar -xjvf %{SOURCE1} -C scripts for i in scripts/*.nasl do chmod 644 ${i} done %build ac_cv_prog_cc_g=no ac_cv_prog_cxx_g=no \ %configure perl -pi -e 's/-o root / /g; s/-o \$\(installuser\) / /g; y/{}/()/' Makefile %make %install if [ -d %buildroot ]; then rm -rf %buildroot; fi %makeinstall_std mkdir -p %buildroot{%{_bindir},%{_libdir}/%{name}/reports,%{_sysconfdir}/nessus,%{_initrddir},%{_var}/log/nessus} # Correct paths in devel stuff perl -pi -e 's|^PREFIX=.*|PREFIX='%{_prefix}'|' \ %buildroot%{_bindir}/*-config \ # remove unwanted files rm -rf $RPM_BUILD_ROOT/%_libdir/nessus/plugins_factory %clean if [ -d %buildroot ]; then rm -rf %buildroot; fi %files %defattr(0644,root,root,0755) %attr(0755,root,root)%{_bindir}/nessus-build %attr(0755,root,root)%{_sbindir}/nessus-update-plugins %dir %{_libdir}/nessus %{_libdir}/nessus/* %dir %_localstatedir/nessus %{_mandir}/man1/* %{_mandir}/man8/* %changelog * Tue Feb 22 2005 Lenny Cartier <lenny@mandrakesoft.com> 2.2.3-1mdk - 2.2.3 * Fri Jan 7 2005 Stefan van der Eijk <stefan@mandrakesoft.com> 2.2.2a-1mdk - New release 2.2.2a * Thu Aug 19 2004 Michael Scherer <misc@mandrake.org> 2.0.12-1mdk - 2.0.12 * Sat Feb 21 2004 Giuseppe Ghibò <ghibo@mandrakesoft.com> 2.0.10a-1mdk - Release: 2.0.10a. - Added Source1 (scripts updated to 20040220). * Sun Feb 08 2004 Marcel Pol <mpol@mandrake.org> 2.0.9-3mdk - add nessus-update-plugins (#7543) * Sun Jan 04 2004 Marcel Pol <mpol@mandrake.org> 2.0.9-2mdk - own dir (distriblint) - fix description - fix permissions * Thu Nov 06 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.0.9-1mdk - 2.0.9 * Wed Jul 23 2003 Marcel Pol <mpol@gmx.net> 2.0.7-1mdk - 2.0.7 - split package from main nessus package * Wed Dec 18 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.2.7-1mdk - 1.2.7 * Tue Oct 8 2002 Stefan van der Eijk <stefan@eijk.nu> 1.2.6-1mdk - 1.2.6 - removed README_LINUX (doesn't exist anymore) * Wed Sep 11 2002 Arnaud Desmons <adesmons@mandrakesoft.com> 1.2.5-3mdk - Requires nessus-plugins * Wed Sep 11 2002 Arnaud Desmons <adesmons@mandrakesoft.com> 1.2.5-2mdk - 1.2.5 * Tue Sep 10 2002 Arnaud Desmons <adesmons@mandrakesoft.com> 1.2.5-1mdk - 1.2.5 * Thu Jul 25 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.2.3-1mdk - 1.2.3 * Tue Jun 18 2002 Stefan van der Eijk <stefan@eijk.nu> 1.2.0-2mdk - BuildRequires * Fri Apr 19 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.2.0-1mdk - 1.2.0 * Thu Feb 28 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.1.13-1mdk - 1.1.13 - xpm2png * Tue Jan 22 2002 Laurent Culioli <laurent@mandrakesoft.com> 1.1.11-1mdk - 1.1.11 * Sat Jan 19 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.1.9-3mdk - rebuild * Thu Nov 22 2001 Alexander Skwar <ASkwar@Linux-Mandrake.com> 1.1.9-2mdk - Make rpmlint a little happier * Wed Nov 21 2001 Alexander Skwar <ASkwar@Linux-Mandrake.com> 1.1.9-1mdk - 1.1.9 - Actually really set localstatedir to /var/lib instead of to /var/log * Thu Nov 8 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.1.8-1mdk - 1.1.8 - call nessus-mkcert at install if certs do not exist - patch nessus-mkcert to use more sensible locations to store certs/keys (P1) - make localstatedir /var/lib and not /var/log (???) so that user accounts and info go into /var/lib/users and not /var/log/users * Wed Nov 7 2001 Frederic Lepied <flepied@mandrakesoft.com> 1.1.6-2mdk - don't use sub shell in %build - use %%make - use service macros - added the missing nessus-mkcert, nessus-rmuser and nessus-update-plugins - add a dependency on tar, gzip and lynx for nessus-update-plugins * Wed Oct 17 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.1.6-1mdk - 1.1.6 * Mon Sep 17 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.1.4-1mdk - added by Oden Eriksson <oden.eriksson@kvikkjokk.net> : - updated to 1.1.4 * Tue Aug 21 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.9-1mdk - updated to 1.0.9 * Wed Jun 6 2001 Laurent Culioli <laurent@mandrakesoft.com> 1.0.8-1mdk - updated to 1.0.8 * Wed Mar 07 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.7a-1mdk - upgraded to 1.0.7a * Tue Jan 30 2001 Lenny Cartier <lenny@mandrakesoft.com> 1.0.7-1mdk - used srpm from Guillaume Rousse <g.rousse@mandrake-linux.com> : - updated to 1.0.7 * Mon Nov 06 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.0.5-1mdk - used srpm from Alexander Skwar <ASkwar@Linux-Mandrake.com> : New version Added menu for the client with icons Quiet the unpacking of the files * Wed Jul 26 2000 John Johnson <jjohnson@linux-mandrake.com> 1.0.3-1mdk - Fixed an error in my spec file that caused the nessusd script in /etc/rc.d/init.d to not work properly. * Wed Jul 12 2000 John Johnsin <jjohnson@linux-mandrake.com> 1.0.3-1mdk - Updated rpm for version 1.0.3 - made a few small changes to spec file * Sat Jun 10 2000 John Johnson <jjohnson@linux-mandrake.com> 1.0.1-1mdk - updated sources to the new version. * Mon May 29 2000 Vincent Danen <vdanen@linux-mandrake.com> 1.0.0-2mdk - bzip sources - fix group - various specfile cleanups - made unrelocatable - added call to ldconfig in post and postun * Thu May 18 2000 John Johnson <jjohnson@linux-mandrake.com> - Made Mandrake rpm