[Oval-commits] r196 - trunk/oval-agent/debian

Pavel Vinogradov blaze-guest at alioth.debian.org
Thu Aug 23 13:52:24 UTC 2007


Author: blaze-guest
Date: 2007-08-23 13:52:23 +0000 (Thu, 23 Aug 2007)
New Revision: 196

Added:
   trunk/oval-agent/debian/oval-agent.init
Removed:
   trunk/oval-agent/debian/cron.d.ex
   trunk/oval-agent/debian/emacsen-install.ex
   trunk/oval-agent/debian/emacsen-remove.ex
   trunk/oval-agent/debian/emacsen-startup.ex
   trunk/oval-agent/debian/init.d.ex
   trunk/oval-agent/debian/manpage.sgml.ex
   trunk/oval-agent/debian/manpage.xml.ex
   trunk/oval-agent/debian/menu.ex
   trunk/oval-agent/debian/watch.ex
Modified:
   trunk/oval-agent/debian/changelog
   trunk/oval-agent/debian/control
   trunk/oval-agent/debian/dirs
   trunk/oval-agent/debian/docs
   trunk/oval-agent/debian/oval-agent-default.ex
Log:
Work on Debian stuff

Modified: trunk/oval-agent/debian/changelog
===================================================================
--- trunk/oval-agent/debian/changelog	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/changelog	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,5 +1,5 @@
 oval-agent (0.2) unstable; urgency=low
 
