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

b03539
diff -up cups-2.3.3op2/conf/cupsd.conf.in.idleexittimeout cups-2.3.3op2/conf/cupsd.conf.in
b03539
--- cups-2.3.3op2/conf/cupsd.conf.in.idleexittimeout	2021-02-01 22:10:25.000000000 +0100
b03539
+++ cups-2.3.3op2/conf/cupsd.conf.in	2021-11-29 11:37:02.426407322 +0100
b03539
@@ -28,6 +28,9 @@ DefaultAuthType Basic
b03539
 # Web interface setting...
b03539
 WebInterface @CUPS_WEBIF@
b03539
 
b03539
+# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
b03539
+IdleExitTimeout @EXIT_TIMEOUT@
b03539
+
b03539
 # Restrict access to the server...
b03539
 <Location />
b03539
   Order allow,deny
b03539
diff -up cups-2.3.3op2/config-scripts/cups-defaults.m4.idleexittimeout cups-2.3.3op2/config-scripts/cups-defaults.m4
b03539
--- cups-2.3.3op2/config-scripts/cups-defaults.m4.idleexittimeout	2021-11-29 11:37:02.426407322 +0100
b03539
+++ cups-2.3.3op2/config-scripts/cups-defaults.m4	2021-11-29 11:39:16.629262421 +0100
b03539
@@ -461,3 +461,16 @@ esac
b03539
 
b03539
 AC_SUBST(CUPS_WEBIF)
b03539
 AC_DEFINE_UNQUOTED(CUPS_DEFAULT_WEBIF, $CUPS_DEFAULT_WEBIF)
b03539
+
b03539
+dnl Set default value of IdleExitTimeout
b03539
+AC_ARG_WITH([idle_exit_timeout], AS_HELP_STRING([--with-idle-exit-timeout], [set the default value for IdleExitTimeout, default=60]), [
b03539
+    AS_IF([test "x$withval" = "xno"], [
b03539
+	EXIT_TIMEOUT=0
b03539
+    ], [
b03539
+	EXIT_TIMEOUT=$withval
b03539
+    ])
b03539
+], [
b03539
+    EXIT_TIMEOUT=60
b03539
+])
b03539
+
b03539
+AC_SUBST([EXIT_TIMEOUT])