From 7eb903667b59ac00d28e2ebad26e4b8c56bb0b84 Mon Sep 17 00:00:00 2001
From: Alexey Neyman <stilor@att.net>
Date: Sat, 7 Apr 2018 12:00:24 -0700
Subject: [PATCH] Lintian warnings cleanup

Signed-off-by: Alexey Neyman <stilor@att.net>
---
 Makefile.am  |  5 +++++
 configure.ac | 13 +++++++------
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cfe5210b..87e019f5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,8 +60,13 @@ bash-completion/ct-ng: bash-completion/ct-ng.in Makefile
 	$(AM_V_GEN)$(MKDIR_P) bash-completion && $(do_subst) < $< >$@-t && mv -f $@-t $@
 
 # automake doesn't offer an option to compress manpages, do it after installation
+# Also, lintian is picky about execute-bit on the scripts
 install-data-hook:
+	rm -f $(DESTDIR)$(man1dir)/$(ctng_progname).1.gz
 	gzip -9 $(DESTDIR)$(man1dir)/$(ctng_progname).1
+	chmod +x $(DESTDIR)$(pkgdatadir)/scripts/config.guess
+	chmod +x $(DESTDIR)$(pkgdatadir)/scripts/config.sub
+	chmod -x $(DESTDIR)$(compdir)/$(ctng_progname)
 
 uninstall-hook:
 	rm -f $(DESTDIR)$(man1dir)/$(ctng_progname).1.gz
diff --git a/configure.ac b/configure.ac
index c19d6ed4..5cb82a8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,16 +26,17 @@ AC_CONFIG_SRCDIR([ct-ng.in])
 
 #--------------------------------------------------------------------
 # Allow dummy --{en,dis}able-{static,shared}
-AC_ARG_ENABLE(
-    [local],
-    [AS_HELP_STRING(
-        [--enable-local],
+AC_ARG_ENABLE([local],
+    [AS_HELP_STRING([--enable-local],
         [run ct-ng from the current directory; 'make install' unsupported])])
 AC_SUBST([enable_local], [${enable_local:-no}])
 
+AC_ARG_ENABLE([maintainer-mode],
+    [AS_HELP_STRING([--enable-maintainer-mode],
+        [Ignored; accepted to avoid a warning from debuild])])
+
 AC_ARG_WITH([bash-completion],
-    [AS_HELP_STRING(
-        [--with-bash-completion],
+    [AS_HELP_STRING([--with-bash-completion],
         [install bash(1) command completion; can specify a path where it will be installed])],
     [],
     [with_bash_completion=yes])