Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhy20120210:failed_1
openvas-scanner
openvas-scanner.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openvas-scanner.spec of Package openvas-scanner
# # spec file for package openvas-scanner (Version 3.0.0) # # Copyright (c) 2010 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-scanner Version: 3.0.0 Release: 0.2.27 License: GPL v2 only Group: Productivity/Networking/Security Url: http://www.openvas.org Source0: %{name}-%{version}.tar.bz2 Source2: openvassd.logrotate Source3: openvassd.init.suse Source4: openvassd.init.fedora Source5: openvassd.init.mandriva Source6: openvassd.conf Source7: greenbone-nvt-sync BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: libgpgme-devel PreReq: %insserv_prereq %fillup_prereq %endif %if 0%{?mandriva_version} BuildRequires: gpgme-devel %if 0%{?mandriva_version} == 2009 BuildRequires: pinentry-gtk %endif %if 0%{?mandriva_version} > 200900 BuildRequires: pinentry-gtk2 %endif %endif %if 0%{?fedora_version} BuildRequires: gpgme-devel %endif BuildRequires: glib2-devel BuildRequires: gnutls-devel >= 2.0.3 BuildRequires: libopenvas-devel >= 3.0.0 BuildRequires: libpcap-devel Requires: logrotate Summary: The Open Vulnerability Assessment System (OpenVAS) Scanner %description openvas-scanner is the scanner component of the Network Vulnerability Scanner suite OpenVAS. %prep %setup -q %if 0%{?mandriva_version} # otherwise install-nvts fails with can not stat file %__mkdir bin touch bin/foo.nes %endif %build %if 0%{?mandriva_version} %serverbuild %endif #prevent the key generation script from putting the keys in /usr/com (sharedstatedir default) %configure --sharedstatedir=%{_localstatedir}/lib --enable-syslog %__make %{?_smp_mflags} %install %makeinstall %__install -D -m 644 %{_sourcedir}/openvassd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/openvas-scanner %__install -D -m 644 %{_sourcedir}/openvassd.conf %{buildroot}%{_sysconfdir}/openvas/ sed -i -e "s|/usr/lib/openvas/plugins|%{_libdir}/openvas/plugins|g" %{buildroot}%{_sysconfdir}/openvas/openvassd.conf %__install -D -m 755 %{_sourcedir}/greenbone-nvt-sync %{buildroot}%{_sbindir}/greenbone-nvt-sync %if 0%{?suse_version} %__install -D -m 744 %{_sourcedir}/openvassd.init.suse %{buildroot}%{_initrddir}/openvas-scanner %__ln_s %{_initrddir}/openvas-scanner %{buildroot}%{_sbindir}/rcopenvas-scanner %endif %if 0%{?fedora_version} %__install -D -m 744 %{_sourcedir}/openvassd.init.fedora %{buildroot}%{_initrddir}/openvas-scanner %endif %if 0%{?mandriva_version} %__install -D -m 744 %{_sourcedir}/openvassd.init.mandriva %{buildroot}%{_initrddir}/openvas-scanner # get rid of the dummy %__rm %{buildroot}%{_libdir}/openvas/plugins/foo.nes %endif %clean test "%{buildroot}" != "/" && %__rm -rf %{buildroot} %post # Generate cert ##if [ ! -f %{_localstatedir}/lib/openvas/CA/servercert.pem ] ; then ## %{_sbindir}/openvas-mkcert -q > /dev/null 2>&1 ##fi %if 0%{?suse_version} %fillup_and_insserv -f openvas-scanner %endif %if 0%{?mandriva_version} %_post_service openvas-scanner %endif %if 0%{?fedora_version} # only rpm -i (not rpm {-U|-F}) if [ $1 = 1 ]; then /sbin/chkconfig --add openvas-scanner fi %endif %preun %if 0%{?suse_version} %stop_on_removal openvas-scanner %endif %if 0%{?mandriva_version} %_preun_service openvas-scanner %endif %if 0%{?fedora_version} # only rpm -e (not rpm {-U|-F}) if [ $1 = 0 ]; then /sbin/service openvas-scanner stop > /dev/null 2>&1 || : /sbin/chkconfig --del openvas-scanner fi %endif %postun %if 0%{?suse_version} %restart_on_update openvas-scanner %insserv_cleanup %endif %if 0%{?fedora_version} # only rpm {-U|-F} (not rpm -e) if [ $1 = 1 ]; then /sbin/service openvas-scanner condrestart fi %endif %files %defattr(-,root,root) %doc CHANGES COPYING ChangeLog README %config(noreplace) %{_sysconfdir}/logrotate.d/openvas-scanner %dir %{_sysconfdir}/openvas %dir %{_sysconfdir}/openvas/gnupg %config(noreplace) %{_sysconfdir}/openvas/openvassd.conf %{_initrddir}/openvas-scanner %{_bindir}/openvas-mkcert-client %{_bindir}/openvas-mkrand %{_sbindir}/greenbone-nvt-sync %{_sbindir}/openvas-adduser %{_sbindir}/openvas-mkcert %{_sbindir}/openvas-nvt-sync %{_sbindir}/openvas-rmuser %{_sbindir}/openvassd %dir %{_libdir}/openvas %{_libdir}/openvas/plugins %{_mandir}/man1/openvas-mkcert-client.1* %{_mandir}/man1/openvas-mkrand.1* %{_mandir}/man8/openvas-adduser.8* %{_mandir}/man8/openvas-mkcert.8* %{_mandir}/man8/openvas-nvt-sync.8* %{_mandir}/man8/openvas-rmuser.8* %{_mandir}/man8/openvassd.8* %dir %{_localstatedir}/cache/openvas %{_localstatedir}/lib/openvas %dir %{_localstatedir}/log/openvas %if 0%{?suse_version} %{_sbindir}/rcopenvas-scanner %endif %changelog * Tue Mar 16 2010 nadvornik@novell.com - added greenbone-nvt-sync script, which is required by the yast2 module * Thu Jan 7 2010 nadvornik@suse.cz - updated to the final package from OBS - fixed plugins path in config file - re-compressed with bzip2 * Mon Dec 21 2009 felix.wolfsteller@intevation.de - Added logrotate- dependency. * Fri Dec 18 2009 felix.wolfsteller@intevation.de - Updated to version 3.0.0 * Mon Dec 7 2009 felix.wolfsteller@intevation.de - Added /etc/openvas/gnupg directory. * Fri Dec 4 2009 nadvornik@suse.cz - updated to 3.0.0.beta7 from OBS [fate#307440] * Thu Dec 3 2009 felix.wolfsteller@intevation.de - Uncommented cache and log directories in spec file. Added default configuration file, install it.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor