Hello community,

here is the log from the commit of package greenbone-security-assistant for 
openSUSE:Factory
checked in at Tue Mar 22 17:48:11 CET 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ 
/mounts/work_src_done/STABLE/greenbone-security-assistant/greenbone-security-assistant.changes
      2011-03-02 16:39:04.000000000 +0100
@@ -0,0 +1,218 @@
+-------------------------------------------------------------------
+Wed Mar  2 15:05:01 UTC 2011 - bitshuff...@opensuse.org
+
+- Updated to 2.0.1
+  * Two memory leaks discovered by Pavel Sejnoha and one resource leak 
discovered
+    by Felix Wolfsteller have been closed.
+  * GSA now does XSL transformation in a separate process by default.
+
+-------------------------------------------------------------------
+Wed Feb 23 19:32:13 UTC 2011 - bitshuff...@opensuse.org
+
+- Updated to 2.0.0
+  * The JavaScript indicator has been improved.
+  * GSA now checks for required libxml threading support.
+  * The cookie base session identification has been improved.
+  * An issue with parsing the session cookie has been fixed.
+  * The handling of POST requests after a relogin has been improved.
+  * The documentation and the build environment have been updated.
+  * The scan config overview now shows the number of selected NVT through 
family
+    selection as well.
+  * A JavaScript indicator has been added.
+  * Support for fallback system reports has been added.
+  * An issue which caused logins to fail under certain circumstances due to 
overly
+    strict input validation has been fixed.
+  * The "About" page has been reworked.
+  * Cookie base session identification has been added.
+
+-------------------------------------------------------------------
+Fri Feb  4 22:32:55 UTC 2011 - bitshuff...@opensuse.org
+
+- Updated to 1.99.3
+  * A notice is added to the log if binding to the default port failed and the
+    fallback port was used.
+  * GSA now uses pkg-config to find required libraries.
+  * The HTTP Basic Auth based session management has been replace with a token
+    based session management.
+  * GSA now provides a manual page for the gsad binary.
+
+-------------------------------------------------------------------
+Wed Jan 26 19:45:47 UTC 2011 - bitshuff...@opensuse.org
+
+- Updated to 1.99.2
+  * The output of --version now complies with the GNU Coding Standards.
+  * The range of valid characters for LSC credential passwords has been 
extended
+    further.
+  * If no port is specified, GSA will now attempt to listen on the appropriate
+    privileged port (80 or 443) and fall back to listening on its default port
+    (9392) if those are unavailable.
+
+-------------------------------------------------------------------
+Tue Dec 21 13:19:01 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.99.1
+  * Error handling for reports has been improved.
+  * A bug which cause credential comments to be ignored when creating new LSC
+    credentials has been fixed.
+  * Target credentials for SMB and SSH are now separated.
+  * The user interface for displaying filtered reports and for report downloads
+    has been improved.
+  * Hardening flags are now enabled during compile time to increase code 
quality.
+  * Support for setting the port range for a target has been added.
+
+-------------------------------------------------------------------
+Fri Dec  3 17:29:33 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.98.1
+  * Support for report format plugin framework has been added.
+  * Support for master-slave mode has been added.
+  * Support for editing credentials has been added.
+  * Support for agent verification has been added.
+  * Input validation for user names and passwords has been improved.
+  * Support for Microsoft Internet Explorer has been improved.
+  * The usability and layout of the web interface has been improved.
+  * GSA now builds with libmicrohttpd 0.9.2 and above.
+
+-------------------------------------------------------------------
+Sun Oct 31 18:42:17 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.3
+  * When creating new credentials, password authentication is now the default.
+  * A bug which caused the "Pause" button not to work under certain 
circumstances
+    has been fixed.
+  * The handling of errors during the XSL transformation has been improved.
+  * The handling of long lines in the XSL transformation has been improved.
+  * The range of characters allowed for LSC passwords has been extended.
+  * An issue which prevented gsa from building with libmicrohttpd 0.9.2 has 
been
+    fixed.
+
+-------------------------------------------------------------------
+Tue Aug 17 14:41:08 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.2
+  * An issue which caused NVT family to be improperly submitted when using
+    Microsoft Internet Explorer to edit NVT families has been fixed.
+
+-------------------------------------------------------------------
+Mon Aug  9 15:00:09 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.1
+  * A bug which made it impossible to edit families containing a dash in their
+    name has been fixed.
+  * The scan status and the progress bar are now displayed in the report view 
as
+    well.
+  * Task control buttons are now visible on the task summary page as well.
+  * Known scanner preferences are now displayed as yes/no radio buttons.
+  * The installation instructions have been updated.
+
+-------------------------------------------------------------------
+Tue Aug  3 13:39:42 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0
+  * A bug which caused NVT preferences to be saved incorrectly under certain
+    circumstances has been fixed.
+
+-------------------------------------------------------------------
+Fri Jul 16 15:37:53 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.rc1
+  * Support for LDAP and ADS has been added.
+  * A number of changes have been made to stay compatible with the updated OMP
+    specification.
+  * Initial support for fetching targets from external sources has been added.
+  * Support for threat overrides has been added.
+  * Support for Syslog and SNMP escalators has been added.
+  * Support for agents has been improved.
+
+-------------------------------------------------------------------
+Sat May 29 08:01:26 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.beta7
+  * An issue which caused empty charts in the performance monitor has been 
fixed.
+  * An issue which caused a new task created with both an escalator and a 
schedule
+    to lose the schedule has been fixed.
+  * Support for Internet Explorer 6 clients has been improved.
+  * Support for using the "Threat Level Change" escalator condition has been
+    added.
+  * The handling of uploaded preference files has been improved.
+  * The handling of requests for nonexistent pages has been improved.
+  * Support for pausing of tasks has been added.
+  * Support for displaying CVSS scores and Risk Factor values has been added.
+  * The handling of errors during XSL transformation has been improved.
+  * The scan start time and end time for individual host are now displayed in 
the
+    report.
+  * Support for excluding hosts without results from the report has been added.
+  * Support for filtering results based on CVSS scores has been fixed.
+
+-------------------------------------------------------------------
+Thu Apr 15 16:44:52 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.beta6
+  * Support for ITG and CPE reports has been improved.
+  * Support for resuming stopped tasks has been added.
+  * Support for task scheduling has been added.
+  * Initial support for editing tasks has been added.
+  * Support for displaying the version of an installed feed has been added.
+  * A number of build issues have been fixed.
+  * The documentation available via the "?" icon has been updated.
+  * The gsad binary is now installed to /usr/sbin instead of /usr/bin.
+
+-------------------------------------------------------------------
+Sat Mar 20 15:10:42 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.beta5
+  * Support for notes has been added.
+  * Support for ITG and CPE reports has been added.
+  * Improved HTTP conformity.
+  * Significant speed-up.
+  * Various cosmetic changes of the html pages
+    as well as of some report types.
+
+-------------------------------------------------------------------
+Fri Feb  5 15:40:54 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.beta4
+  * Improved HTTP conformity.
+  * Improved Feed synchronization support.
+  * Improved line wrapping in reports.
+  * A bug in the report pagination has been fixed.
+
+-------------------------------------------------------------------
+Thu Jan 28 08:46:16 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.beta3
+  * Improved HTTP conformity.
+  * Fixed resource leak.
+  * Improved input checking.
+  * Add option to run in chroot.
+
+-------------------------------------------------------------------
+Wed Jan 27 12:10:52 UTC 2010 - bitshuff...@opensuse.org
+
+- Updated to 1.0.0.beta2
+  * Integrated online help extended. 
+  * Improved handling of feed management.
+  * Added support for administrator feature to edit
+    scanner settings.
+  * Added support for administrator feature to edit
++++ 21 more lines (skipped)
++++ between /dev/null
++++ and 
/mounts/work_src_done/STABLE/greenbone-security-assistant/greenbone-security-assistant.changes

