summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-03-25 12:17:58 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-03-25 12:17:58 +0100
commitd3893b115da04486db4b23f75176799733152275 (patch)
treee7fd92c591435dea08a4da3a552a958f8ad09ad9
parent4a73e84828c32fd8a504b1ae7b7933db8bdeb3f7 (diff)
downloaditzks-systems-d3893b115da04486db4b23f75176799733152275.tar.gz
itzks-systems-d3893b115da04486db4b23f75176799733152275.tar.bz2
itzks-systems-d3893b115da04486db4b23f75176799733152275.zip
debconf-templates: Add template that queries the school's name to itzks-systems-commons.
-rw-r--r--debian/changelog4
-rwxr-xr-xdebian/config8
-rw-r--r--debian/control3
-rwxr-xr-xdebian/itzks-systems-common.postinst45
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/de.po30
-rw-r--r--debian/po/templates.pot30
-rw-r--r--debian/templates5
8 files changed, 124 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 02edfe4..401fa43 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,9 @@
-itzks-systems (2013.01.23.1) UNRELEASED; urgency=low
+itzks-systems (2013.03.25.1) UNRELEASED; urgency=low
* /debian/control:
+ Add dependencies: eog, ocsinventory-agent.
+ * debconf-templates:
+ + Add template that queries the school's name to itzks-systems-commons.
-- Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Wed, 23 Jan 2013 10:54:06 +0100
diff --git a/debian/config b/debian/config
new file mode 100755
index 0000000..86b608e
--- /dev/null
+++ b/debian/config
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+db_input critical itzks-systems-common/customer-name || true
+db_go
+
diff --git a/debian/control b/debian/control
index df49281..d68c989 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,8 @@ Maintainer: ITZkS Packaging <admin@lists.it-zukunft-schule.de>
Uploaders:
Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Build-Depends:
- debhelper (>= 7.0.50~)
+ debhelper (>= 7.0.50~),
+ po-debconf,
Homepage: http://wiki.it-zukunft-schule.de
Vcs-Git: git://code.it-zukunft-schule.de/itzks-systems-virtman.git
Vcs-Browser: http://code.it-zukunft-schule.de/gitweb?p=itzks-systems-virtman.git;a=summary
diff --git a/debian/itzks-systems-common.postinst b/debian/itzks-systems-common.postinst
new file mode 100755
index 0000000..2108e21
--- /dev/null
+++ b/debian/itzks-systems-common.postinst
@@ -0,0 +1,45 @@
+#!/bin/sh
+# postinst script for itzks-systems-common
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# 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)
+ mkdir -p /etc/debian-edu/
+ db_get itzks-systems-common/customer-name
+ echo $RET 1> /etc/debian-edu/itzks.school
+ ;;
+
+ 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
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 0000000..5391d2e
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: itzks-systems@packages.debian.org\n"
+"POT-Creation-Date: 2013-03-25 12:11+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid "School's Short Name:"
+msgstr "Kurzname der Schule:"
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid "Select the school this system is located at."
+msgstr "Der installierte Rechner ist der folgenden Schule zugeordnet:"
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 0000000..5fd075f
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,30 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: itzks-systems@packages.debian.org\n"
+"POT-Creation-Date: 2013-03-25 12:11+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid "School's Short Name:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../templates:1001
+msgid "Select the school this system is located at."
+msgstr ""
diff --git a/debian/templates b/debian/templates
new file mode 100644
index 0000000..f917ddb
--- /dev/null
+++ b/debian/templates
@@ -0,0 +1,5 @@
+Template: itzks-systems-common/customer-name
+Type: select
+Choices: EBG, HGG, HHS, WDORF
+_Description: School's Short Name:
+ Select the school this system is located at.