From 6d07d77a8ec0e7cab588dc7a7b1458c1865ef04b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Mar 2025 15:01:29 +0100 Subject: [PATCH] Installing upstream documentation into subdirectory within doc directory. Signed-off-by: Daniel Baumann --- debian/libapache2-mod-qos.docs | 4 ---- debian/rules | 9 +++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 debian/libapache2-mod-qos.docs diff --git a/debian/libapache2-mod-qos.docs b/debian/libapache2-mod-qos.docs deleted file mode 100644 index 7e72e9f..0000000 --- a/debian/libapache2-mod-qos.docs +++ /dev/null @@ -1,4 +0,0 @@ -doc/*.gif -doc/favicon.ico -doc/index.html -doc/q*.html diff --git a/debian/rules b/debian/rules index 03b091a..5a54632 100755 --- a/debian/rules +++ b/debian/rules @@ -15,5 +15,14 @@ execute_after_dh_auto_build: -D_LARGEFILE64_SOURCE $(CPPFLAGS)" \ -lcrypto -DHAVE_OPENSSL -c apache2/mod_qos.c +execute_after_dh_auto_install: + # install documentation + mkdir -p debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos + cp -a doc debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos/html + + # remove unneeded files + rm -f debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos/html/CHANGES.txt + rm -f debian/libapache2-mod-qos/usr/share/doc/libapache2-mod-qos/html/LICENSE.txt + override_dh_installchangelogs: dh_installchangelogs doc/CHANGES.txt