calling whatdependson for head-i586


New:
----
  debian.changelog
  debian.compat
  debian.control
  debian.greenbone-security-assistant.default
  debian.greenbone-security-assistant.dirs
  debian.greenbone-security-assistant.init
  debian.greenbone-security-assistant.install
  debian.greenbone-security-assistant.logrotate
  debian.rules
  greenbone-security-assistant-2.0.1.tar.gz
  greenbone-security-assistant.changes
  greenbone-security-assistant.dsc
  greenbone-security-assistant.spec
  gsad.init.fedora
  gsad.init.mandriva
  gsad.init.suse
  gsad.logrotate

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ greenbone-security-assistant.spec ++++++
#
# spec file for package greenbone-security-assistant
#
# Copyright (c) 2011 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:           greenbone-security-assistant
Version:        2.0.1
Release:        1
License:        GPLv2+
Group:          Productivity/Networking/Security
Url:            http://www.openvas.org
Source0:        %{name}-%{version}.tar.gz
Source1:        gsad.logrotate
Source2:        debian.greenbone-security-assistant.default
Source3:        gsad.init.suse
Source4:        gsad.init.fedora
Source5:        gsad.init.mandriva
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?mandriva_version}
BuildRequires:  pinentry-gtk2
%if 0%{?mandriva_version} < 201000
BuildRequires:  libxslt-proc
%else
BuildRequires:  xsltproc
%endif
%endif

%if 0%{?suse_version}
BuildRequires:  fdupes
PreReq:         %insserv_prereq
PreReq:         %fillup_prereq
%endif

BuildRequires:  cmake >= 2.6.0
BuildRequires:  doxygen
BuildRequires:  glib2-devel
BuildRequires:  libmicrohttpd-devel >= 0.4.2
BuildRequires:  libopenvas-devel >= 3.98
BuildRequires:  libxslt-devel
BuildRequires:  pkgconfig
Requires:       logrotate
Summary:        The Greenbone Security Assistant

%description
The Greenbone Security Assistant is a web application that
connects to the OpenVAS Manager and OpenVAS Administrator
to provide for a full-featured user interface for
vulnerability management.


%prep
%setup -q

%build
%if 0%{?mandriva_version}
%serverbuild
%endif

export CFLAGS="%{optflags}"

cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DSYSCONFDIR=%{_sysconfdir} \
        -DLOCALSTATEDIR=%{_localstatedir} \
        -DCMAKE_BUILD_TYPE=release

%__make %{?_smp_mflags} VERBOSE=1

%install
%__make install DESTDIR=%{buildroot}
%__install -D -m 644 %{_sourcedir}/gsad.logrotate 
%{buildroot}%{_sysconfdir}/logrotate.d/greenbone-security-assistant

%if 0%{?suse_version}
%__install -D -m 755 %{_sourcedir}/gsad.init.suse 
%{buildroot}%{_initrddir}/greenbone-security-assistant
%__ln_s %{_initrddir}/greenbone-security-assistant 
%{buildroot}%{_sbindir}/rcgreenbone-security-assistant
%__install -D -m 644 %{_sourcedir}/debian.greenbone-security-assistant.default 
%{buildroot}%{_var}/adm/fillup-templates/sysconfig.greenbone-security-assistant
%endif

%if 0%{?fedora_version} || 0%{?scientificlinux_version}
%__install -D -m 755 %{_sourcedir}/gsad.init.fedora 
%{buildroot}%{_initrddir}/greenbone-security-assistant
%__install -D -m 644 %{_sourcedir}/debian.greenbone-security-assistant.default 
%{buildroot}%{_sysconfdir}/sysconfig/greenbone-security-assistant
%endif

%if 0%{?mandriva_version}
%__install -D -m 755 %{_sourcedir}/gsad.init.mandriva 
%{buildroot}%{_initrddir}/greenbone-security-assistant
%__install -D -m 644 %{_sourcedir}/debian.greenbone-security-assistant.default 
%{buildroot}%{_sysconfdir}/sysconfig/greenbone-security-assistant
%endif