-  * Initial Release.
+  * Initial Release. (Closes: #111111)
 
  -- Pavel Vinogradov <Pavel.Vinogradov at nixdev.net>  Thu, 23 Aug 2007 17:37:09 +0500

Modified: trunk/oval-agent/debian/control
===================================================================
--- trunk/oval-agent/debian/control	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/control	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,12 +1,14 @@
 Source: oval-agent
-Section: unknown
-Priority: extra
+Section: admin
+Priority: optional
 Maintainer: Pavel Vinogradov <Pavel.Vinogradov at nixdev.net>
 Build-Depends: debhelper (>= 5)
+Build-Depends-Indep: python-dev, python-support (>= 0.5.6)
 Standards-Version: 3.7.2
 
 Package: oval-agent
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: <insert up to 60 chars description>
- <insert long description, indented with spaces>
+Architecture: all
+Depends: ${python:Depends}, ovaldi
+Description: OVAL agent
+  OVAL agent is a deamon that interact with oval-server, receive OVAL definitions 
+  quering local machine with help of ovaldi and send results back to server.

Deleted: trunk/oval-agent/debian/cron.d.ex
===================================================================
--- trunk/oval-agent/debian/cron.d.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/cron.d.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,4 +0,0 @@
-#
-# Regular cron jobs for the oval-agent package
-#
-0 4	* * *	root	oval-agent_maintenance

Modified: trunk/oval-agent/debian/dirs
===================================================================
--- trunk/oval-agent/debian/dirs	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/dirs	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,2 +1,5 @@
 usr/bin
-usr/sbin
+var/lib/oval-agent
+etc/init.d
+etc/oval
+var/log/oval

Modified: trunk/oval-agent/debian/docs
===================================================================
--- trunk/oval-agent/debian/docs	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/docs	2007-08-23 13:52:23 UTC (rev 196)
@@ -0,0 +1 @@
+README

Deleted: trunk/oval-agent/debian/emacsen-install.ex
===================================================================
--- trunk/oval-agent/debian/emacsen-install.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/emacsen-install.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,45 +0,0 @@
-#! /bin/sh -e
-# /usr/lib/emacsen-common/packages/install/oval-agent
-
-# Written by Jim Van Zandt <jrv at debian.org>, borrowing heavily
-# from the install scripts for gettext by Santiago Vila
-# <sanvila at ctv.es> and octave by Dirk Eddelbuettel <edd at debian.org>.
-
-FLAVOR=$1
-PACKAGE=oval-agent
-
-if [ ${FLAVOR} = emacs ]; then exit 0; fi
-
-echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
-
-#FLAVORTEST=`echo $FLAVOR | cut -c-6`
-#if [ ${FLAVORTEST} = xemacs ] ; then
-#    SITEFLAG="-no-site-file"
-#else
-#    SITEFLAG="--no-site-file"
-#fi
-FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile"
-
-ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
-ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
-
-# Install-info-altdir does not actually exist. 
-# Maybe somebody will write it.
-if test -x /usr/sbin/install-info-altdir; then
-    echo install/${PACKAGE}: install Info links for ${FLAVOR}
-    install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz
-fi
-
-install -m 755 -d ${ELCDIR}
-cd ${ELDIR}
-FILES=`echo *.el`
-cp ${FILES} ${ELCDIR}
-cd ${ELCDIR}
-
-cat << EOF > path.el
-(setq load-path (cons "." load-path) byte-compile-warnings nil)
-EOF
-${FLAVOR} ${FLAGS} ${FILES}
-rm -f *.el path.el
-
-exit 0

Deleted: trunk/oval-agent/debian/emacsen-remove.ex
===================================================================
--- trunk/oval-agent/debian/emacsen-remove.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/emacsen-remove.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,15 +0,0 @@
-#!/bin/sh -e
-# /usr/lib/emacsen-common/packages/remove/oval-agent
-
-FLAVOR=$1
-PACKAGE=oval-agent
-
-if [ ${FLAVOR} != emacs ]; then
-    if test -x /usr/sbin/install-info-altdir; then
-        echo remove/${PACKAGE}: removing Info links for ${FLAVOR}
-        install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/oval-agent.info.gz
-    fi
-
-    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
-    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
-fi

Deleted: trunk/oval-agent/debian/emacsen-startup.ex
===================================================================
--- trunk/oval-agent/debian/emacsen-startup.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/emacsen-startup.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,25 +0,0 @@
-;; -*-emacs-lisp-*-
-;;
-;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50oval-agent.el
-;; for the Debian oval-agent package
-;;
-;; Originally contributed by Nils Naumann <naumann at unileoben.ac.at>
-;; Modified by Dirk Eddelbuettel <edd at debian.org>
-;; Adapted for dh-make by Jim Van Zandt <jrv at debian.org>
-
-;; The oval-agent package follows the Debian/GNU Linux 'emacsen' policy and
-;; byte-compiles its elisp files for each 'emacs flavor' (emacs19,
-;; xemacs19, emacs20, xemacs20...).  The compiled code is then
-;; installed in a subdirectory of the respective site-lisp directory.
-;; We have to add this to the load-path:
-(let ((package-dir (concat "/usr/share/"
-                           (symbol-name flavor)
-                           "/site-lisp/oval-agent")))
-;; If package-dir does not exist, the oval-agent package must have
-;; removed but not purged, and we should skip the setup.
-  (when (file-directory-p package-dir)
-        (setq load-path (cons package-dir load-path))
-       (autoload 'oval-agent-mode "oval-agent-mode"
-         "Major mode for editing oval-agent files." t)
-       (add-to-list 'auto-mode-alist '("\\.oval-agent$" . oval-agent-mode))))
-

Deleted: trunk/oval-agent/debian/init.d.ex
===================================================================
--- trunk/oval-agent/debian/init.d.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/init.d.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,81 +0,0 @@
-#! /bin/sh
-#
-# skeleton	example file to build /etc/init.d/ scripts.
-#		This file should be used to construct scripts for /etc/init.d.
-#
-#		Written by Miquel van Smoorenburg <miquels at cistron.nl>.
-#		Modified for Debian 
-#		by Ian Murdock <imurdock at gnu.ai.mit.edu>.
-#
-# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels at cistron.nl
-#
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/sbin/oval-agent
-NAME=oval-agent
-DESC=oval-agent
-
-test -x $DAEMON || exit 0
-
-# Include oval-agent defaults if available
-if [ -f /etc/default/oval-agent ] ; then
-	. /etc/default/oval-agent
-fi
-
-set -e
-
-case "$1" in
-  start)
-	echo -n "Starting $DESC: "
-	start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
-		--exec $DAEMON -- $DAEMON_OPTS
-	echo "$NAME."
-	;;
-  stop)
-	echo -n "Stopping $DESC: "
-	start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
-		--exec $DAEMON
-	echo "$NAME."
-	;;
-  #reload)
-	#
-	#	If the daemon can reload its config files on the fly
-	#	for example by sending it SIGHUP, do it here.
-	#
-	#	If the daemon responds to changes in its config file
-	#	directly anyway, make this a do-nothing entry.
-	#
-	# echo "Reloading $DESC configuration files."
-	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
-	#	/var/run/$NAME.pid --exec $DAEMON
-  #;;
-  force-reload)
-	#
-	#	If the "reload" option is implemented, move the "force-reload"
-	#	option to the "reload" entry above. If not, "force-reload" is
-	#	just the same as "restart" except that it does nothing if the
-	#   daemon isn't already running.
-	# check wether $DAEMON is running. If so, restart
-	start-stop-daemon --stop --test --quiet --pidfile \
-		/var/run/$NAME.pid --exec $DAEMON \
-	&& $0 restart \
-	|| exit 0
-	;;
-  restart)
-    echo -n "Restarting $DESC: "
-	start-stop-daemon --stop --quiet --pidfile \
-		/var/run/$NAME.pid --exec $DAEMON
-	sleep 1
-	start-stop-daemon --start --quiet --pidfile \
-		/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
-	echo "$NAME."
-	;;
-  *)
-	N=/etc/init.d/$NAME
-	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
-	exit 1
-	;;
-esac
-
-exit 0

