Bug#933948: too many split f the same things

2020-12-27 Thread PICCORO McKAY Lenz
El dom, 27 de dic. de 2020 a la(s) 12:42, Markus Wanner (mar...@bluegap.ch)
escribió:

> On 12/27/20 5:22 PM, PICCORO McKAY Lenz wrote:
>
> > it seems has several inter-dependencies.. or as you mantainers called
> > circular dependences.. so i'm unable to check in production cos does not
> > buil in a OBS environment..
>
> I see no circular dependency here.  Register to review is a pretty
> simple one-way dependency.
>
there's a debian issue already send about that but i'm too complicated
for.. i'm searching for.. but i cant find it yet! and was marked as
important.. it seems related to systvinit .. but i cant find it yet



> Glad you begin to understand that packaging is not quite as trivial as
> compiling from source for just your local installation.
>
of course.. we need to improve to property give more feedback to the today
quality of..
remember that today's sysadmins does not have same skill that old school ..
that's why system-ht are handle right? so easy to use for thems! XD XD



>
> Regards
>
> Markus
>


Bug#933948: too many split f the same things

2020-12-27 Thread Markus Wanner

On 12/27/20 5:22 PM, PICCORO McKAY Lenz wrote:
the review needs registration etc etc..  i try to analize but it has too 
complicated things for quick review..


It's a gitlab instance used for Debian packaging.  Registration is free. 
 For your convenience, I'm attaching the patch.


Note that Viktor Szépe has approved the merge request already (thanks a 
lot for the immediate review, Viktor!).  It will be part of the next 
upload (due soon, to get courier back into Debian testing).


it seems has several inter-dependencies.. or as you mantainers called 
circular dependences.. so i'm unable to check in production cos does not 
buil in a OBS environment..


I see no circular dependency here.  Register to review is a pretty 
simple one-way dependency.



again as i mailed.. more complications..


Glad you begin to understand that packaging is not quite as trivial as 
compiling from source for just your local installation.


Regards

Markus
diff --git a/debian/changelog b/debian/changelog
index 2efb82b..d7070e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ courier (1.0.14-1) UNRELEASED; urgency=medium
   * New upstream release 1.0.14.
   * Make courier-imap depend on fam or gamin.  Closes: #578937, #974585.
   * Refresh patch 0012
+  * Improve regular expressions used to parse config files.  Allows
+single and double quotes.  Closes: #933948.
   * Add patch 0026-correct-config-dir-in-docs.patch to correct paths to
 certificates in manpages and HTML documentation.  Closes: #946591.
   * Drop patch 0015-Disable-imapscanfail-maildirwatch-error-reporting:
diff --git a/debian/courier-imap.courier-imap-ssl.init b/debian/courier-imap.courier-imap-ssl.init
index b9ed0b8..1043ebb 100644
--- a/debian/courier-imap.courier-imap-ssl.init
+++ b/debian/courier-imap.courier-imap-ssl.init
@@ -17,7 +17,7 @@ fi
 DAEMON="/usr/sbin/imapd-ssl"
 DESC="Courier IMAP server (TLS)"
 
-DO_START=$(sed -ne 's/^IMAPDSSLSTART=\([^[:space:]]*\)/\1/p' /etc/courier/imapd-ssl | tr "A-Z" "a-z")
-PIDFILE=$(sed -ne 's/^SSLPIDFILE=\([^[:space:]]*\)/\1/p' /etc/courier/imapd-ssl)
+DO_START=$(sed -ne "s/^IMAPDSSLSTART[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\(\\w*\\)[\\'\\\"]\\?/\\L\\1/p" /etc/courier/imapd-ssl)
+PIDFILE=$(sed -ne "s/^SSLPIDFILE[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\([^[:space:]]*\\)[\\'\\\"]\\?/\\1/p" /etc/courier/imapd-ssl)
 
 . /usr/lib/courier/init-d-script-courier
diff --git a/debian/courier-imap.init b/debian/courier-imap.init
index ce2f20e..1217e15 100644
--- a/debian/courier-imap.init
+++ b/debian/courier-imap.init
@@ -17,7 +17,7 @@ fi
 DAEMON="/usr/sbin/imapd"
 DESC="Courier IMAP server"
 