%__mkdir_p %{buildroot}%{_localstatedir}/log/openvas
touch %{buildroot}%{_localstatedir}/log/openvas/gsad.log

%if 0%{?suse_version}
%fdupes %{buildroot}
%endif

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%post
%if 0%{?suse_version}
%fillup_and_insserv greenbone-security-assistant
%endif

%if 0%{?mandriva_version}
%_post_service greenbone-security-assistant
%endif

%if 0%{?fedora_version} || 0%{?scientificlinux_version}
# only rpm -i (not rpm {-U|-F})
if [ $1 = 1 ]; then
        /sbin/chkconfig --add greenbone-security-assistant
fi
%endif

%preun
%if 0%{?suse_version}
%stop_on_removal greenbone-security-assistant
%endif

%if 0%{?mandriva_version}
%_preun_service greenbone-security-assistant
%endif

%if 0%{?fedora_version} || 0%{?scientificlinux_version}
# only rpm -e (not rpm {-U|-F})
if [ $1 = 0 ]; then
    /sbin/service greenbone-security-assistant stop > /dev/null 2>&1 || :
    /sbin/chkconfig --del greenbone-security-assistant
fi
%endif

%postun
%if 0%{?suse_version}
%restart_on_update greenbone-security-assistant
%insserv_cleanup
%endif

%if 0%{?fedora_version} || 0%{?scientificlinux_version}
# only rpm {-U|-F} (not rpm -e)
if [ $1 = 1 ]; then
    /sbin/service greenbone-security-assistant condrestart
fi
%endif

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/logrotate.d/greenbone-security-assistant
%dir %{_sysconfdir}/openvas
%config(noreplace) %{_sysconfdir}/openvas/gsad_log.conf
%{_initrddir}/greenbone-security-assistant
%{_sbindir}/gsad
%{_mandir}/man8/gsad.8*
%dir %{_datadir}/openvas
%{_datadir}/openvas/gsa
%dir %{_localstatedir}/log/openvas
%ghost %{_localstatedir}/log/openvas/gsad.log

%if 0%{?suse_version}
%{_sbindir}/rcgreenbone-security-assistant
%{_var}/adm/fillup-templates/sysconfig.greenbone-security-assistant
%else
%config(noreplace) %{_sysconfdir}/sysconfig/greenbone-security-assistant
%endif
%changelog
++++++ debian.changelog ++++++
greenbone-security-assistant (2.0.1-1) UNRELEASED; urgency=low

  * New upstream release.
    - Two memory leaks discovered by Pavel Sejnoha and one resource leak 
discovered
      by Felix Wolfsteller have been closed.
    - GSA now does XSL transformation in a separate process by default.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Wed, 02 Mar 2011 16:04:32 +0100

greenbone-security-assistant (2.0.0-1) UNRELEASED; urgency=low

  * New upstream release.
    - The JavaScript indicator has been improved.
    - GSA now checks for required libxml threading support.
    - The cookie base session identification has been improved.
    - An issue with parsing the session cookie has been fixed.
    - The handling of POST requests after a relogin has been improved.
    - The documentation and the build environment have been updated.
    - The scan config overview now shows the number of selected NVT through 
family
      selection as well.
    - A JavaScript indicator has been added.
    - Support for fallback system reports has been added.
    - An issue which caused logins to fail under certain circumstances due to 
overly
      strict input validation has been fixed.
    - The "About" page has been reworked.
    - Cookie base session identification has been added.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Fri, 23 Feb 2011 20:30:56 +0100

greenbone-security-assistant (1.99.3-1) UNRELEASED; urgency=low

  * New upstream release.
    - A notice is added to the log if binding to the default port failed and the
      fallback port was used.
    - GSA now uses pkg-config to find required libraries.
    - The HTTP Basic Auth based session management has been replace with a token
      based session management.
    - GSA now provides a manual page for the gsad binary.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Fri, 04 Feb 2011 23:31:10 +0100

greenbone-security-assistant (1.99.2-1) UNRELEASED; urgency=low

  * New upstream release.
    - The output of --version now complies with the GNU Coding Standards.
    - The range of valid characters for LSC credential passwords has been 
extended
      further.
    - If no port is specified, GSA will now attempt to listen on the appropriate
      privileged port (80 or 443) and fall back to listening on its default port
      (9392) if those are unavailable.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Tue, 26 Jan 2011 20:45:23 +0100

greenbone-security-assistant (1.99.1-1) UNRELEASED; urgency=low

  * New upstream release.
    - Error handling for reports has been improved.
    - A bug which cause credential comments to be ignored when creating new LSC
      credentials has been fixed.
    - Target credentials for SMB and SSH are now separated.
    - The user interface for displaying filtered reports and for report 
downloads
      has been improved.
    - Hardening flags are now enabled during compile time to increase code 
quality.
    - Support for setting the port range for a target has been added.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Tue, 21 Dec 2010 14:20:40 +0100

greenbone-security-assistant (1.98.1-1) UNRELEASED; urgency=low

  * New upstream release.
    - Support for report format plugin framework has been added.
    - Support for master-slave mode has been added.
    - Support for editing credentials has been added.
    - Support for agent verification has been added.
    - Input validation for user names and passwords has been improved.
    - Support for Microsoft Internet Explorer has been improved.
    - The usability and layout of the web interface has been improved.
    - GSA now builds with libmicrohttpd 0.9.2 and above.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Fri, 03 Dec 2010 18:28:20 +0100

greenbone-security-assistant (1.0.3-1) UNRELEASED; urgency=low

  * New upstream release.
    - When creating new credentials, password authentication is now the default.
    - A bug which caused the "Pause" button not to work under certain 
circumstances
      has been fixed.
    - The handling of errors during the XSL transformation has been improved.
    - The handling of long lines in the XSL transformation has been improved.
    - The range of characters allowed for LSC passwords has been extended.
    - An issue which prevented gsa from building with libmicrohttpd 0.9.2 has 
been
      fixed.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Sun, 31 Oct 2010 19:43:37 +0100

