]> git.proxmox.com Git - pmg-docs.git/commitdiff
fix lintian warning in pmg-docs-apache
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 21 Aug 2019 12:18:20 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Aug 2019 14:50:29 +0000 (16:50 +0200)
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@proxmox.com>
debian/pmg-docs-apache.install
debian/pmg-docs-apache.maintscript [new file with mode: 0644]
debian/tree/pmg-docs-apache/pmg-docs-apache.conf [new file with mode: 0644]
debian/tree/pmg-docs-apache/pmg-docs.conf [deleted file]

index 5c9d82a06be93ac344ce547bf76b36eb5a18b94b..f87be425653eb0d4954975798c05a79f13e2db48 100644 (file)
@@ -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 (file)
index 0000000..96631c1
--- /dev/null
@@ -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-apache.conf b/debian/tree/pmg-docs-apache/pmg-docs-apache.conf
new file mode 100644 (file)
index 0000000..f2858b5
--- /dev/null
@@ -0,0 +1,2 @@
+Alias "/pmg-docs" "/usr/share/pmg-docs/"
+
diff --git a/debian/tree/pmg-docs-apache/pmg-docs.conf b/debian/tree/pmg-docs-apache/pmg-docs.conf
deleted file mode 100644 (file)
index f2858b5..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Alias "/pmg-docs" "/usr/share/pmg-docs/"
-