-DO_START=$(sed -ne 's/^IMAPDSTART=\([^[:space:]]*\)/\1/p' /etc/courier/imapd | tr "A-Z" "a-z")
-PIDFILE=$(sed -ne 's/^PIDFILE=\([^[:space:]]*\)/\1/p' /etc/courier/imapd)
+DO_START=$(sed -ne "s/^IMAPDSTART[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\(\\w*\\)[\\'\\\"]\\?/\\L\\1/p" /etc/courier/imapd)
+PIDFILE=$(sed -ne "s/^PIDFILE[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\([^[:space:]]*\\)[\\'\\\"]\\?/\\1/p" /etc/courier/imapd)
 
 . /usr/lib/courier/init-d-script-courier
diff --git a/debian/courier-mta.courier-msa.init b/debian/courier-mta.courier-msa.init
index 5dac698..f283969 100644
--- a/debian/courier-mta.courier-msa.init
+++ b/debian/courier-mta.courier-msa.init
@@ -17,7 +17,7 @@ fi
 DAEMON="/usr/sbin/esmtpd-msa"
 DESC="Courier MSA server"
 
-DO_START=$(sed -ne 's/^ESMTPDSTART=\([^[:space:]]*\)/\1/p' /etc/courier/esmtpd-msa | tr "A-Z" "a-z")
-PIDFILE=$(sed -ne 's/^PIDFILE=\([^[:space:]]*\)/\1/p' /etc/courier/esmtpd-msa)
+DO_START=$(sed -ne "s/^ESMTPDSTART[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\(\\w*\\)[\\'\\\"]\\?/\\L\\1/p" /etc/courier/esmtpd-msa)
+PIDFILE=$(sed -ne "s/^PIDFILE[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\([^[:space:]]*\\)[\\'\\\"]\\?/\\1/p" /etc/courier/esmtpd-msa)
 
 . /usr/lib/courier/init-d-script-courier
diff --git a/debian/courier-mta.courier-mta-ssl.init b/debian/courier-mta.courier-mta-ssl.init
index 9c5eb05..9f0a2da 100644
--- a/debian/courier-mta.courier-mta-ssl.init
+++ b/debian/courier-mta.courier-mta-ssl.init
@@ -17,7 +17,7 @@ fi
 DAEMON="/usr/sbin/esmtpd-ssl"
 DESC="Courier MTA TLS server"
 
-DO_START=$(sed -ne 's/^ESMTPDSSLSTART=\([^[:space:]]*\)/\1/p' /etc/courier/esmtpd-ssl | tr "A-Z" "a-z")
-PIDFILE=$(sed -ne 's/^SSLPIDFILE=\([^[:space:]]*\)/\1/p' /etc/courier/esmtpd-ssl)
+DO_START=$(sed -ne "s/^ESMTPDSSLSTART[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\(\\w*\\)[\\'\\\"]\\?/\\L\\1/p" /etc/courier/esmtpd-ssl)
+PIDFILE=$(sed -ne "s/^SSLPIDFILE[[:space:]]*=[[:space:]]*[\\'\\\"]\\?\\([^[:space:]]*\\)[\\'\\\"]\\?/\\1/p" /etc/courier/esmtpd-ssl)
 
 . /usr/lib/courier/init-d-script-courier
diff --git a/debian/courier-mta.init b/debian/courier-mta.init
index e2bd979..db2781a 100644
--- a/debian/courier-mta.init
+++ b/debian/courier-mta.init
@@ -17,7 +17,7 @@ fi
 DAEMON="/usr/sbin/esmtpd"
 DESC="Courier MTA server"
 
-DO_START=$(sed -ne 's/^ESMTPDSTART=\([^[:space:]]*\)/\1/p' /etc/courier/esmtpd | tr 

Bug#933948: too many split f the same things

2020-12-27 Thread PICCORO McKAY Lenz
the review needs registration etc etc..  i try to analize but it has too
complicated things for quick review..

it seems has several inter-dependencies.. or as you mantainers called
circular dependences.. so i'm unable to check in production cos does not
buil in a OBS environment..

again as i mailed.. more complications..


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com