greenbone-security-assistant (1.0.2-1) UNRELEASED; urgency=low

  * New upstream release.
    - An issue which caused NVT family to be improperly submitted when using
      Microsoft Internet Explorer to edit NVT families has been fixed.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Tue, 17 Aug 2010 16:40:35 +0200

greenbone-security-assistant (1.0.1-1) UNRELEASED; urgency=low

  * New upstream release.
    - A bug which made it impossible to edit families containing a dash in their
      name has been fixed.
    - The scan status and the progress bar are now displayed in the report view 
as
      well.
    - Task control buttons are now visible on the task summary page as well.
    - Known scanner preferences are now displayed as yes/no radio buttons.
    - The installation instructions have been updated.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Mon, 09 Aug 2010 16:57:14 +0200

greenbone-security-assistant (1.0.0-1) UNRELEASED; urgency=low

  * New upstream release.
    - A bug which caused NVT preferences to be saved incorrectly under certain
      circumstances has been fixed.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Tue, 03 Aug 2010 15:39:10 +0200

greenbone-security-assistant (1.0.0.rc1-1) UNRELEASED; urgency=low

  * New upstream release.
    - Support for LDAP and ADS has been added.
    - A number of changes have been made to stay compatible with the updated OMP
      specification.
    - Initial support for fetching targets from external sources has been added.
    - Support for threat overrides has been added.
    - Support for Syslog and SNMP escalators has been added.
    - Support for agents has been improved.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Fri, 16 Jul 2010 17:35:44 +0200

greenbone-security-assistant (1.0.0.beta7-1) UNRELEASED; urgency=low

  * New upstream release.
    - An issue which caused empty charts in the performance monitor has been 
fixed.
    - An issue which caused a new task created with both an escalator and a 
schedule
      to lose the schedule has been fixed.
    - Support for Internet Explorer 6 clients has been improved.
    - Support for using the "Threat Level Change" escalator condition has been
      added.
    - The handling of uploaded preference files has been improved.
    - The handling of requests for nonexistent pages has been improved.
    - Support for pausing of tasks has been added.
    - Support for displaying CVSS scores and Risk Factor values has been added.
    - The handling of errors during XSL transformation has been improved.
    - The scan start time and end time for individual host are now displayed in 
the
      report.
    - Support for excluding hosts without results from the report has been 
added.
    - Support for filtering results based on CVSS scores has been fixed.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Sat, 29 May 2010 09:59:33 +0200

greenbone-security-assistant (1.0.0.beta6-1) UNRELEASED; urgency=low

  * New upstream release.
    - Support for ITG and CPE reports has been improved.
    - Support for resuming stopped tasks has been added.
    - Support for task scheduling has been added.
    - Initial support for editing tasks has been added.
    - Support for displaying the version of an installed feed has been added.
    - A number of build issues have been fixed.
    - The documentation available via the "?" icon has been updated.
    - The gsad binary is now installed to /usr/sbin instead of /usr/bin.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Thu, 15 Apr 2010 18:55:58 +0200  

greenbone-security-assistant (1.0.0.beta5-1) UNRELEASED; urgency=low

  * New upstream release.
    - Support for notes has been added.
    - Support for ITG and CPE reports has been added.
    - Improved HTTP conformity.
    - Significant speed-up.
    - Various cosmetic changes of the html pages
      as well as of some report types.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Sat, 20 Mar 2010 16:12:37 +0100

greenbone-security-assistant (1.0.0.beta4-1) UNRELEASED; urgency=low

  * New upstream release.
    - Improved HTTP conformity.
    - Improved Feed synchronization support.
    - Improved line wrapping in reports.
    - A bug in the report pagination has been fixed.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Fri, 05 Feb 2010 15:39:09 +0100

greenbone-security-assistant (1.0.0.beta3-1) UNRELEASED; urgency=low

  * New upstream release.
    - Improved HTTP conformity.
    - Fixed resource leak.
    - Improved input checking.
    - Add option to run in chroot.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Thu, 28 Jan 2010 08:47:13 +0100

greenbone-security-assistant (1.0.0.beta2-1) UNRELEASED; urgency=low

  * New upstream release.
    - Integrated online help extended. 
    - Improved handling of feed management.
    - Added support for administrator feature to edit
      scanner settings.
    - Added support for administrator feature to edit
      user details (password, IP-based access rules).
    - Allow "\" as part of a credential login name.
    - Remain on the task page after deleting the
      task's last report.
    - Improved handling of XML/HTML report exports.
    - Added command line option "--listen", "--alisten",
      "--mlisten".

 -- Stephan Kleine <bitshuff...@opensuse.org>  Wen, 27 Jan 2010 12:14:51 +0100

greenbone-security-assistant (1.0.0.beta1-1) UNRELEASED; urgency=low

  * Initial package.

 -- Stephan Kleine <bitshuff...@opensuse.org>  Sat, 23 Jan 2010 15:21:24 +0100
++++++ debian.compat ++++++
5
++++++ debian.control ++++++
Source: greenbone-security-assistant
Section: admin
Priority: optional
Maintainer: Stephan Kleine <bitshuff...@opensuse.org>
Build-Depends: debhelper (>= 5), dpatch, cmake, doxygen, hardening-wrapper, 
libmicrohttpd-dev (>= 0.4.2), libopenvas4-dev, libxslt1-dev, pkg-config, 
xsltproc
Standards-Version: 3.8.0

Package: greenbone-security-assistant
Section: net
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: The Greenbone Security Assistant
  The Greenbone Security Assistant is a web application that
  connects to the OpenVAS Manager and OpenVAS Administrator
  to provide for a full-featured user interface for
  vulnerability management.

Package: greenbone-security-assistant-dbg
Section: debug
Priority: extra
Architecture: any
Depends: ${misc:Depends}, greenbone-security-assistant (= ${binary:Version})
Description: The Greenbone Security Assistant (debug)
  The Greenbone Security Assistant is a web application that
  connects to the OpenVAS Manager and OpenVAS Administrator
  to provide for a full-featured user interface for
  vulnerability management.
  .
  This package contains the debugging symbols.
