summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/postinst7
-rwxr-xr-xdebian/rules1
-rw-r--r--debian/templates16
4 files changed, 25 insertions, 0 deletions
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/postinst b/debian/postinst
new file mode 100644
index 0000000..e0c6707
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+# source confmodule to ensure templates are loaded
+. /usr/share/debconf/confmodule
+
+#DEBHELPER
diff --git a/debian/rules b/debian/rules
index cfd37c1..b56b152 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,6 +20,7 @@ binary-indep: build
dh_installchangelogs
dh_compress
dh_fixperms
+ dh_installdebconf
dh_installdeb
dh_gencontrol
dh_md5sums
diff --git a/debian/templates b/debian/templates
new file mode 100644
index 0000000..3919b6a
--- /dev/null
+++ b/debian/templates
@@ -0,0 +1,16 @@
+Template: etckeeper/unclean
+Type: boolean
+Default: true
+_Description: Commit changed files in /etc to git?
+ etckeeper has detected that /etc contains uncommitted files
+ or other changes. It's best to have everything in /etc committed
+ to git before running apt. etckeeper can add any new files listed below,
+ and commit all the changed files for you.
+ .
+ ${STATUS}
+
+Template: etckeeper/commit_failed
+Type: error
+_Description: git commit failed
+ etckeeper failed to commit changes in /etc using git.
+ You may want to resolve the uncommitted changes by hand before continuing.