From: cajus Date: Wed, 27 Jun 2007 08:31:42 +0000 (+0000) Subject: Added debconf information X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a587a3d7106e6636279f232eb5d2b3f25bb64a41;p=gosa.git Added debconf information git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6714 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/debian/control b/debian/control index f50598c18..5c23ed22b 100644 --- a/debian/control +++ b/debian/control @@ -19,7 +19,7 @@ Description: Web Based LDAP Administration Program Package: gosa-desktop Architecture: all -Depends: iceweasel | mozilla | firefox +Depends: iceweasel | mozilla | firefox, debconf Description: Desktop integration for GOsa This package includes a menu definition for your desktop environment. diff --git a/debian/gosa-desktop.config b/debian/gosa-desktop.config new file mode 100755 index 000000000..85204c897 --- /dev/null +++ b/debian/gosa-desktop.config @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# What is the URL? +db_input medium gosa-desktop/url || true +db_go + diff --git a/debian/gosa-desktop.postinst b/debian/gosa-desktop.postinst new file mode 100755 index 000000000..157b7924a --- /dev/null +++ b/debian/gosa-desktop.postinst @@ -0,0 +1,9 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_get gosa-desktop/url +if [ -n "$RET" ]; then + echo "URL='$RET'" > /etc/gosa/desktoprc +fi diff --git a/debian/gosa-desktop.postrm b/debian/gosa-desktop.postrm new file mode 100755 index 000000000..d47a3bfd5 --- /dev/null +++ b/debian/gosa-desktop.postrm @@ -0,0 +1,5 @@ +#!/bin/sh -e + +if [ "$1" = "purge" ]; then + rm -f /etc/gosa/desktoprc +fi diff --git a/debian/gosa-desktop.template b/debian/gosa-desktop.template new file mode 100644 index 000000000..3c7232161 --- /dev/null +++ b/debian/gosa-desktop.template @@ -0,0 +1,9 @@ +Template: gosa-desktop/url +Type: string +Default: https://www.gosa-project.org/demo/2.5 +Description: What is the URL to your GOsa installation? + The gosa start script can automatically point your + browser to a system wide default location of your + GOsa instance. + . + Enter the URL in order to set this default. diff --git a/debian/rules b/debian/rules index a4880200a..e09ffe05f 100755 --- a/debian/rules +++ b/debian/rules @@ -114,6 +114,7 @@ binary-indep: install dh_installdocs dh_installcron dh_installexamples + dh_installdebconf dh_installmenu dh_installman --package=gosa debian/mkntpasswd.1 dh_installman --package=gosa-desktop debian/gosa.1