++++++ debian.greenbone-security-assistant.default ++++++
#
# The address the Greenbone Security Assistant will listen on.
#

GSA_ADDRESS=127.0.0.1

#
# The port the Greenbone Security Assistant will listen on.
#

GSA_PORT=9392

#
# The file to use as private key for HTTPS
#

#GSA_SSL_PRIVATE_KEY=

#
# The file to use as certificate for HTTPS
#

#GSA_SSL_CERTIFICATE=

#
# Should HTTP get redirected to HTTPS
# If $GSA_REDIRECT_PORT is not set it will redirect port 80.
#

#GSA_REDIRECT=1

#
# Redirect HTTP from this port to $GSA_PORT
# For this being effective $GSA_REDIRECT has to be set to 1.
#

#GSA_REDIRECT_PORT=9394

#
# The address the OpenVAS Administrator is listening on.
#

ADMINISTRATOR_ADDRESS=127.0.0.1

#
# The port the OpenVAS Administrator is listening on.
#

ADMINISTRATOR_PORT=9393

#
# The address the OpenVAS Manager is listening on.
#

MANAGER_ADDRESS=127.0.0.1

#
# The port the OpenVAS Manager is listening on.
#

MANAGER_PORT=9390
++++++ debian.greenbone-security-assistant.dirs ++++++
var/log/openvas
++++++ debian.greenbone-security-assistant.init ++++++
#!/bin/sh -e
#
# /etc/init.d/greenbone-security-assistant
#
### BEGIN INIT INFO
# Provides:          greenbone-security-assistant
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Should-Start:      
# Should-Stop:       
# Default-Start:     
# Default-Stop:      0 6
# Short-Description: Start and stop the Greenbone Security Assistant
# Description:       Controls the OpenVAS daemon "gsad".
### END INIT INFO

# time to wait for daemons death, in seconds
# don't set it too low or you might not let gsad die gracefully
DODTIME=5

# Read config
[ -r /etc/default/greenbone-security-assistant ] && . 
/etc/default/greenbone-security-assistant

[ "$GSA_ADDRESS" ] && DAEMONOPTS="--listen=$GSA_ADDRESS"
[ "$GSA_PORT" ] && DAEMONOPTS="$DAEMONOPTS --port=$GSA_PORT"
[ "$GSA_SSL_PRIVATE_KEY" ] && DAEMONOPTS="$DAEMONOPTS 
--ssl-private-key=$GSA_SSL_PRIVATE_KEY"
[ "$GSA_SSL_CERTIFICATE" ] && DAEMONOPTS="$DAEMONOPTS 
--ssl-certificate=$GSA_SSL_CERTIFICATE"
[ "$GSA_REDIRECT" ] && [ "$GSA_REDIRECT" == 1 ] && DAEMONOPTS="$DAEMONOPTS 
--redirect"
[ "$GSA_REDIRECT_PORT" ] && DAEMONOPTS="$DAEMONOPTS --rport=$GSA_REDIRECT_PORT"
[ "$ADMINISTRATOR_ADDRESS" ] && DAEMONOPTS="$DAEMONOPTS 
--alisten=$ADMINISTRATOR_ADDRESS"
[ "$ADMINISTRATOR_PORT" ] && DAEMONOPTS="$DAEMONOPTS 
--aport=$ADMINISTRATOR_PORT"
[ "$MANAGER_ADDRESS" ] && DAEMONOPTS="$DAEMONOPTS --mlisten=$MANAGER_ADDRESS"
[ "$MANAGER_PORT" ] && DAEMONOPTS="$DAEMONOPTS --mport=$MANAGER_PORT"

DAEMON=/usr/sbin/gsad
PIDFILE=/var/run/gsad.pid
NAME=gsad
LABEL="Greenbone Security Assistant"

test -x $DAEMON || exit 0


running()
{
    # No pidfile, probably no daemon present
    #
    [ ! -f "$PIDFILE" ] && return 1
    pid=`cat $PIDFILE`

    # No pid, probably no daemon present
    [ -z "$pid" ] && return 1

    [ ! -d /proc/$pid ] &&  return 1
    cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
    # No gsad?
    [ "$cmd" != "$NAME" ] &&  return 1

    return 0
}

start_daemon() {
        start-stop-daemon --start --exec $DAEMON -- $DAEMONOPTS 2>&1 >/dev/null
        errcode=$?
# If we don't sleep then running() might not see the pidfile
        sleep $DODTIME
        return $errcode
}

force_stop() {
        [ ! -e "$PIDFILE" ] && return
        if running ; then
                kill -15 $pid
        # Is it really dead?
                sleep "$DODTIME"s
                if running ; then
                        kill -9 $pid
                        sleep "$DODTIME"s
                        if running ; then
                                echo "Cannot kill $LABEL (pid=$pid)!"
                                exit 1
                        fi
                fi
        fi
        rm -f $PIDFILE
}

case "$1" in
  start)
    echo -n "Starting $LABEL: "
    if start_daemon && running ;  then
            echo "gsad."
    else
            echo "ERROR."
            exit 1
    fi
    ;;
  stop)
    echo -n "Stopping $LABEL: "
    if running ; then
        start-stop-daemon --stop --pidfile $PIDFILE --quiet --oknodo --exec 
$DAEMON
        sleep "$DODTIME"s
    fi
    if running; then
        force_stop
    fi
    echo "gsad."
      ;;
  restart)
    echo -n "Restarting $LABEL: "
    if running; then
        start-stop-daemon --stop --pidfile $PIDFILE --quiet --oknodo --exec 
