summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:41:27 +0000
commitb423767b0b0ff36b53da6a198bb99c507318eaab (patch)
tree1a028992d14eb3c951c06da490cf7cf55d2ccd6f /debian/rules
parentAdding upstream version 1.0.2. (diff)
downloadicingaweb2-module-audit-4c52c260f675cd809e09fa86fb288ac46f60c2ff.tar.xz
icingaweb2-module-audit-4c52c260f675cd809e09fa86fb288ac46f60c2ff.zip
Adding debian version 1.0.2-1.debian/1.0.2-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b63d7f9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+MODULE := audit
+DEBDIR := debian/icingaweb2-module-$(MODULE)
+
+%:
+ dh ${@}
+
+override_dh_auto_install:
+ mkdir -p $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE)
+ find . -maxdepth 1 -mindepth 1 -and -not -name debian -and -not -name ".git*" -and -not -name ".pc" -exec cp -a {} $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) \;
+
+ # remove useless files
+ rm -f $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE)/README.md
+ find $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) -name LICENSE -exec rm -f {} \;
+
+ # enable module
+ mkdir -p $(DEBDIR)/etc/icingaweb2/enabledModules
+ ln -s /usr/share/icingaweb2/modules/$(MODULE) $(DEBDIR)/etc/icingaweb2/enabledModules/$(MODULE)