Hello community,
here is the log from the commit of package openvas-administrator for openSUSE:Factory
checked in at Wed Mar 23 10:18:24 CET 2011.
--------
New Changes file:
--- /dev/null 2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/openvas-administrator/openvas-administrator.changes 2011-02-23 20:28:00.000000000 +0100
@@ -0,0 +1,147 @@
+-------------------------------------------------------------------
+Wed Feb 23 19:11:27 UTC 2011 - bitshuffler@opensuse.org
+
+- Updated to 1.1.1
+ * The build environment has been consolidated.
+ * The logging behaviour when started with --verbose has been improved.
+ * The parameter name for the user name has been changed to --username/-u.
+ * User name validation has been added.
+
+-------------------------------------------------------------------
+Fri Feb 4 21:48:16 UTC 2011 - bitshuffler@opensuse.org
+
+- Updated to 1.1.0
+ * The default log level has been reduced to avoid logging sensitive information
+ during normal operation.
+ * If the password for the new user has not been provided as a command line
+ parameter, it will be requested interactively.
+ * OpenVAS Administrator now uses pkg-config to find required libraries.
+ * OpenVAS Administrator now provides a manual page for the openvasad binary.
+ * The installation is now compliant with Filesystem Hierarchy Standard (FHS 2.3).
+
+-------------------------------------------------------------------
+Thu Jan 20 17:26:52 UTC 2011 - bitshuffler@opensuse.org
+
+- Updated to 1.0.1
+ * Fixed behaviour for ldap-based authentication for Admin role.
+ * Added protocol documentation for OAP (html and rnc format,
+ can be build with "make doc").
+ * Code hardening at compile time is now the default.
+ * Harmonized output of "--version" with other modules.
+
+-------------------------------------------------------------------
+Tue Dec 7 16:05:20 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 1.0.0
+ * Handling of invalid commands in console mode has been made more consistent.
+
+-------------------------------------------------------------------
+Wed Nov 24 18:13:15 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 0.99.1
+ * The build environment has been improved to be more consistent across different
+ OpenVAS modules and to stay compatible with different openvas-libraries
+ versions.
+ * Support for logging user creation, deletion and role changes has been added.
+
+-------------------------------------------------------------------
+Wed May 26 17:43:50 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 0.9.0
+ - A large amount of code which was duplicated from openvas-manager has been to
+ openvas-libraries.
+ - The build environment has been further improved.
+ - Support for providing the authentication configuration via OAP has been added.
+ - Support for modifying user has been improved, a number of issues and
+ inconsistencies has been addressed.
+ - New command line parameters for determining the feed version and the
+ synchronization status and for starting a feed synchronization have been
+ added.
+
+-------------------------------------------------------------------
+Mon Apr 12 21:09:55 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 0.8.0
+ * Communication with synchronization scripts launched by openvas-administrator
+ has been improved; this should prevent synchronization processes from becoming
+ defunct when they are finished.
+ * A number of build issues discovered by Stephan Kleine has been fixed.
+ * Support for retrieving the version of an installed NVT collect has been added.
+
+-------------------------------------------------------------------
+Fri Feb 5 11:51:08 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 0.7.0
+ * When synchronizing with an NVT feed, the administrator now simply starts the
+ synchronization script in the background instead of waiting for it to finish
+ before continuing.
+
+-------------------------------------------------------------------
+Tue Jan 26 18:34:16 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 0.6.0
+ * When creating a user, now scan hosts to be denied or
+ allowed for this user can be specified.
+ * A user editor has been added and allows to change
+ the host restrictions and the password
+ (OAP command MODIFY_USER)
+ * OAP command CLIENT_GET_USERS now also provides the
+ host restriction information.
+ * The log protocol filters entries where potentially
+ a password may appear, so that passwords do not end
+ up in a log file.
+ * uuid's are generated for each user.
+ * New package build dependency to uuid library.
+
+-------------------------------------------------------------------
+Sun Jan 24 05:14:22 UTC 2010 - bitshuffler@opensuse.org
+
+- Added %ghost entry for log file.
+- Added logrotate file.
+- Added init script.
+- Fixed cmake arguments.
+
+-------------------------------------------------------------------
+Wed Jan 20 12:51:39 UTC 2010 - bitshuffler@opensuse.org
+
+- Updated to 0.5.0
+ * Make it possible to sort the list of users.
+ * Setting retrieval has been improved.
+ * Feed synchronization has been improved.
+ * Added support for modifying settings.
+
+-------------------------------------------------------------------
+Wed Dec 23 09:16:06 UTC 2009 - felix.wolfsteller@intevation.de
+
+- Added and apply patch of Vladimir Nadvornik (built libs are
+ static, no need to install them)
+
+-------------------------------------------------------------------
+Tue Dec 22 10:11:29 UTC 2009 - felix.wolfsteller@intevation.de
+
+- Marked log config file as %config
+
+-------------------------------------------------------------------
+Tue Dec 22 09:06:52 UTC 2009 - felix.wolfsteller@intevation.de
+
+- Updated to 0.4.0
+ * A bug which cause defunct administrator processes to remain after
+ feed synchronization has been fixed.
+ * Initial support for retrieving settings von configuration files
+ has been added.
+- Adjusted to use bz2 (instead of gz) tarball
+
+-------------------------------------------------------------------
+Thu Dec 10 21:33:57 UTC 2009 - bitshuffler@opensuse.org
+
+- Updated to 0.3.0
+ * Pidfile handling has been made more robust.
+ * A number of possible resource leaks have been identified and fixed.
+ * The configuration and build process has been improved.
+ * Support for NVT feed synchronization has been added.
+
+-------------------------------------------------------------------
+Tue Nov 24 21:30:31 UTC 2009 - bitshuffler@opensuse.org
+
+- Initial RPM
+
calling whatdependson for head-i586
New:
----
debian.changelog
debian.compat
debian.control
debian.dirs
debian.install
debian.openvas-administrator.default
debian.openvas-administrator.init
debian.openvas-administrator.logrotate
debian.rules
debian.series
openvas-administrator-1.1.1-out_of_source_build.patch
openvas-administrator-1.1.1.tar.gz
openvas-administrator.changes
openvas-administrator.dsc
openvas-administrator.spec
openvasad.init.fedora
openvasad.init.mandriva
openvasad.init.suse
openvasad.logrotate
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openvas-administrator.spec ++++++
#
# spec file for package openvas-administrator
#
# 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: openvas-administrator
Version: 1.1.1
Release: 1
License: GNU GPL v2 or later
Group: Productivity/Networking/Security
Url: http://www.openvas.org
Source0: %{name}-%{version}.tar.gz
Source1: openvasad.logrotate
Source2: debian.openvas-administrator.default
Source3: openvasad.init.suse
Source4: openvasad.init.fedora
Source5: openvasad.init.mandriva
Patch0: openvas-administrator-1.1.1-out_of_source_build.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?mandriva_version}
BuildRequires: pinentry-gtk2
%endif
BuildRequires: cmake >= 2.6.0
BuildRequires: doxygen
BuildRequires: glib2-devel
BuildRequires: libopenvas-devel >= 3.0.0
BuildRequires: pkgconfig
Requires: logrotate
Summary: Administrator Module of OpenVAS
%description
This is the administrator module for the Open Vulnerability Assessment
System (OpenVAS). It is intended to simplify the configuration and
administration of an OpenVAS server both on a local installation as
well as on a remote system.
%prep
%setup -q
%patch0
%build
%if 0%{?mandriva_version}
%serverbuild
%endif
export CFLAGS="$RPM_OPT_FLAGS"
%__mkdir build
cd build
cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DSYSCONFDIR=%{_sysconfdir} \
-DLOCALSTATEDIR=%{_localstatedir} \
-DCMAKE_BUILD_TYPE=release
%__make %{?_smp_mflags} VERBOSE=1
#%__make %{?_smp_mflags} doc
%install
cd build
%__make install DESTDIR=%{buildroot}
%__install -D -m 644 %{_sourcedir}/openvasad.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/openvas-administrator
%if 0%{?suse_version}
%__install -D -m 744 %{_sourcedir}/openvasad.init.suse %{buildroot}%{_initrddir}/openvas-administrator
%__ln_s %{_initrddir}/openvas-administrator %{buildroot}%{_sbindir}/rcopenvas-administrator
%__install -D -m 644 %{_sourcedir}/debian.openvas-administrator.default %{buildroot}%{_var}/adm/fillup-templates/sysconfig.openvas-administrator
%endif
%if 0%{?fedora_version} || 0%{?scientificlinux_version}
%__install -D -m 744 %{_sourcedir}/openvasad.init.fedora %{buildroot}%{_initrddir}/openvas-administrator
%__install -D -m 644 %{_sourcedir}/debian.openvas-administrator.default %{buildroot}%{_sysconfdir}/sysconfig/openvas-administrator
%endif
%if 0%{?mandriva_version}
%__install -D -m 744 %{_sourcedir}/openvasad.init.mandriva %{buildroot}%{_initrddir}/openvas-administrator
%__install -D -m 644 %{_sourcedir}/debian.openvas-administrator.default %{buildroot}%{_sysconfdir}/sysconfig/openvas-administrator
%endif
%__mkdir_p %{buildroot}%{_localstatedir}/log/openvas
touch %{buildroot}%{_localstatedir}/log/openvas/openvasad.log
%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}
%post
%if 0%{?suse_version}
%fillup_and_insserv openvas-administrator
%endif
%if 0%{?mandriva_version}
%_post_service openvas-administrator
%endif
%if 0%{?fedora_version} || 0%{?scientificlinux_version}
# only rpm -i (not rpm {-U|-F})
if [ $1 = 1 ]; then
/sbin/chkconfig --add openvas-administrator
fi
%endif
%preun
%if 0%{?suse_version}
%stop_on_removal openvas-administrator
%endif
%if 0%{?mandriva_version}
%_preun_service openvas-administrator
%endif
%if 0%{?fedora_version} || 0%{?scientificlinux_version}
# only rpm -e (not rpm {-U|-F})
if [ $1 = 0 ]; then
/sbin/service openvas-administrator stop > /dev/null 2>&1 || :
/sbin/chkconfig --del openvas-administrator
fi
%endif
%postun
%if 0%{?suse_version}
%restart_on_update openvas-administrator
%insserv_cleanup
%endif
%if 0%{?fedora_version} || 0%{?scientificlinux_version}
# only rpm {-U|-F} (not rpm -e)
if [ $1 = 1 ]; then
/sbin/service openvas-administrator condrestart
fi
%endif
%files
%defattr(-,root,root)
%doc CHANGES
%config(noreplace) %{_sysconfdir}/logrotate.d/openvas-administrator
%dir %{_sysconfdir}/openvas
%config(noreplace) %{_sysconfdir}/openvas/openvasad_log.conf
%{_initrddir}/openvas-administrator
%{_sbindir}/openvasad
%{_mandir}/man8/openvasad.8*
%{_datadir}/openvas/openvasad
%dir %{_localstatedir}/log/openvas
%ghost %{_localstatedir}/log/openvas/openvasad.log
%if 0%{?suse_version}
%{_sbindir}/rcopenvas-administrator
%{_var}/adm/fillup-templates/sysconfig.openvas-administrator
%else
%config(noreplace) %{_sysconfdir}/sysconfig/openvas-administrator
%endif
%changelog
++++++ debian.changelog ++++++
openvas-administrator (1.1.1-1) UNRELEASED; urgency=low
* New upstream release
- The build environment has been consolidated.
- The logging behaviour when started with --verbose has been improved.
- The parameter name for the user name has been changed to --username/-u.
- User name validation has been added.
-- Stephan Kleine Wed, 23 Feb 2011 20:11:02 +0100
openvas-administrator (1.1.0-1) UNRELEASED; urgency=low
* New upstream release
- The default log level has been reduced to avoid logging sensitive information
during normal operation.
- If the password for the new user has not been provided as a command line
parameter, it will be requested interactively.
- OpenVAS Administrator now uses pkg-config to find required libraries.
- OpenVAS Administrator now provides a manual page for the openvasad binary.
- The installation is now compliant with Filesystem Hierarchy Standard (FHS 2.3).
-- Stephan Kleine Fri, 04 Feb 2011 22:27:59 +0100
openvas-administrator (1.0.1-1) UNRELEASED; urgency=low
* New upstream release
- Fixed behaviour for ldap-based authentication for Admin role.
- Added protocol documentation for OAP (html and rnc format,
can be build with "make doc").
- Code hardening at compile time is now the default.
- Harmonized output of "--version" with other modules.
-- Stephan Kleine Thu, 20 Jan 2010 18:25:34 +0100
openvas-administrator (1.0.0-1) UNRELEASED; urgency=low
* New upstream release
- Handling of invalid commands in console mode has been made more consistent.
-- Stephan Kleine Tue, 07 Nov 2010 17:06:12 +0100
openvas-administrator (0.99.1-1) UNRELEASED; urgency=low
* New upstream release
- The build environment has been improved to be more consistent across different
OpenVAS modules and to stay compatible with different openvas-libraries
versions.
- Support for logging user creation, deletion and role changes has been added.
-- Stephan Kleine Wed, 24 Nov 2010 19:11:48 +0100
openvas-administrator (0.9.0-1) UNRELEASED; urgency=low
* New upstream release
- A large amount of code which was duplicated from openvas-manager has been to
openvas-libraries.
- The build environment has been further improved.
- Support for providing the authentication configuration via OAP has been added.
- Support for modifying user has been improved, a number of issues and
inconsistencies has been addressed.
- New command line parameters for determining the feed version and the
synchronization status and for starting a feed synchronization have been
added.
-- Stephan Kleine Wed, 26 May 2010 19:45:26 +0200
openvas-administrator (0.8.0-1) UNRELEASED; urgency=low
* New upstream release
- Communication with synchronization scripts launched by openvas-administrator
has been improved; this should prevent synchronization processes from becoming
defunct when they are finished.
- A number of build issues discovered by Stephan Kleine has been fixed.
- Support for retrieving the version of an installed NVT collect has been added.
-- Stephan Kleine Mon, 12 Apr 2010 23:10:21 +0200
openvas-administrator (0.7.0-1) UNRELEASED; urgency=low
* New upstream release
- When synchronizing with an NVT feed, the administrator now simply starts the
synchronization script in the background instead of waiting for it to finish
before continuing.
-- Stephan Kleine Fri, 05 Feb 2010 11:49:53 +0100
openvas-administrator (0.6.0-1) UNRELEASED; urgency=low
* New upstream release
- When creating a user, now scan hosts to be denied or
allowed for this user can be specified.
- A user editor has been added and allows to change
the host restrictions and the password
(OAP command MODIFY_USER)
- OAP command CLIENT_GET_USERS now also provides the
host restriction information.
- The log protocol filters entries where potentially
a password may appear, so that passwords do not end
up in a log file.
- uuid's are generated for each user.
- New package build dependency to uuid library.
-- Stephan Kleine Tue, 26 Jan 2010 16:24:09 +0100
openvas-administrator (0.5.0-1) UNRELEASED; urgency=low
* Initial package.
-- Stephan Kleine Sat, 23 Jan 2010 10:48:16 +0100
++++++ debian.compat ++++++
5
++++++ debian.control ++++++
Source: openvas-administrator
Section: admin
Priority: optional
Maintainer: Stephan Kleine
Build-Depends: debhelper (>= 7), cmake, doxygen, hardening-wrapper, libopenvas3-dev | libopenvas4-dev, pkg-config
Standards-Version: 3.7.3
Homepage: http://www.openvas.org/
Package: openvas-administrator
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Administrator Module of OpenVAS
This is the administrator module for the Open Vulnerability
Assessment System (OpenVAS). It is intended to simplify the configuration and
administration of an OpenVAS server both on a local installation as well as on a
remote system.
Package: openvas-administrator-dbg
Section: debug
Priority: extra
Architecture: any
Depends:
${misc:Depends}, openvas-administrator (= ${binary:Version})
Description: Administrator Module of OpenVAS (debug)
This is the administrator module for the Open Vulnerability
Assessment System (OpenVAS). It is intended to simplify the configuration and
administration of an OpenVAS server both on a local installation as well as on a
remote system.
++++++ debian.dirs ++++++
var/log/openvas
++++++ debian.install ++++++
etc/openvas
usr/sbin
usr/share/man/man8/openvasad.8*
usr/share/openvas/openvasad
++++++ debian.openvas-administrator.default ++++++
#
# The address the OpenVAS Administrator will listen on.
#
ADMINISTRATOR_ADDRESS=127.0.0.1
#
# The port the OpenVAS Administrator will listen on.
#
ADMINISTRATOR_PORT=9393
#
# Directory containing the OpenVAS user data
#
USER_DATA=/var/lib/openvas/users
#
# File containing the OpenVAS Scanner configuration
#
SCANNER_CONFIG=/etc/openvas/openvassd.conf
#
# Script to use for NVT feed synchronization
#
SYNC_SCRIPT=/usr/sbin/openvas-nvt-sync
++++++ debian.openvas-administrator.init ++++++
#!/bin/sh -e
#
# /etc/init.d/openvas-administrator
#
### BEGIN INIT INFO
# Provides: openvas-administrator
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start:
# Should-Stop:
# Default-Start:
# Default-Stop: 0 6
# Short-Description: Start and stop the OpenVAS Administrator
# Description: Controls the OpenVAS daemon "openvasad".
### END INIT INFO
# time to wait for daemons death, in seconds
# don't set it too low or you might not let openvasad die gracefully
DODTIME=5
# Read config
[ -r /etc/default/openvas-administrator ] && . /etc/default/openvas-administrator
[ "ADMINISTRATOR_ADDRESS" ] && DAEMONOPTS="--listen="$ADMINISTRATOR_ADDRESS
[ "ADMINISTRATOR_PORT" ] && DAEMONOPTS="$DAEMONOPTS --port="$ADMINISTRATOR_PORT
[ "USER_DATA" ] && DAEMONOPTS="$DAEMONOPTS --users-dir="$USER_DATA
[ "SCANNER_CONFIG" ] && DAEMONOPTS="$DAEMONOPTS --scanner-config-file="$SCANNER_CONFIG
[ "SYNC_SCRIPT" ] && DAEMONOPTS="$DAEMONOPTS --sync-script="$SYNC_SCRIPT
DAEMON=/usr/sbin/openvasad
PIDFILE=/var/run/openvasad.pid
NAME=openvasad
LABEL="OpenVAS Administrator"
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 openvasad?
[ `basename "$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 "openvasad."
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 "openvasad."
;;
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 "openvasad."
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/openvas-administrator {start|stop|restart|reload|status}"
exit 1
;;
esac
exit 0
++++++ debian.openvas-administrator.logrotate ++++++
/var/log/openvas/openvasad.log {
missingok
notifempty
create 640 root adm
daily
rotate 7
compress
postrotate
if [ -s /var/run/openvasad.pid ]; then kill -1 `cat /var/run/openvasad.pid`; fi
openvaslogs=`ls /var/log/openvas/openvasad.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) VERBOSE=1
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=openvas-administrator-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
++++++ debian.series ++++++
openvas-administrator-1.1.1-out_of_source_build.patch -p0
++++++ openvas-administrator-1.1.1-out_of_source_build.patch ++++++
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig 2011-02-21 11:04:30.000000000 +0100
+++ CMakeLists.txt 2011-02-23 20:19:23.862970872 +0100
@@ -236,7 +236,7 @@ enable_testing ()
## Install
-install (FILES src/openvasad_log.conf
+install (FILES ${CMAKE_BINARY_DIR}/src/openvasad_log.conf
DESTINATION ${OPENVAS_SYSCONF_DIR})
install (FILES src/schema_formats/HTML/generate
++++++ openvas-administrator.dsc ++++++
Format: 1.0
Source: openvas-administrator
Binary: openvas-administrator
Architecture: any
Version: 1.1.1-1
Maintainer: Stephan Kleine
Homepage: http://www.openvas.org/
Standards-Version: 3.8.0
Build-Depends: debhelper (>= 7), cmake, doxygen, hardening-wrapper, libopenvas3-dev | libopenvas4-dev, pkg-config
Files:
776ce4e1000137c9aec7863372c8c876 373800 openvas-administrator-1.1.1.orig.tar.gz
131e6720b0526ade9405eade0d9150ac 56625 openvas-administrator-1.1.1.diff.gz
++++++ openvasad.init.fedora ++++++
#!/bin/sh
#
# openvas-administrator This starts and stops the OpenVAS Administrator.
#
# chkconfig: 35 75 25
# description: This starts and stops the OpenVAS Administrator.
# processname: /usr/sbin/openvasad
# config: /etc/openvas/openvasad.conf
# pidfile: /var/run/openvasad.pid
#
### BEGIN INIT INFO
# Provides: $openvas-administrator
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
EXEC="/usr/sbin/openvasad"
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
OPENVASAD_CONFIG=/etc/sysconfig/openvas-administrator
test -r $OPENVASAD_CONFIG || { echo "$OPENVASAD_CONFIG not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }
# Read config
. $OPENVASAD_CONFIG
[ "ADMINISTRATOR_ADDRESS" ] && PARAMS="--listen="$ADMINISTRATOR_ADDRESS
[ "ADMINISTRATOR_PORT" ] && PARAMS="$PARAMS --port="$ADMINISTRATOR_PORT
[ "USER_DATA" ] && PARAMS="$PARAMS --users-dir="$USER_DATA
[ "SCANNER_CONFIG" ] && PARAMS="$PARAMS --scanner-config-file="$SCANNER_CONFIG
[ "SYNC_SCRIPT" ] && PARAMS="$PARAMS --sync-script="$SYNC_SCRIPT
LOCKFILE=/var/lock/subsys/$PROG
start() {
echo -n $"Starting openvas-administrator: "
daemon $EXEC $PARAMS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $LOCKFILE
return $RETVAL
}
stop() {
echo -n $"Stopping openvas-administrator: "
killproc $PROG
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
return $RETVAL
}
restart() {
stop
start
}
#reload() {
# echo -n $"Reloading openvasad.conf file: "
# killproc $PROG -HUP
# RETVAL=$?
# echo
# return $RETVAL
#}
force_reload() {
restart
}
fdr_status() {
status $PROG
}
case "$1" in
#start|stop|restart|reload)
start|stop|restart)
$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}"
echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
esac
++++++ openvasad.init.mandriva ++++++
#!/bin/sh
#
# LSB compatible service control script; see http://www.linuxbase.org/spec/
#
### BEGIN INIT INFO
# Provides: openvas-administrator
# 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: OpenVAS Administrator
# Description: This starts and stops the OpenVAS Administrator.
### END INIT INFO
#
# Source function library.
. /etc/rc.d/init.d/functions
EXEC="/usr/sbin/openvasad"
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
OPENVASAD_CONFIG=/etc/sysconfig/openvas-administrator
test -r $OPENVASAD_CONFIG || { echo "$OPENVASAD_CONFIG not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }
# Read config
. $OPENVASAD_CONFIG
[ "ADMINISTRATOR_ADDRESS" ] && PARAMS="--listen="$ADMINISTRATOR_ADDRESS
[ "ADMINISTRATOR_PORT" ] && PARAMS="$PARAMS --port="$ADMINISTRATOR_PORT
[ "USER_DATA" ] && PARAMS="$PARAMS --users-dir="$USER_DATA
[ "SCANNER_CONFIG" ] && PARAMS="$PARAMS --scanner-config-file="$SCANNER_CONFIG
[ "SYNC_SCRIPT" ] && PARAMS="$PARAMS --sync-script="$SYNC_SCRIPT
LOCKFILE=/var/lock/subsys/$PROG
start() {
echo -n $"Starting openvas-administrator: "
daemon $EXEC $PARAMS
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $LOCKFILE
return $RETVAL
}
stop() {
echo -n $"Stopping openvas-administrator: "
killproc $PROG
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
return $RETVAL
}
restart() {
stop
start
}
#reload() {
# echo -n $"Reloading openvasad.conf file: "
# killproc $PROG -HUP
# RETVAL=$?
# echo
# return $RETVAL
#}
force_reload() {
restart
}
fdr_status() {
status $PROG
}
case "$1" in
#start|stop|restart|reload)
start|stop|restart)
$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}"
echo $"Usage: $0 {start|stop|status|restart|try-restart|force-reload}"
exit 2
esac
++++++ openvasad.init.suse ++++++
#!/bin/sh
#
# /etc/init.d/openvas-administrator
# and its symbolic link
# /usr/sbin/rcopenvas-administrator
#
# LSB compatible service control script; see http://www.linuxbase.org/spec/
#
### BEGIN INIT INFO
# Provides: openvas-administrator
# 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: OpenVAS Administrator
# Description: This starts and stops the OpenVAS Administrator.
### 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
OPENVASAD_BIN=/usr/sbin/openvasad
test -x $OPENVASAD_BIN || { echo "$OPENVASAD_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
# Check for existence of needed config file and read it
OPENVASAD_CONFIG=/etc/sysconfig/openvas-administrator
test -r $OPENVASAD_CONFIG || { echo "$OPENVASAD_CONFIG not existing";
if [ "$1" = "stop" ]; then exit 0;
else exit 6; fi; }
# Read config
. $OPENVASAD_CONFIG
[ "ADMINISTRATOR_ADDRESS" ] && PARAMS="--listen="$ADMINISTRATOR_ADDRESS
[ "ADMINISTRATOR_PORT" ] && PARAMS="$PARAMS --port="$ADMINISTRATOR_PORT
[ "USER_DATA" ] && PARAMS="$PARAMS --users-dir="$USER_DATA
[ "SCANNER_CONFIG" ] && PARAMS="$PARAMS --scanner-config-file="$SCANNER_CONFIG
[ "SYNC_SCRIPT" ] && PARAMS="$PARAMS --sync-script="$SYNC_SCRIPT
# 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 openvas-administrator "
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
/sbin/startproc $OPENVASAD_BIN $PARAMS
# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down openvas-administrator "
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.
/sbin/killproc -TERM $OPENVASAD_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 openvas-administrator "
## if it supports it:
/sbin/killproc -HUP $OPENVASAD_BIN
#touch /var/run/openvasad.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 openvas-administrator "
/sbin/killproc -HUP $OPENVASAD_BIN
#touch /var/run/openvasad.pid
rc_status -v
## Otherwise if it does not support reload:
#rc_failed 3
#rc_status -v
;;
status)
echo -n "Checking for service openvas-administrator "
## 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 $OPENVASAD_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 $OPENVASAD_CONFIG -nt /var/run/openvasad.pid && echo reload
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
exit 1
;;
esac
rc_exit
++++++ openvasad.logrotate ++++++
/var/log/openvas/openvasad.log {
daily
rotate 7
compress
missingok
notifempty
sharedscripts
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org