lintian override for static binary
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Thu, 29 Sep 2022 06:21:38 +0000 (16:21 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Thu, 29 Sep 2022 06:21:38 +0000 (16:21 +1000)
Makefile
debian/lintian-overrides [new file with mode: 0644]

index 5dbeb17e79a33b5b8ce6f0f9963744130b0de1bf..5bb99a054853f53f4eca96f16fdd053032bc76ac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ SBINDIR = $(DESTDIR)/usr/sbin
 ETCDIR = $(DESTDIR)/etc/rrqnet
 MAN1DIR = $(DESTDIR)/usr/share/man/man1
 MAN8DIR = $(DESTDIR)/usr/share/man/man8
+LINTIAN = $(DESTDIR)/usr/share/lintian/overrides
 
 SBINCFILES = rrqnet
 SBINFILES = rrqnet-cron $(SBINCFILES)
@@ -45,10 +46,15 @@ INSTALLTARGETS = $(addprefix $(SBINDIR)/,$(SBINFILES))
 INSTALLTARGETS += $(addprefix $(ETCDIR)/,$(ETCFILES))
 INSTALLTARGETS += $(addprefix $(MAN1DIR)/,$(MAN1FILES))
 INSTALLTARGETS += $(addprefix $(MAN8DIR)/,$(MAN8FILES))
+INSTALLTARGETS += $(LINTIAN)/rrqnet
 
 #INSTALL = install -b -S orig
 INSTALL = install
 
+$(LINTIAN)/rrqnet: debian/lintian-overrides
+       mkdir -p ${@:/rrqnet=}
+       cp $^ $@
+
 $(addprefix $(ETCDIR)/,conf.d keys):
        mkdir -p $@
 
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644 (file)
index 0000000..c74c286
--- /dev/null
@@ -0,0 +1,2 @@
+# The rrqnet binary is compiled static
+rrqnet binary: statically-linked-binary [usr/sbin/rrqnet]