Blame SOURCES/0001-Add-with-idle-exit-timeout-configure-option.patch

a17bb8
diff -up cups-2.2.6/conf/cupsd.conf.in.idleexittimeout cups-2.2.6/conf/cupsd.conf.in
a17bb8
--- cups-2.2.6/conf/cupsd.conf.in.idleexittimeout	2017-11-01 15:57:53.000000000 +0100
a17bb8
+++ cups-2.2.6/conf/cupsd.conf.in	2021-11-29 11:45:37.416058954 +0100
a17bb8
@@ -22,6 +22,9 @@ DefaultAuthType Basic
a17bb8
 # Web interface setting...
a17bb8
 WebInterface @CUPS_WEBIF@
a17bb8
 
a17bb8
+# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
a17bb8
+IdleExitTimeout @EXIT_TIMEOUT@
a17bb8
+
a17bb8
 # Restrict access to the server...
a17bb8
 <Location />
a17bb8
   Order allow,deny
a17bb8
diff -up cups-2.2.6/config-scripts/cups-defaults.m4.idleexittimeout cups-2.2.6/config-scripts/cups-defaults.m4
a17bb8
--- cups-2.2.6/config-scripts/cups-defaults.m4.idleexittimeout	2021-11-29 11:45:37.416058954 +0100
a17bb8
+++ cups-2.2.6/config-scripts/cups-defaults.m4	2021-11-29 11:46:31.680612421 +0100
a17bb8
@@ -425,3 +425,16 @@ esac
a17bb8
 
a17bb8
 AC_SUBST(CUPS_WEBIF)
a17bb8
 AC_DEFINE_UNQUOTED(CUPS_DEFAULT_WEBIF, $CUPS_DEFAULT_WEBIF)
a17bb8
+
a17bb8
+dnl Set default value of IdleExitTimeout
a17bb8
+AC_ARG_WITH([idle_exit_timeout], AS_HELP_STRING([--with-idle-exit-timeout], [set the default value for IdleExitTimeout, default=60]), [
a17bb8
+    AS_IF([test "x$withval" = "xno"], [
a17bb8
+	EXIT_TIMEOUT=0
a17bb8
+    ], [
a17bb8
+	EXIT_TIMEOUT=$withval
a17bb8
+    ])
a17bb8
+], [
a17bb8
+    EXIT_TIMEOUT=60
a17bb8
+])
a17bb8
+
a17bb8
+AC_SUBST([EXIT_TIMEOUT])