[Commits] r647 - trunk/daemon/debian
new-commit at lists.openvcp.org
new-commit at lists.openvcp.org
Fri Jan 2 20:59:05 UTC 2009
Author: ftx
Date: 2009-01-02 20:59:04 +0000 (Fri, 02 Jan 2009)
New Revision: 647
Added:
trunk/daemon/debian/config
trunk/daemon/debian/postinst
trunk/daemon/debian/postrm
trunk/daemon/debian/templates
Modified:
trunk/daemon/debian/changelog
trunk/daemon/debian/control
trunk/daemon/debian/rules
Log:
support for debconf based configuration
Modified: trunk/daemon/debian/changelog
===================================================================
--- trunk/daemon/debian/changelog 2009-01-01 18:57:20 UTC (rev 646)
+++ trunk/daemon/debian/changelog 2009-01-02 20:59:04 UTC (rev 647)
@@ -1,5 +1,7 @@
openvcpd (0.4rc1) testing; urgency=low
+
* For a complete list visit http://www.openvcp.org/milestone/0.4
+
-- Gerrit Wyen <gerrit at t4a.net> Thr, 20 March 2008 15:55:21 +0200
openvcpd (0.1beta) unstable; urgency=low
Added: trunk/daemon/debian/config
===================================================================
--- trunk/daemon/debian/config (rev 0)
+++ trunk/daemon/debian/config 2009-01-02 20:59:04 UTC (rev 647)
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+
+db_title "OpenVCPd"
+
+
+db_input critical openvcpd/ipaddr || true
+db_go
+
+
+db_input critical openvcpd/password || true
+db_go
+
+db_input critical openvcpd/ifaces || true
+db_go
Property changes on: trunk/daemon/debian/config
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/daemon/debian/control
===================================================================
--- trunk/daemon/debian/control 2009-01-01 18:57:20 UTC (rev 646)
+++ trunk/daemon/debian/control 2009-01-02 20:59:04 UTC (rev 647)
@@ -1,12 +1,18 @@
Source: openvcpd
Section: unknown
Priority: optional
-Maintainer: Gerrit Wyen <gerrit at t4a.net>
-Build-Depends: debhelper (>= 4.0.0), util-vserver
+Maintainer: Gerrit Wyen <gerrit at ionscale.com>
+Build-Depends: debhelper (>= 4.0.0), util-vserver, autoconf, libsqlite3-dev, libxml2-dev, libgnutls-dev, libpcap-dev, iptables-dev, pkg-config, subversion
Standards-Version: 3.6.2
Package: openvcpd
Architecture: any
-Depends: libc6, libxml2-dev, libpcap-dev, iptables, libsqlite3-dev, libxml2-dev, libgnutls-dev, util-vserver (>= 0.30.210)
-Description: <OpenVCP Daemon>
- <OpenVCP Daemon>
+Depends: libc6, iptables, util-vserver (>= 0.30.210), libgnutls13, libpcap0.7, libxml2, libsqlite3-0
+Description: OpenVCP Daemon allows you to manage your vservers remotely
+ The OpenVCP Daemon is used by the OpenVCP Webinterface to perform the following tasks:
+ - start/stop/restart vservers
+ - create/delete vservers
+ - account the traffic for each vserver
+ - limit the bandwidth of individual vservers
+ .
+ Homepage: http://www.openvcp.org/
Added: trunk/daemon/debian/postinst
===================================================================
--- trunk/daemon/debian/postinst (rev 0)
+++ trunk/daemon/debian/postinst 2009-01-02 20:59:04 UTC (rev 647)
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+PATH=/bin:/sbin:/usr/bin:/usr/sbin
+
+if [ -x /etc/init.d/openvcpd ]
+ then
+
+ update-rc.d -f openvcpd defaults >>/dev/null
+fi
+
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+db_get openvcpd/ipaddr
+IP=$RET
+
+db_get openvcpd/password
+PASS=$RET
+
+db_get openvcpd/ifaces
+IFACES=$RET
+
+
+mkdir -p /var/lib/vservers/backups
+mkdir -p /var/lib/vservers/images
+
+
+if ([ "$IP" != "" ] && [ "$PASS" != "" ] && [ "$IFACES" != "" ]); then
+ TEMPFILE=$(mktemp)
+ cat /etc/openvcpd.conf | sed "s#^IP=.*#IP=$IP#" | sed "s#^Password=.*#Password=$PASS#" | sed "s#^Ifaces=.*#Ifaces=$IFACES#" > $TEMPFILE
+ mv $TEMPFILE /etc/openvcpd.conf
+fi
Added: trunk/daemon/debian/postrm
===================================================================
--- trunk/daemon/debian/postrm (rev 0)
+++ trunk/daemon/debian/postrm 2009-01-02 20:59:04 UTC (rev 647)
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+
+# Automatically added by dh_installdebconf
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+fi
+# End automatically added section
Property changes on: trunk/daemon/debian/postrm
___________________________________________________________________
Name: svn:executable
+ *
Modified: trunk/daemon/debian/rules
===================================================================
--- trunk/daemon/debian/rules 2009-01-01 18:57:20 UTC (rev 646)
+++ trunk/daemon/debian/rules 2009-01-02 20:59:04 UTC (rev 647)
@@ -85,7 +85,7 @@
dh_installexamples
# dh_install
# dh_installmenu
-# dh_installdebconf
+ dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
Added: trunk/daemon/debian/templates
===================================================================
--- trunk/daemon/debian/templates (rev 0)
+++ trunk/daemon/debian/templates 2009-01-02 20:59:04 UTC (rev 647)
@@ -0,0 +1,20 @@
+Template: openvcpd/password
+Type: password
+Description: Passwort of the daemon
+ You have to set a password that is used to authenticate the clients.
+
+Template: openvcpd/ipaddr
+Type: string
+Default: 192.168.1.1
+Description: IP address of the daemon
+ On which IP shall the daemon listen for incoming connections ?
+ .
+ Just enter the ip here.
+
+Template: openvcpd/ifaces
+Type: string
+Default: eth1
+Description: interfaces for traffic accounting
+ Traffic will only be logged on the following interfaces
+ .
+ Just enter the interface(s) here, seperated by whitespaces.
More information about the Commits
mailing list