$DAEMON
        sleep "$DODTIME"s
    fi
    if running; then
        force_stop
    fi
    if start_daemon && running ;  then
            echo "gsad."
    else
            echo "ERROR."
            exit 1
    fi
    ;;
  reload|force-reload)
    echo  -n "Reloading $LABEL configuration files: "
    start-stop-daemon --stop --pidfile $PIDFILE --signal 1 --exec $DAEMON
    sleep "$DODTIME"s
    if running ;  then
            echo "done."
    else
            echo "ERROR."
            exit 1
    fi
    ;;
  status)
    echo -n "$LABEL is "
    if running ;  then
            echo "running"
    else
            echo " not running."
            exit 1
    fi
    ;;
  *)
    echo "Usage: /etc/init.d/greenbone-security-assistant 
{start|stop|restart|reload|status}"
    exit 1
    ;;
esac

exit 0

++++++ debian.greenbone-security-assistant.install ++++++
etc/openvas
usr/sbin
usr/share/man/man8/gsad.8*
usr/share/openvas/gsa
++++++ debian.greenbone-security-assistant.logrotate ++++++
/var/log/openvas/gsad.log {
  missingok
  notifempty
  create 640 root adm
  daily
  rotate 7
  compress
  postrotate
    if [ -s /var/run/gsad.pid ]; then kill -1 `cat /var/run/gsad.pid`; fi
    openvaslogs=`ls /var/log/openvas/gsad.log.*`
    if [ -n "$openvaslogs" ]; then
        chown root:adm $openvaslogs
        chmod 640 $openvaslogs
    fi
  endscript
}

++++++ debian.rules ++++++
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# Enable hardening-wrapper
export DEB_BUILD_HARDENING=1

config: config-stamp

config-stamp:
        dh_testdir

        # Add here commands to configure the package.
        cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc 
-DLOCALSTATEDIR=/var -DCMAKE_BUILD_TYPE=release .

        touch $@


build: build-stamp

build-stamp:  config-stamp
        dh_testdir

        # Add here commands to compile the package.
        $(MAKE)

        touch $@

clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp config.stamp

        # Add here commands to clean up after the build process.

        dh_clean

install: build
        dh_testdir
        dh_testroot
        dh_clean -k
        dh_installdirs

        # Add here commands to install the package into debian/tmp
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
        dh_testdir
        dh_testroot
        dh_installchangelogs CHANGES
        dh_installdocs
        dh_install --sourcedir=debian/tmp
        dh_installdebconf
        dh_installlogrotate
        dh_installinit -n -r -u stop 20 0 6 .
        dh_installman --sourcedir=debian/tmp
        dh_link
        dh_strip --dbg-package=greenbone-security-assistant-dbg
        dh_compress
        dh_fixperms
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
        dh_md5sums
        dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
++++++ greenbone-security-assistant.dsc ++++++
Format: 1.0
Source: greenbone-security-assistant
Binary: greenbone-security-assistant
Architecture: any
Version: 2.0.1-1
Maintainer: Stephan Kleine <bitshuff...@opensuse.org>
Homepage: http://www.openvas.org/
Standards-Version: 3.8.0
Build-Depends: debhelper (>= 5), dpatch, cmake, doxygen, hardening-wrapper, 
libmicrohttpd-dev (>= 0.4.2), libopenvas4-dev, libxslt1-dev, pkg-config, 
xsltproc

Files: 
 776ce4e1000137c9aec7863372c8c876 373800 
greenbone-security-assistant-2.0.1.tar.gz
 131e6720b0526ade9405eade0d9150ac 56625 
greenbone-security-assistant-2.0.1.diff.gz
++++++ gsad.init.fedora ++++++
#!/bin/sh
#
# greenbone-security-assistant    This starts and stops the Greenbone Security 
Assistant.
#
# chkconfig:   35 75 25
# description: This starts and stops the Greenbone Security Assistant.
# processname: /usr/sbin/gsad
# config:      /etc/openvas/gsad.conf
# pidfile:     /var/run/gsad.pid
#
### BEGIN INIT INFO
# Provides: $greenbone-security-assistant
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

EXEC="/usr/sbin/gsad"
PROG=$(basename $EXEC)

# Check for missing binaries (stale symlinks should not happen)
# Note: Special treatment of stop for LSB conformance
test -x $EXEC || { echo "$EXEC not installed"; 
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }

# Check for existence of needed config file
GSAD_CONFIG=/etc/sysconfig/greenbone-security-assistant
test -r $GSAD_CONFIG || { echo "$GSAD_CONFIG not existing";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 6; fi; }

# Read config   
. $GSAD_CONFIG

# Build parameters
[ "$GSA_ADDRESS" ] && PARAMS="--listen=$GSA_ADDRESS"
[ "$GSA_PORT" ] && PARAMS="$PARAMS --port=$GSA_PORT"
[ "$GSA_SSL_PRIVATE_KEY" ] && PARAMS="$PARAMS 
--ssl-private-key=$GSA_SSL_PRIVATE_KEY"
[ "$GSA_SSL_CERTIFICATE" ] && PARAMS="$PARAMS 
--ssl-certificate=$GSA_SSL_CERTIFICATE"
[ "$GSA_REDIRECT" ] && [ "$GSA_REDIRECT" == 1 ] && PARAMS="$PARAMS --redirect"
[ "$GSA_REDIRECT_PORT" ] && PARAMS="$PARAMS --rport=$GSA_REDIRECT_PORT"
[ "$ADMINISTRATOR_ADDRESS" ] && PARAMS="$PARAMS 
--alisten=$ADMINISTRATOR_ADDRESS"
[ "$ADMINISTRATOR_PORT" ] && PARAMS="$PARAMS --aport=$ADMINISTRATOR_PORT"
[ "$MANAGER_ADDRESS" ] && PARAMS="$PARAMS --mlisten=$MANAGER_ADDRESS"
[ "$MANAGER_PORT" ] && PARAMS="$PARAMS --mport=$MANAGER_PORT"

LOCKFILE=/var/lock/subsys/$PROG

