summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2011-12-18 21:12:14 +0200
committerAntti-Juhani Kaijanaho <ajk@debian.org>2011-12-18 21:12:14 +0200
commit87865acd9c16451eb026db7a9aeec06ca0eba962 (patch)
tree5917e23d255ce76ac85ceca11fbb548def44e844 /debian
parentcb849a8ae425ba501ea8c953a6afa918b2e4482f (diff)
downloaddctrl-tools-87865acd9c16451eb026db7a9aeec06ca0eba962.tar.gz
grep-dctrl: Hardcode default input file names.
Until now, grep-dctrl has used a configuration file to determine which input file it should use by default. Originally, this was motivated by a desire not to step too much into the toes of dpkg maintainers - it allowed the fiction that this package doesn't in fact depend on dpkg's internal interfaces. Over the last decade, however, this consideration has became essentially moot, and the status and available files are effectively public interfaces. Now, theoretically, this configurability could be in use by someone. However, the same functionality is available by using shell functions and shell scripts. I twice called for actual use cases for this feature, explicitly threatening to remove this feature if nobody stepped up. Nobody did. Signed-off-by: Antti-Juhani Kaijanaho <ajk@debian.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog5
-rw-r--r--debian/copyright5
-rw-r--r--debian/dctrl-tools.postinst8
-rw-r--r--debian/dctrl-tools.postrm8
-rw-r--r--debian/dctrl-tools.preinst8
5 files changed, 30 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 99d69d2..15c9e70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,11 @@
dctrl-tools (2.21) unstable; urgency=low
* grep-dctrl: Remove the old dead annoying banner code.
+ * grep-dctrl: Hardcode default input file names.
+ - The /etc/grep-dctrl.rc conffile is removed upon package upgrade.
+ - grep-dctrl.1.cp: Updated to match.
- -- Antti-Juhani Kaijanaho <ajk@debian.org> Sun, 18 Dec 2011 20:16:49 +0200
+ -- Antti-Juhani Kaijanaho <ajk@debian.org> Sun, 18 Dec 2011 21:04:25 +0200
dctrl-tools (2.20.1) unstable; urgency=low
diff --git a/debian/copyright b/debian/copyright
index b3b631c..014b05c 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -5,7 +5,7 @@ Wichert Akkerman, Ian Jackson and Lars Wirzenius.
Copyright:
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
- 2009, 2010
+ 2009, 2010, 2011
Antti-Juhani Kaijanaho
This program is free software; you can redistribute it and/or modify
@@ -26,8 +26,7 @@ Copyright:
In Debian systems, the GNU GPL version 2 is available at
/usr/share/common-licenses/GPL .
-The files getaline.c and fnutil.c are covered by the following
-copyright:
+The file fnutil.c are covered by the following copyright:
Copyright (c) 1994 Lars Wirzenius. All rights reserved.
Copyright (C) 2004 Antti-Juhani Kaijanaho. All rights reserved.
diff --git a/debian/dctrl-tools.postinst b/debian/dctrl-tools.postinst
new file mode 100644
index 0000000..cc2ef25
--- /dev/null
+++ b/debian/dctrl-tools.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/grep-dctrl.rc 2.20.1 dctrl-tools -- "$@"
+
+#DEBHELPER# \ No newline at end of file
diff --git a/debian/dctrl-tools.postrm b/debian/dctrl-tools.postrm
new file mode 100644
index 0000000..ce09c5e
--- /dev/null
+++ b/debian/dctrl-tools.postrm
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/grep-dctrl.rc 2.20.1 dctrl-tools -- "$@"
+
+#DEBHELPER#
diff --git a/debian/dctrl-tools.preinst b/debian/dctrl-tools.preinst
new file mode 100644
index 0000000..ce09c5e
--- /dev/null
+++ b/debian/dctrl-tools.preinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/grep-dctrl.rc 2.20.1 dctrl-tools -- "$@"
+
+#DEBHELPER#