diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:46:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:46:04 +0000 |
commit | aa94d8a4a2c681259f1f638062a4eb1840b622ab (patch) | |
tree | 1a58f79d7c9cfab65dcd6d57f8a7c4d3f5d645cf /debian/rules | |
parent | Adding upstream version 1.1.0. (diff) | |
download | icingaweb2-module-pnp-aa94d8a4a2c681259f1f638062a4eb1840b622ab.tar.xz icingaweb2-module-pnp-aa94d8a4a2c681259f1f638062a4eb1840b622ab.zip |
Adding debian version 1.1.0-3.debian/1.1.0-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c638a2e --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +MODULE := pnp +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*" -exec cp -a {} $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE) \; + + # remove useless files + rm -f $(DEBDIR)/usr/share/icingaweb2/modules/$(MODULE)/AUTHORS + 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) |