start() {
    echo -n $"Starting greenbone-security-assistant: "
    daemon $EXEC $PARAMS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $LOCKFILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping greenbone-security-assistant: "
    killproc $PROG
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
    return $RETVAL
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading greenbone-security-assistant: "
    killproc $PROG -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

force_reload() {
    restart
}

fdr_status() {
    status $PROG
}

case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        fdr_status
        ;;
    condrestart|try-restart)
        [ ! -f $LOCKFILE ] || restart
        ;;
    *)
        echo $"Usage: $0 
{start|stop|status|restart|try-restart|reload|force-reload}"
        exit 2
esac
++++++ gsad.init.mandriva ++++++
#!/bin/sh
#
# LSB compatible service control script; see http://www.linuxbase.org/spec/
# 
### BEGIN INIT INFO
# Provides:          greenbone-security-assistant
# Required-Start:    $syslog $remote_fs
# Should-Start:      $time ypbind smtp
# Required-Stop:     $syslog $remote_fs
# Should-Stop:       $time ypbind smtp
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: Greenbone Security Assistant
# Description:       Start the Greenbone Security Assistant.
### END INIT INFO
#

# Source function library.
. /etc/rc.d/init.d/functions

EXEC="/usr/sbin/gsad"
PROG=$(basename $EXEC)

# Check for missing binaries (stale symlinks should not happen)
# Note: Special treatment of stop for LSB conformance
test -x $EXEC || { echo "$EXEC not installed"; 
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }

# Check for existence of needed config file
GSAD_CONFIG=/etc/sysconfig/greenbone-security-assistant
test -r $GSAD_CONFIG || { echo "$GSAD_CONFIG not existing";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 6; fi; }

# Read config   
. $GSAD_CONFIG

# Build parameters
[ "$GSA_ADDRESS" ] && PARAMS="--listen=$GSA_ADDRESS"
[ "$GSA_PORT" ] && PARAMS="$PARAMS --port=$GSA_PORT"
[ "$GSA_SSL_PRIVATE_KEY" ] && PARAMS="$PARAMS 
--ssl-private-key=$GSA_SSL_PRIVATE_KEY"
[ "$GSA_SSL_CERTIFICATE" ] && PARAMS="$PARAMS 
--ssl-certificate=$GSA_SSL_CERTIFICATE"
[ "$GSA_REDIRECT" ] && [ "$GSA_REDIRECT" == 1 ] && PARAMS="$PARAMS --redirect"
[ "$GSA_REDIRECT_PORT" ] && PARAMS="$PARAMS --rport=$GSA_REDIRECT_PORT"
[ "$ADMINISTRATOR_ADDRESS" ] && PARAMS="$PARAMS 
--alisten=$ADMINISTRATOR_ADDRESS"
[ "$ADMINISTRATOR_PORT" ] && PARAMS="$PARAMS --aport=$ADMINISTRATOR_PORT"
[ "$MANAGER_ADDRESS" ] && PARAMS="$PARAMS --mlisten=$MANAGER_ADDRESS"
[ "$MANAGER_PORT" ] && PARAMS="$PARAMS --mport=$MANAGER_PORT"

LOCKFILE=/var/lock/subsys/$PROG

start() {
    echo -n $"Starting greenbone-security-assistant: "
    daemon $EXEC $PARAMS
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && touch $LOCKFILE
    return $RETVAL
}

stop() {
    echo -n $"Stopping greenbone-security-assistant: "
    killproc $PROG
    RETVAL=$?
    echo
    [ $RETVAL -eq 0 ] && rm -f $LOCKFILE
    return $RETVAL
}

restart() {
    stop
    start
}

reload() {
    echo -n $"Reloading greenbone-security-assistant: "
    killproc $PROG -HUP
    RETVAL=$?
    echo
    return $RETVAL
}

force_reload() {
    restart
}

fdr_status() {
    status $PROG
}

case "$1" in
    start|stop|restart|reload)
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        fdr_status
        ;;
    condrestart|try-restart)
        [ ! -f $LOCKFILE ] || restart
        ;;
    *)
        echo $"Usage: $0 
{start|stop|status|restart|try-restart|reload|force-reload}"
        exit 2
esac
++++++ gsad.init.suse ++++++
#!/bin/sh
#
# /etc/init.d/greenbone-security-assistant
#   and its symbolic link
# /usr/sbin/rcgreenbone-security-assistant
#
# LSB compatible service control script; see http://www.linuxbase.org/spec/
# 
### BEGIN INIT INFO
# Provides:          greenbone-security-assistant
# Required-Start:    $syslog $remote_fs
# Should-Start:      $time ypbind smtp
# Required-Stop:     $syslog $remote_fs
# Should-Stop:       $time ypbind smtp
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: Greenbone Security Assistant
# Description:       Start the Greenbone Security Assistant.
### END INIT INFO
#
# Note on runlevels:
# 0 - halt/poweroff                     6 - reboot
# 1 - single user                       2 - multiuser without network exported
# 3 - multiuser w/ network (text mode)  5 - multiuser w/ network and X11 (xdm)
# 


# Check for missing binaries (stale symlinks should not happen)
# Note: Special treatment of stop for LSB conformance
GSAD_BIN=/usr/sbin/gsad
test -x $GSAD_BIN || { echo "$GSAD_BIN not installed"; 
        if [ "$1" = "stop" ]; then exit 0;
        else exit 5; fi; }

# Check for existence of needed config file and read it
GSAD_CONFIG=/etc/sysconfig/greenbone-security-assistant
test -r $GSAD_CONFIG || { echo "$GSAD_CONFIG not existing";
        if [ "$1" = "stop" ]; then exit 0;
        else exit 6; fi; }

# Read config   
. $GSAD_CONFIG

