From a587a3d7106e6636279f232eb5d2b3f25bb64a41 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 27 Jun 2007 08:31:42 +0000 Subject: [PATCH] Added debconf information git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6714 594d385d-05f5-0310-b6e9-bd551577e9d8 --- debian/control | 2 +- debian/gosa-desktop.config | 9 +++++++++ debian/gosa-desktop.postinst | 9 +++++++++ debian/gosa-desktop.postrm | 5 +++++ debian/gosa-desktop.template | 9 +++++++++ debian/rules | 1 + 6 files changed, 34 insertions(+), 1 deletion(-) create mode 100755 debian/gosa-desktop.config create mode 100755 debian/gosa-desktop.postinst create mode 100755 debian/gosa-desktop.postrm create mode 100644 debian/gosa-desktop.template 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 -- 2.30.2