Deleted: trunk/oval-agent/debian/manpage.sgml.ex
===================================================================
--- trunk/oval-agent/debian/manpage.sgml.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/manpage.sgml.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,156 +0,0 @@
-<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
-
-<!-- Process this file with docbook-to-man to generate an nroff manual
-     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
-     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
-     less'.  A typical entry in a Makefile or Makefile.am is:
-
-manpage.1: manpage.sgml
-	docbook-to-man $< > $@
-
-    
-	The docbook-to-man binary is found in the docbook-to-man package.
-	Please remember that if you create the nroff version in one of the
-	debian/rules file targets (such as build), you will need to include
-	docbook-to-man in your Build-Depends control field.
-
-  -->
-
-  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
-  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
-  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
-  <!-- Please adjust the date whenever revising the manpage. -->
-  <!ENTITY dhdate      "<date>Август 23, 2007</date>">
-  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
-       allowed: see man(7), man(1). -->
-  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
-  <!ENTITY dhemail     "<email>Pavel.Vinogradov at nixdev.net</email>">
-  <!ENTITY dhusername  "Pavel Vinogradov">
-  <!ENTITY dhucpackage "<refentrytitle>OVAL-AGENT</refentrytitle>">
-  <!ENTITY dhpackage   "oval-agent">
-
-  <!ENTITY debian      "<productname>Debian</productname>">
-  <!ENTITY gnu         "<acronym>GNU</acronym>">
-  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
-]>
-
-<refentry>
-  <refentryinfo>
-    <address>
-      &dhemail;
-    </address>
-    <author>
-      &dhfirstname;
-      &dhsurname;
-    </author>
-    <copyright>
-      <year>2003</year>
-      <holder>&dhusername;</holder>
-    </copyright>
-    &dhdate;
-  </refentryinfo>
-  <refmeta>
-    &dhucpackage;
-
-    &dhsection;
-  </refmeta>
-  <refnamediv>
-    <refname>&dhpackage;</refname>
-
-    <refpurpose>program to do something</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <cmdsynopsis>
-      <command>&dhpackage;</command>
-
-      <arg><option>-e <replaceable>this</replaceable></option></arg>
-
-      <arg><option>--example <replaceable>that</replaceable></option></arg>
-    </cmdsynopsis>
-  </refsynopsisdiv>
-  <refsect1>
-    <title>DESCRIPTION</title>
-
-    <para>This manual page documents briefly the
-      <command>&dhpackage;</command> and <command>bar</command>
-      commands.</para>
-
-    <para>This manual page was written for the &debian; distribution
-      because the original program does not have a manual page.
-      Instead, it has documentation in the &gnu;
-      <application>Info</application> format; see below.</para>
-
-    <para><command>&dhpackage;</command> is a program that...</para>
-
-  </refsect1>
-  <refsect1>
-    <title>OPTIONS</title>
-
-    <para>These programs follow the usual &gnu; command line syntax,
-      with long options starting with two dashes (`-').  A summary of
-      options is included below.  For a complete description, see the
-      <application>Info</application> files.</para>
-
-    <variablelist>
-      <varlistentry>
-        <term><option>-h</option>
-          <option>--help</option>
-        </term>
-        <listitem>
-          <para>Show summary of options.</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term><option>-v</option>
-          <option>--version</option>
-        </term>
-        <listitem>
-          <para>Show version of program.</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsect1>
-  <refsect1>
-    <title>SEE ALSO</title>
-
-    <para>bar (1), baz (1).</para>
-
-    <para>The programs are documented fully by <citetitle>The Rise and
-      Fall of a Fooish Bar</citetitle> available via the
-      <application>Info</application> system.</para>
-  </refsect1>
-  <refsect1>
-    <title>AUTHOR</title>
-
-    <para>This manual page was written by &dhusername; &dhemail; for
-      the &debian; system (but may be used by others).  Permission is
-      granted to copy, distribute and/or modify this document under
-      the terms of the &gnu; General Public License, Version 2 any 
-	  later version published by the Free Software Foundation.
-    </para>
-	<para>
-	  On Debian systems, the complete text of the GNU General Public
-	  License can be found in /usr/share/common-licenses/GPL.
-	</para>
-
-  </refsect1>
-</refentry>
-
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:2
-sgml-indent-data:t
-sgml-parent-document:nil
-sgml-default-dtd-file:nil
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
--->
-
-

Deleted: trunk/oval-agent/debian/manpage.xml.ex
===================================================================
--- trunk/oval-agent/debian/manpage.xml.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/manpage.xml.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,148 +0,0 @@
-<?xml version='1.0' encoding='ISO-8859-1'?>
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
-
-<!--
-
-Process this file with an XSLT processor: `xsltproc \
--''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
-manpages/docbook.xsl manpage.dbk'.  A manual page
-<package>.<section> will be generated.  You may view the
-manual page with: nroff -man <package>.<section> | less'.  A
-typical entry in a Makefile or Makefile.am is:
-
-DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
-manpages/docbook.xsl
-XP=xsltproc -''-nonet
-
-manpage.1: manpage.dbk
-        $(XP) $(DB2MAN) $<
-    
-The xsltproc binary is found in the xsltproc package.  The
-XSL files are in docbook-xsl.  Please remember that if you
-create the nroff version in one of the debian/rules file
-targets (such as build), you will need to include xsltproc
-and docbook-xsl in your Build-Depends control field.
-
--->
-
-  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
-  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
-  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
-  <!-- Please adjust the date whenever revising the manpage. -->
-  <!ENTITY dhdate      "<date>Август 23, 2007</date>">
-  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
-       allowed: see man(7), man(1). -->
-  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
-  <!ENTITY dhemail     "<email>Pavel.Vinogradov at nixdev.net</email>">
-  <!ENTITY dhusername  "Pavel Vinogradov">
-  <!ENTITY dhucpackage "<refentrytitle>OVAL-AGENT</refentrytitle>">
-  <!ENTITY dhpackage   "oval-agent">
-
-  <!ENTITY debian      "<productname>Debian</productname>">
-  <!ENTITY gnu         "<acronym>GNU</acronym>">
-  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
-]>
-
-<refentry>
-  <refentryinfo>
-    <address>
-      &dhemail;
-    </address>
-    <author>
-      &dhfirstname;
-      &dhsurname;
-    </author>
-    <copyright>
-      <year>2003</year>
-      <holder>&dhusername;</holder>
-    </copyright>
-    &dhdate;
-  </refentryinfo>
-  <refmeta>
-    &dhucpackage;
-
-    &dhsection;
-  </refmeta>
-  <refnamediv>
-    <refname>&dhpackage;</refname>
-
-    <refpurpose>program to do something</refpurpose>
-  </refnamediv>
-  <refsynopsisdiv>
-    <cmdsynopsis>
-      <command>&dhpackage;</command>
-
-      <arg><option>-e <replaceable>this</replaceable></option></arg>
-
-      <arg><option>--example <replaceable>that</replaceable></option></arg>
-    </cmdsynopsis>
-  </refsynopsisdiv>
-  <refsect1>
-    <title>DESCRIPTION</title>
-
-    <para>This manual page documents briefly the
-      <command>&dhpackage;</command> and <command>bar</command>
-      commands.</para>
-
-    <para>This manual page was written for the &debian; distribution
-      because the original program does not have a manual page.
-      Instead, it has documentation in the &gnu;
-      <application>Info</application> format; see below.</para>
-
-    <para><command>&dhpackage;</command> is a program that...</para>
-
-  </refsect1>
-  <refsect1>
-    <title>OPTIONS</title>
-
-    <para>These programs follow the usual &gnu; command line syntax,
-      with long options starting with two dashes (`-').  A summary of
-      options is included below.  For a complete description, see the
-      <application>Info</application> files.</para>
-
-    <variablelist>
-      <varlistentry>
-        <term><option>-h</option>
-          <option>--help</option>
-        </term>
-        <listitem>
-          <para>Show summary of options.</para>
-        </listitem>
-      </varlistentry>
-      <varlistentry>
-        <term><option>-v</option>
-          <option>--version</option>
-        </term>
-        <listitem>
-          <para>Show version of program.</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
-  </refsect1>
-  <refsect1>
-    <title>SEE ALSO</title>
-
-    <para>bar (1), baz (1).</para>
-
-    <para>The programs are documented fully by <citetitle>The Rise and
-      Fall of a Fooish Bar</citetitle> available via the
-      <application>Info</application> system.</para>
-  </refsect1>
-  <refsect1>
-    <title>AUTHOR</title>
-
-    <para>This manual page was written by &dhusername; &dhemail; for
-      the &debian; system (but may be used by others).  Permission is
-      granted to copy, distribute and/or modify this document under
-      the terms of the &gnu; General Public License, Version 2 any 
-	  later version published by the Free Software Foundation.
-    </para>
-	<para>
-	  On Debian systems, the complete text of the GNU General Public
-	  License can be found in /usr/share/common-licenses/GPL.
-	</para>
-
-  </refsect1>
-</refentry>
-

Deleted: trunk/oval-agent/debian/menu.ex
===================================================================
--- trunk/oval-agent/debian/menu.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/menu.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,2 +0,0 @@
-?package(oval-agent):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\
-  title="oval-agent" command="/usr/bin/oval-agent"

Modified: trunk/oval-agent/debian/oval-agent-default.ex
===================================================================
--- trunk/oval-agent/debian/oval-agent-default.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/oval-agent-default.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -8,3 +8,18 @@
 
 # Additional options that are passed to the Daemon.
 DAEMON_OPTS=""
+
+# Enable
+#
+# Whether to start the oval-agent in daemon mode from the init.d script.
+# The only allowed values are "true" and "false".
+#
+
+DEBTORRENT_ENABLE=true
+
+# Configuration File
+#
+# The configuration file to use.
+#
+
+DEBTORRENT_CONFIG_FILE=/etc/oval/oval-agent.conf

Added: trunk/oval-agent/debian/oval-agent.init
===================================================================
--- trunk/oval-agent/debian/oval-agent.init	                        (rev 0)
+++ trunk/oval-agent/debian/oval-agent.init	2007-08-23 13:52:23 UTC (rev 196)
@@ -0,0 +1,124 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides:          oval-agent
+# Required-Start:    $network
+# Required-Stop:     
+# Should-Start:      $named
+# Should-Stop:       
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: oval-agent for OVAL definitions quering
+# Description:       oval-agent is a program that communicate with 
+#		     oval-server, receive oval-definitions, quering it 
+#		     and sent results back to oval-server.
+### END INIT INFO
+
+# /etc/init.d/oval-agent: start and stop the oval-agent daemon
+
+DAEMON=/usr/bin/oval-agent
+NAME="oval-agent"
+DEFAULTSFILE=/etc/default/oval-agent
+PIDFILE=/var/run/oval-agent.pid
+
+OVALAGENT_ENABLE=false
+#OVALAGENT_USER=debtorrent
+OVALAGENT_CONFIG_FILE=/etc/oval/oval-agent.conf
+OVALAGENT_LOG_DIR=/var/log/debtorrent
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+. /etc/default/rcS
+
+if [ -s $DEFAULTSFILE ]; then
+    . $DEFAULTSFILE
+    case "x$OVALAGENT_ENABLE" in
+        xtrue|xfalse)   ;;
+        *)              log_failure_msg "Value of OVALAGENT_ENABLE in $DEFAULTSFILE must be either 'true' or 'false';"
+                        log_failure_msg "not starting $NAME daemon."
+                        exit 1
+                        ;;
+    esac
+#    case "x$DEBTORRENT_USER" in
+#        x)              log_warning_msg "Value of DEBTORRENT_USER in $DEFAULTSFILE must be a valid user;"
+#                        log_failure_msg "not starting $NAME daemon."
+#                        exit 1
+#                        ;;
+#    esac
+fi
+
+export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
+
+case "$1" in
+  start)
+    if "$OVALAGENT_ENABLE"; then
+        log_daemon_msg "Starting $NAME daemon" "$NAME"
+        if [ -s $PIDFILE ] && kill -0 $(cat $PIDFILE) >/dev/null 2>&1; then
+                log_progress_msg "apparently already running"
+                log_end_msg 0
+        exit 0
+        fi
+        if [ ! -s "$OVALAGENT_CONFIG_FILE" ]; then
+            log_failure_msg "missing or empty config file $OVALAGENT_CONFIG_FILE"
+            log_end_msg 1
+            exit 1
+        fi
+        start-stop-daemon --start --quiet --background \
+            --pidfile $PIDFILE --make-pidfile \
+#	    --chuid $DEBTORRENT_USER \
+            --exec $DAEMON \
+            -- -c "$OVALAGENT_CONFIG_FILE"
+        log_end_msg $?
+    else
+        if [ -s "$OVALAGENT_CONFIG_FILE" ]; then
+            [ "$VERBOSE" != no ] && log_warning_msg "$NAME daemon not enabled in $DEFAULTSFILE, not starting..."
+        fi
+    fi
+    ;;
+  stop)
+    log_daemon_msg "Stopping $NAME daemon" "$NAME"
+	start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
+		--retry INT/15/TERM/5/KILL/5
+    log_end_msg $?
+    rm -f $PIDFILE
+    ;;
+
+  reload)
+    log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
+    log_warning_msg "cannot re-read the config file (use restart)."
+    ;;
+
+  restart|force-reload)
+    set +e
+    if $OVALAGENT_ENABLE; then
+        log_daemon_msg "Restarting $NAME daemon" "$NAME"
+	    if [ -s $PIDFILE ] && kill -0 $(cat $PIDFILE) >/dev/null 2>&1; then
+		    start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE \
+		    	--retry INT/15/TERM/5/KILL/5 || true
+		    sleep 1
+	    else
+    	    rm -f $PIDFILE
+	    fi
+        if start-stop-daemon --start --quiet --background \
+	        --pidfile $PIDFILE --make-pidfile \
+		#--chuid $DEBTORRENT_USER \
+	        --exec $DAEMON \
+	        -- -c "$OVALAGENT_CONFIG_FILE" 
+        then
+            log_end_msg 0
+        else
+            log_end_msg 1
+            rm -f $PIDFILE
+        fi
+    else
+        [ "$VERBOSE" != no ] && log_warning_msg "$NAME daemon not enabled in $DEFAULTSFILE, not starting..."
+    fi
+    ;;
+
+  *)
+    echo "Usage: /etc/init.d/oval-agent {start|stop|reload|force-reload|restart}"
+    exit 1
+esac
+
+exit 0


Property changes on: trunk/oval-agent/debian/oval-agent.init
___________________________________________________________________
Name: svn:executable
   + *

Deleted: trunk/oval-agent/debian/watch.ex
===================================================================
--- trunk/oval-agent/debian/watch.ex	2007-08-23 12:32:05 UTC (rev 195)
+++ trunk/oval-agent/debian/watch.ex	2007-08-23 13:52:23 UTC (rev 196)
@@ -1,22 +0,0 @@
-# Example watch control file for uscan
-# Rename this file to "watch" and then you can run the "uscan" command
-# to check for upstream updates and more.
-# See uscan(1) for format
-
-# Compulsory line, this is a version 3 file
-version=3
-
-# Uncomment to examine a Webpage 
-# <Webpage URL> <string match>
-#http://www.example.com/downloads.php oval-agent-(.*)\.tar\.gz
-
-# Uncomment to examine a Webserver directory
-#http://www.example.com/pub/oval-agent-(.*)\.tar\.gz
-
-# Uncommment to examine a FTP server
-#ftp://ftp.example.com/pub/oval-agent-(.*)\.tar\.gz debian uupdate
-
-# Uncomment to find new files on sourceforge, for debscripts >= 2.9
-# http://sf.net/oval-agent/oval-agent-(.*)\.tar\.gz
-
-




More information about the Oval-commits mailing list