# Build parameters
[ "$GSA_ADDRESS" ] && PARAMS="--listen=$GSA_ADDRESS"
[ "$GSA_PORT" ] && PARAMS="$PARAMS --port=$GSA_PORT"
[ "$GSA_SSL_PRIVATE_KEY" ] && PARAMS="$PARAMS 
--ssl-private-key=$GSA_SSL_PRIVATE_KEY"
[ "$GSA_SSL_CERTIFICATE" ] && PARAMS="$PARAMS 
--ssl-certificate=$GSA_SSL_CERTIFICATE"
[ "$GSA_REDIRECT" ] && [ "$GSA_REDIRECT" == 1 ] && PARAMS="$PARAMS --redirect"
[ "$GSA_REDIRECT_PORT" ] && PARAMS="$PARAMS --rport=$GSA_REDIRECT_PORT"
[ "$ADMINISTRATOR_ADDRESS" ] && PARAMS="$PARAMS 
--alisten=$ADMINISTRATOR_ADDRESS"
[ "$ADMINISTRATOR_PORT" ] && PARAMS="$PARAMS --aport=$ADMINISTRATOR_PORT"
[ "$MANAGER_ADDRESS" ] && PARAMS="$PARAMS --mlisten=$MANAGER_ADDRESS"
[ "$MANAGER_PORT" ] && PARAMS="$PARAMS --mport=$MANAGER_PORT"

# Source LSB init functions
# providing start_daemon, killproc, pidofproc, 
# log_success_msg, log_failure_msg and log_warning_msg.
# This is currently not used by UnitedLinux based distributions and
# not needed for init scripts for UnitedLinux only. If it is used,
# the functions from rc.status should not be sourced or used.
#. /lib/lsb/init-functions

# Shell functions sourced from /etc/rc.status:
#      rc_check         check and set local and overall rc status
#      rc_status        check and set local and overall rc status
#      rc_status -v     be verbose in local rc status and clear it afterwards
#      rc_status -v -r  ditto and clear both the local and overall rc status
#      rc_status -s     display "skipped" and exit with status 3
#      rc_status -u     display "unused" and exit with status 3
#      rc_failed        set local and overall rc status to failed
#      rc_failed <num>  set local and overall rc status to <num>
#      rc_reset         clear both the local and overall rc status
#      rc_exit          exit appropriate to overall rc status
#      rc_active        checks whether a service is activated by symlinks
. /etc/rc.status

# Reset status of this service
rc_reset

# Return values acc. to LSB for all commands but status:
# 0       - success
# 1       - generic or unspecified error
# 2       - invalid or excess argument(s)
# 3       - unimplemented feature (e.g. "reload")
# 4       - user had insufficient privileges
# 5       - program is not installed
# 6       - program is not configured
# 7       - program is not running
# 8--199  - reserved (8--99 LSB, 100--149 distrib, 150--199 appl)
# 
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signaling is not supported) are
# considered a success.

case "$1" in
    start)
        echo -n "Starting greenbone-security-assistant "
        ## Start daemon with startproc(8). If this fails
        ## the return value is set appropriately by startproc.
        /sbin/startproc $GSAD_BIN $PARAMS

        # Remember status and be verbose
        rc_status -v
        ;;
    stop)
        echo -n "Shutting down greenbone-security-assistant "
        ## Stop daemon with killproc(8) and if this fails
        ## killproc sets the return value according to LSB.

        /sbin/killproc -TERM $GSAD_BIN

        # Remember status and be verbose
        rc_status -v
        ;;
    try-restart|condrestart)
        ## Do a restart only if the service was active before.
        ## Note: try-restart is now part of LSB (as of 1.9).
        ## RH has a similar command named condrestart.
        if test "$1" = "condrestart"; then
                echo "${attn} Use try-restart ${done}(LSB)${attn} rather than 
condrestart ${warn}(RH)${norm}"
        fi
        $0 status
        if test $? = 0; then
                $0 restart
        else
                rc_reset        # Not running is not a failure.
        fi
        # Remember status and be quiet
        rc_status
        ;;
    restart)
        ## Stop the service and regardless of whether it was
        ## running or not, start it again.
        $0 stop
        $0 start

        # Remember status and be quiet
        rc_status
        ;;
    force-reload)
        ## Signal the daemon to reload its config. Most daemons
        ## do this on signal 1 (SIGHUP).
        ## If it does not support it, restart the service if it
        ## is running.

        echo -n "Reload service greenbone-security-assistant "
        ## if it supports it:
        /sbin/killproc -HUP $GSAD_BIN
        #touch /var/run/gsad.pid
        rc_status -v

        ## Otherwise:
        #$0 try-restart
        #rc_status
        ;;
    reload)
        ## Like force-reload, but if daemon does not support
        ## signaling, do nothing (!)

        # If it supports signaling:
        echo -n "Reload service greenbone-security-assistant "
        /sbin/killproc -HUP $GSAD_BIN
        #touch /var/run/gsad.pid
        rc_status -v
        
        ## Otherwise if it does not support reload:
        #rc_failed 3
        #rc_status -v
        ;;
    status)
        echo -n "Checking for service greenbone-security-assistant "
        ## Check status with checkproc(8), if process is running
        ## checkproc will return with exit status 0.

        # Return value is slightly different for the status command:
        # 0 - service up and running
        # 1 - service dead, but /var/run/  pid  file exists
        # 2 - service dead, but /var/lock/ lock file exists
        # 3 - service not running (unused)
        # 4 - service status unknown :-(
        # 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
        
        # NOTE: checkproc returns LSB compliant status values.
        /sbin/checkproc $GSAD_BIN
        # NOTE: rc_status knows that we called this init script with
        # "status" option and adapts its messages accordingly.
        rc_status -v
        ;;
    probe)
        ## Optional: Probe for the necessity of a reload, print out the
        ## argument to this init script which is required for a reload.
        ## Note: probe is not (yet) part of LSB (as of 1.9)

        test $GSAD_CONFIG -nt /var/run/gsad.pid && echo reload
        ;;
    *)
        echo "Usage: $0 
{start|stop|status|try-restart|restart|force-reload|reload|probe}"
        exit 1
        ;;
esac
rc_exit
++++++ gsad.logrotate ++++++
/var/log/openvas/gsad.log {
        daily
        rotate 7
        compress
        missingok
        notifempty
        sharedscripts
}

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to