openvas-scanner/openvas-scanner.spec

171 lines
5.6 KiB
RPMSpec
Raw Normal View History

Name: openvas-scanner
Version: 4.0.7
Release: 1mamba
Summary: Server files for OpenVAS, an Open Vulnerability Assessment System
Group: Network/Monitoring
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.nessus.org
Source0: http://wald.intevation.org/frs/download.php/2101/openvas-scanner-%{version}.tar.gz
Source1: openvasd-initscript
Patch0: openvas-scanner-4.0.7-glibc-2.22.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libassuan-devel
BuildRequires: libgcrypt-devel
BuildRequires: libglib-devel
BuildRequires: libgnutls-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgpgme-devel
BuildRequires: openvas-libraries-devel
## AUTOBUILDREQ-END
BuildRequires: libopenssl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Obsoletes: nessus
Provides: nessus
Provides: openvas-server
Obsoletes: openvas-server
Provides: libnasl
Obsoletes: libnasl
Provides: openvas-plugins
Obsoletes: openvas-plugins
Requires(pre): openssl
# FIXME:
# file /usr/include/nessus/includes.h from install of
# nessus-devel-2.0.10-1qilnx conflicts with file from package
# nessus-libraries-devel-2.0.9-1qilnx
%description
OpenVAS stands for Open Vulnerability Assessment System and is a network security scanner with associated tools like a graphical user fontend. The core is a server component with a set of network vulnerability tests (NVTs) to detect security problems in remote systems and applications.
This project is a fork of the latest GPL release of Nessus.
This package contains the server related files.
%package devel
Summary: Devel package for openvas-server
Group: Development/Libraries
Requires: %{name} = %{version}
Obsoletes: nessus-devel
Provides: nessus-devel
Provides: openvas-server-devel
Obsoletes: openvas-server-devel
Provides: libnasl-devel
Obsoletes: libnasl-devel
%description devel
OpenVAS stands for Open Vulnerability Assessment System and is a network security scanner with associated tools like a graphical user fontend. The core is a server component with a set of network vulnerability tests (NVTs) to detect security problems in remote systems and applications.
This project is a fork of the latest GPL release of Nessus.
This is the development package for the server related package.
%prep
%setup -q
%patch0 -p1
%build
%cmake -d build
%make
%install
test x"%buildroot" != x/ && rm -rf "%buildroot"
%makeinstall -C build
#% makeoldinstall OPENVASD_LOGDIR=%{buildroot}/var/log/openvas OPENVASD_CACHEDIR=%{buildroot}/var/cache/openvas
#install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/openvasd
#install -D -m0644 packaging/debian/openvasd.conf %{buildroot}%{_sysconfdir}/openvas/openvasd.conf
#install -d -m0755 \
# %{buildroot}%{_sysconfdir}/openvas/CA \
# %{buildroot}/var/lib/openvas/plugins \
# %{buildroot}/var/cache/openvas
%clean
test x"%buildroot" != x/ && rm -rf "%buildroot"
#%post
#if [ ! -e /var/lib/openvas/private/CA/cakey.pem ]; then
# %{_sbindir}/openvas-mkcert -q
# # chkconfig --add nessusd
# # %{_initrddir}/nessusd start
#fi
#exit 0
#%preun
#if [ $1 -eq 0 ]; then
# chkconfig --del openvasd 2>/dev/null
# service openvasd stop 2>/dev/null
#fi
#exit 0
#%postun
#if [ $1 -eq 1 ]; then
# test -e /var/lock/subsys/openvasd && \
# service openvasd restart
#fi
#exit 0
%files
%defattr(-,root,root)
%{_sbindir}/openvas-mkcert-client
%{_sbindir}/greenbone-nvt-sync
%{_sbindir}/openvas-mkcert
%{_sbindir}/openvas-nvt-sync
%{_sbindir}/openvassd
%{_mandir}/man8/greenbone-nvt-sync.8*
%{_mandir}/man8/openvas*.8*
%changelog
* Sat Feb 06 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.7-1mamba
- update to 4.0.7
* Fri Nov 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.4-1mamba
- update to 4.0.4
* Sat Nov 15 2014 Automatic Build System <autodist@mambasoft.it> 4.0.3-1mamba
- automatic version update by autodist
* Tue Aug 10 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.0-1mamba
- update to 3.1.0
- renamed from openvas-server
* Mon Oct 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-1mamba
- update to 2.0.3
* Mon Oct 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-2mamba
- added prereq for openssl
* Sat Jul 25 2009 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
- update to 2.0.2
* Sat Jul 25 2009 Automatic Build System <autodist@mambasoft.it> 1.0.0-2mamba
- automatic rebuild by autodist
* Sat Apr 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
- update to 1.0.0 (specfile is a continuation of nessus)
* Wed Dec 29 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.2a-1qilnx
- update to version 2.2.2a by autospec
- include file nessus/includes.h renamed to nessus/includes-core.h to avoid a conflict with nessus-libraries
* Fri Jul 23 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.12-1qilnx
- update to 2.0.12
* Tue Jul 20 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.11-1qilnx
- update to 2.0.11
* Mon Feb 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.10a-1qilnx
- rebuilt with version 2.0.10a
* Fri Nov 07 2003 Davide Madrisan <davide.madrisan@qilinux.it> 2.0.9-1qilnx
- rebuilt with version 2.0.9
* Fri Jun 20 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.0.6a-3qilnx
- fixed logdir
* Fri Jun 20 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.0.6a-2qilnx
- rebuild with defattr for nessus-client package
* Fri Jun 13 2003 Silvan Calarco <silvan.calarco@qinet.it> 2.0.6a-1qilnx
- first build of nessus libraries