File openvas-server.spec of Package openvas-server
#
# spec file for package openvas-server (Version 1.0.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: openvas-server
Version: 1.0.2
Release: 1
License: GPL v2 only
Group: Productivity/Networking/Security
Url: http://www.openvas.org
Source0: %{name}-%{version}.tar.bz2
Source1: Readme.SuSE
Source2: openvas-server.logrotate
Source3: openvas-server.init.d
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gnutls-devel libgcrypt-devel libopenvasnasl-devel libpcap-devel openvas-libraries-devel
Requires: logrotate
Summary: The Open Vulnerability Assessment System (OpenVAS) Server
%package devel
License: GPL v2 only
Group: Productivity/Networking/Security
Requires: %{name} = %{version}
Summary: Development files for openvas-server
%description
openvas-server is the actual server component of the Open Vulnerability
Assessment System (OpenVAS).
%description devel
This package contains the development files (mainly C header files) for
openvas-server.
%prep
%setup -q
%__cp %{S:1} .
%__cp %{S:2} .
%__cp %{S:3} .
%build
#prevent the key generation script from putting the keys in /usr/com (sharedstatedir default)
%configure --sharedstatedir=%{_localstatedir}/lib
%__make
%install
%makeinstall
%__install -D -m 644 %{S:2} %{buildroot}/%{_sysconfdir}/logrotate.d/openvas-server
%__install -D -m 744 %{S:3} %{buildroot}%{_initrddir}/openvas-server
%__ln_s %{_initrddir}/openvas-server %{buildroot}%{_sbindir}/rcopenvas-server
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%if 0%{?suse_version}
%post
%fillup_and_insserv -f openvas-server
%preun
%stop_on_removal openvas-server
%postun
%restart_on_update openvas-server
%insserv_cleanup
%endif
%files
%defattr(-,root,root)
%doc CHANGES COPYING TODO Readme.SuSE
%config %{_sysconfdir}/logrotate.d/openvas-server
%{_bindir}/openvas-mkcert-client
%{_bindir}/openvas-mkrand
%{_initrddir}/openvas-server
%{_sbindir}/rcopenvas-server
%{_sbindir}/openvas*
%{_mandir}/man?/openvas*
%dir %{_localstatedir}/lib/openvas
%{_localstatedir}/lib/openvas/openvas-services
%config %dir %{_sysconfdir}/openvas
%dir %{_localstatedir}/log/openvas
%files devel
%defattr(-,root,root)
%{_bindir}/openvasd-config
%{_includedir}/openvas/*
%changelog
* Mon Sep 08 2008 anosek@suse.cz
- updated to version 1.0.2
* Removed obselete documentation files.
* Path fixes for openvas-adduser, openvas-mkcert-client, openvas-mkcert
and openvas-rmuser
* Fixed a serious bug that under certain circumstances
killed the server with SIGSEGV.
* Added man page for openvas-mkcert-client
* Some cleanups
- dropped obsoleted patches
(destdir_support-Makefile.patch) (overflow.patch)
(glibc-2.8_openvasd-detached.c.patch)
* Wed Jun 18 2008 anosek@suse.cz
- initial version 1.0.0
- package taken from BS project home:bitshuffler:openvas