[Oval-commits] r203 - in trunk/oval-server: . debian

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


Author: blaze-guest
Date: 2007-08-23 16:16:16 +0000 (Thu, 23 Aug 2007)
New Revision: 203

Added:
   trunk/oval-server/debian/
   trunk/oval-server/debian/changelog
   trunk/oval-server/debian/compat
   trunk/oval-server/debian/control
   trunk/oval-server/debian/copyright
   trunk/oval-server/debian/dirs
   trunk/oval-server/debian/docs
   trunk/oval-server/debian/manpage.1.ex
   trunk/oval-server/debian/oval-server.default
   trunk/oval-server/debian/oval-server.init
   trunk/oval-server/debian/postinst.ex
   trunk/oval-server/debian/postrm.ex
   trunk/oval-server/debian/preinst.ex
   trunk/oval-server/debian/prerm.ex
   trunk/oval-server/debian/rules
Log:
Add Debian stuff

Added: trunk/oval-server/debian/changelog
===================================================================
--- trunk/oval-server/debian/changelog	                        (rev 0)
+++ trunk/oval-server/debian/changelog	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,5 @@
+oval-server (0.2) unstable; urgency=low
+
+  * Initial Release. (Closes: #111112)
+
+ -- Pavel Vinogradov <Pavel.Vinogradov at nixdev.net>  Thu, 23 Aug 2007 17:37:09 +0500

Added: trunk/oval-server/debian/compat
===================================================================
--- trunk/oval-server/debian/compat	                        (rev 0)
+++ trunk/oval-server/debian/compat	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1 @@
+5

Added: trunk/oval-server/debian/control
===================================================================
--- trunk/oval-server/debian/control	                        (rev 0)
+++ trunk/oval-server/debian/control	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,15 @@
+Source: oval-server
+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-server
+Architecture: all
+Depends: ${python:Depends}
+Description: OVAL server
+  OVAL server is a deamon that managment number of oval-agent's on clients
+  computers. It generate OVAl definitions based on DSA,sent them to agents,
+  collect and store results.

Added: trunk/oval-server/debian/copyright
===================================================================
--- trunk/oval-server/debian/copyright	                        (rev 0)
+++ trunk/oval-server/debian/copyright	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,26 @@
+This is oval-server, written and maintained by Pavel Vinogradov <Pavel.Vinogradov at nixdev.net>
+on Thu, 23 Aug 2007 17:37:09 +0500.
+
+The original source can always be found at:
+	ftp://ftp.debian.org/dists/unstable/main/source/
+
+Copyright Holder:  Pavel Vinogradov
+
+License:
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2 of the License, or
+  (at your option) any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this package; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.

Added: trunk/oval-server/debian/dirs
===================================================================
--- trunk/oval-server/debian/dirs	                        (rev 0)
+++ trunk/oval-server/debian/dirs	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,5 @@
+usr/bin
+var/lib/oval-server
+etc/init.d
+etc/oval
+var/log/oval

Added: trunk/oval-server/debian/docs
===================================================================
--- trunk/oval-server/debian/docs	                        (rev 0)
+++ trunk/oval-server/debian/docs	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1 @@
+README

Added: trunk/oval-server/debian/manpage.1.ex
===================================================================
--- trunk/oval-server/debian/manpage.1.ex	                        (rev 0)
+++ trunk/oval-server/debian/manpage.1.ex	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,59 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH OVAL-AGENT SECTION "Август 23, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+oval-agent \- program to do something
+.SH SYNOPSIS
+.B oval-agent
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B oval-agent
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBoval-agent\fP is a program that...
+.SH OPTIONS
+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 Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+oval-agent was written by <upstream author>.
+.PP
+This manual page was written by Pavel Vinogradov <Pavel.Vinogradov at nixdev.net>,
+for the Debian project (but may be used by others).

Added: trunk/oval-server/debian/oval-server.default
===================================================================
--- trunk/oval-server/debian/oval-server.default	                        (rev 0)
+++ trunk/oval-server/debian/oval-server.default	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,25 @@
+# Defaults for oval-server initscript
+# sourced by /etc/init.d/oval-server
+# installed at /etc/default/oval-server by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
+
+# Enable
+#
+# Whether to start the oval-server in daemon mode from the init.d script.
+# The only allowed values are "true" and "false".
+#
+
+OVALSERVER_ENABLE=false
+
+# Configuration File
+#
+# The configuration file to use.
+#
+
+OVALSERVER_CONFIG_FILE=/etc/oval/oval-server.conf

Added: trunk/oval-server/debian/oval-server.init
===================================================================
--- trunk/oval-server/debian/oval-server.init	                        (rev 0)
+++ trunk/oval-server/debian/oval-server.init	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,116 @@
+#! /bin/sh
+
+### BEGIN INIT INFO
+# Provides:          oval-server
+# Required-Start:    $network
+# Required-Stop:     
+# Should-Start:      $named
+# Should-Stop:       
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: oval-server for OVAL definitions quering
+# Description:       oval-server is a program that communicate with 
+#		     oval-agent's, generate OVAL definitions from 
+#		     DSA, send them to clients, receive and store results.
+### END INIT INFO
+
+# /etc/init.d/oval-server: start and stop the oval-server daemon
+
+DAEMON=/usr/bin/oval-server
+NAME="oval-server"
+DEFAULTSFILE=/etc/default/oval-server
+PIDFILE=/var/run/oval-server.pid
+
+OVALSERVER_ENABLE=false
+#OVALAGENT_USER=debtorrent
+OVALSERVER_CONFIG_FILE=/etc/oval/oval-server.conf
+OVALSERVER_LOG_DIR=/var/log/oval
+
+test -x $DAEMON || exit 0
+
+. /lib/lsb/init-functions
+. /etc/default/rcS
+
+if [ -s $DEFAULTSFILE ]; then
+    . $DEFAULTSFILE
+    case "x$OVALSERVER_ENABLE" in
+        xtrue|xfalse)   ;;
+        *)              log_failure_msg "Value of OVALSERVER_ENABLE in $DEFAULTSFILE must be either 'true' or 'false';"
+                        log_failure_msg "not starting $NAME daemon."
+                        exit 1
+                        ;;
+    esac
+fi
+
+export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
+
+case "$1" in
+  start)
+    if "$OVALSERVER_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 "$OVALSERVER_CONFIG_FILE" ]; then
+            log_failure_msg "missing or empty config file $OVALSERVER_CONFIG_FILE"
+            log_end_msg 1
+            exit 1
+        fi
+        start-stop-daemon --start --quiet --background \
+            --pidfile $PIDFILE --make-pidfile \
+            --exec $DAEMON \
+            -- -c "$OVALSERVER_CONFIG_FILE"
+        log_end_msg $?
+    else
+        if [ -s "$OVALSERVER_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 $OVALSERVER_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 \
+	        --exec $DAEMON \
+	        -- -c "$OVALSERVER_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-server {start|stop|reload|force-reload|restart}"
+    exit 1
+esac
+
+exit 0


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

Added: trunk/oval-server/debian/postinst.ex
===================================================================
--- trunk/oval-server/debian/postinst.ex	                        (rev 0)
+++ trunk/oval-server/debian/postinst.ex	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for oval-agent
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: trunk/oval-server/debian/postrm.ex
===================================================================
--- trunk/oval-server/debian/postrm.ex	                        (rev 0)
+++ trunk/oval-server/debian/postrm.ex	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for oval-agent
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: trunk/oval-server/debian/preinst.ex
===================================================================
--- trunk/oval-server/debian/preinst.ex	                        (rev 0)
+++ trunk/oval-server/debian/preinst.ex	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for oval-agent
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: trunk/oval-server/debian/prerm.ex
===================================================================
--- trunk/oval-server/debian/prerm.ex	                        (rev 0)
+++ trunk/oval-server/debian/prerm.ex	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for oval-agent
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: trunk/oval-server/debian/rules
===================================================================
--- trunk/oval-server/debian/rules	                        (rev 0)
+++ trunk/oval-server/debian/rules	2007-08-23 16:16:16 UTC (rev 203)
@@ -0,0 +1,82 @@
+#!/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
+
+PYTHON_VERSION=$(shell /usr/bin/python -V 2>&1 | /usr/bin/perl -le 'print "$$1.$$2" if <> =~m/^Python\s+(\d+)\.(\d+)(\.\d+)*/')
+
+build: build-stamp
+
+build-stamp:  
+	dh_testdir
+	touch build_stamp
+
+	# Add here commands to compile the package.
+	#docbook-to-man debian/oval-agent.sgml > oval-agent.1
+
+	#touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -rf build/ ovalHttpClient/*.pyc *.pyc
+	rm -f build_stamp
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	./setup.py install --prefix=$(CURDIR)/debian/oval-agent/usr --install-lib=$(CURDIR)/debian/oval-agent/usr/share/python-support/oval-agent
+
+	# Remove the generated .pyc files
+	( cd debian/oval-agent/usr/share/python-support/oval-agent/ovalHttpClient && \
+	  rm -f *.pyc )
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installman
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installcron
+#	dh_installinfo
+	
+	for i in oval-agent; \
+		do mv debian/oval-agent/usr/bin/$$i.py debian/oval-agent/usr/bin/$$i; done
+	dh_installchangelogs --name=oval-agent
+	dh_installinit
+	dh_install
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: trunk/oval-server/debian/rules
___________________________________________________________________
Name: svn:executable
   + *




More information about the Oval-commits mailing list