[pmg-devel] [PATCH pmg-docs 2/3] fix lintian warning in pmg-docs-apache

Stoiko Ivanov s.ivanov at proxmox.com
Wed Aug 21 14:18:20 CEST 2019


the apache/conf-available snippet for pmg-docs-apache should be named like the
package according to lintian (non-standard-apache2-configuration-name).

move the configfile via dpkg-maintscript-helper(1) (see the manpage for
the explaination of the prior version of 6.0-3~) and dh_installdeb(1).

Tested by upgrading pmg-docs-apache to a version with this commit, while having
modifications in '/etc/apache2/conf-available/pmg-docs.conf'

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 debian/pmg-docs-apache.install                                  | 2 +-
 debian/pmg-docs-apache.maintscript                              | 1 +
 .../pmg-docs-apache/{pmg-docs.conf => pmg-docs-apache.conf}     | 0
 3 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 debian/pmg-docs-apache.maintscript
 rename debian/tree/pmg-docs-apache/{pmg-docs.conf => pmg-docs-apache.conf} (100%)

diff --git a/debian/pmg-docs-apache.install b/debian/pmg-docs-apache.install
index 5c9d82a..f87be42 100644
--- a/debian/pmg-docs-apache.install
+++ b/debian/pmg-docs-apache.install
@@ -1 +1 @@
-debian/tree/pmg-docs-apache/pmg-docs.conf /etc/apache2/conf-available/
+debian/tree/pmg-docs-apache/pmg-docs-apache.conf /etc/apache2/conf-available/
diff --git a/debian/pmg-docs-apache.maintscript b/debian/pmg-docs-apache.maintscript
new file mode 100644
index 0000000..96631c1
--- /dev/null
+++ b/debian/pmg-docs-apache.maintscript
@@ -0,0 +1 @@
+mv_conffile /etc/apache2/conf-available/pmg-docs.conf /etc/apache2/conf-available/pmg-docs-apache.conf 6.0-3~
diff --git a/debian/tree/pmg-docs-apache/pmg-docs.conf b/debian/tree/pmg-docs-apache/pmg-docs-apache.conf
similarity index 100%
rename from debian/tree/pmg-docs-apache/pmg-docs.conf
rename to debian/tree/pmg-docs-apache/pmg-docs-apache.conf
-- 
2.20.1




More information about the pmg-devel mailing list