File cyrus-imapd-3.4.9-rename.patch of Package cyrus-imapd

From: Matthias Fehring <buschmann23@opensuse.org>
Date: 2024-07-18 12:12:00 +0200
Subject: Rename conflicting binaries and man pages
Upstream: no

Cyrus IMAPD ships some binaries that conflict with binaries
from other packages. This renames some binaries and their man
pages into names prefixed by cyr_.

---
 imap/imapd.c    |    2 +-
 man/fetchnews.8 |   14 +++++++-------
 man/quota.8     |   16 ++++++++--------
 man/restore.8   |   12 ++++++------
 4 files changed, 22 insertions(+), 22 deletions(-)

--- a/imap/imapd.c	2024-07-29 05:06:10.000000000 +0200
+++ b/imap/imapd.c	2024-07-29 14:26:41.672742233 +0200
@@ -7379,7 +7379,7 @@ static void cmd_reconstruct(const char *
             fclose(stdout);
             fclose(stderr);
 
-            ret = snprintf(buf, sizeof(buf), "%s/quota", SBIN_DIR);
+            ret = snprintf(buf, sizeof(buf), "%s/cyr_quota", SBIN_DIR);
             if(ret < 0 || ret >= (int) sizeof(buf)) {
                 /* in child, so fatailing won't disconnect our user */
                 fatal("quota buffer not sufficiently big", EX_CONFIG);
--- a/man/fetchnews.8	2024-07-29 05:08:28.000000000 +0200
+++ b/man/fetchnews.8	2024-07-29 14:30:15.824623818 +0200
@@ -27,9 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2
 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
 ..
-.TH "FETCHNEWS" "8" "Jul 29, 2024" "3.4.9" "Cyrus IMAP"
+.TH "CYR_FETCHNEWS" "8" "Jul 29, 2024" "3.4.9" "Cyrus IMAP"
 .SH NAME
-fetchnews \- Cyrus IMAP documentation
+cyr_fetchnews \- Cyrus IMAP documentation
 .sp
 Retrieve new articles from peer and feed to Cyrus
 .SH SYNOPSIS
@@ -38,7 +38,7 @@ Retrieve new articles from peer and feed
 .sp
 .nf
 .ft C
-\fBfetchnews\fP [ \fB\-C\fP \fIconfig\-file\fP ] [ \fB\-s\fP \fIservername\fP[:\fIport\fP]]
+\fBcyr_fetchnews\fP [ \fB\-C\fP \fIconfig\-file\fP ] [ \fB\-s\fP \fIservername\fP[:\fIport\fP]]
     [ \fB\-n\fP ] [ \fB\-y\fP ] [ \fB\-w\fP \fIwildmat\fP ] [ \fB\-f\fP \fItstampfile\fP ]
     [ \fB\-a\fP \fIauthname\fP [ \fB\-p\fP \fIpassword\fP ]] \fIpeername\fP
 .ft P
@@ -47,12 +47,12 @@ Retrieve new articles from peer and feed
 .UNINDENT
 .SH DESCRIPTION
 .sp
-\fBfetchnews\fP retrieves news articles from a peer news server and
-feeds them to a Cyrus server. \fBfetchnews\fP connects to the peer
+\fBcyr_fetchnews\fP retrieves news articles from a peer news server and
+feeds them to a Cyrus server. \fBcyr_fetchnews\fP connects to the peer
 specified by \fIpeername\fP, requests new articles since the time stored in
 \fItstampfile\fP and feeds them to \fIservername\fP\&.
 .sp
-\fBfetchnews\fP reads its configuration options out of the \fI\%imapd.conf(5)\fP file unless specified otherwise by \fB\-C\fP\&.
+\fBcyr_fetchnews\fP reads its configuration options out of the \fI\%imapd.conf(5)\fP file unless specified otherwise by \fB\-C\fP\&.
 .SH OPTIONS
 .INDENT 0.0
 .TP
@@ -68,7 +68,7 @@ should be fed.  Defaults to \(dqlocalhos
 .INDENT 0.0
 .TP
 .B \-n
-Don\(aqt use the NEWNEWS command. \fBfetchnews\fP will keep track of the
+Don\(aqt use the NEWNEWS command. \fBcyr_fetchnews\fP will keep track of the
 high and low water marks for each group and use them to fetch new
 articles.
 .UNINDENT
--- a/man/quota.8	2024-07-29 05:08:28.000000000 +0200
+++ b/man/quota.8	2024-07-29 14:28:56.009740569 +0200
@@ -27,9 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2
 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
 ..
-.TH "QUOTA" "8" "Jul 29, 2024" "3.4.9" "Cyrus IMAP"
+.TH "CYR_QUOTA" "8" "Jul 29, 2024" "3.4.9" "Cyrus IMAP"
 .SH NAME
-quota \- Cyrus IMAP documentation
+cyr_quota \- Cyrus IMAP documentation
 .sp
 Report and optionally fix storage and message quota usage.
 .SH SYNOPSIS
@@ -38,17 +38,17 @@ Report and optionally fix storage and me
 .sp
 .nf
 .ft C
-\fBquota\fP [ \fB\-C\fP \fIconfig\-file\fP ] [ \fB\-d\fP \fIdomain\fP ] [ \fB\-f\fP ] [ \fB\-u\fP ] [ \fImailbox\-spec\fP\&... ]
+\fBcyr_quota\fP [ \fB\-C\fP \fIconfig\-file\fP ] [ \fB\-d\fP \fIdomain\fP ] [ \fB\-f\fP ] [ \fB\-u\fP ] [ \fImailbox\-spec\fP\&... ]
 .ft P
 .fi
 .UNINDENT
 .UNINDENT
 .SH DESCRIPTION
 .sp
-\fBquota\fP generates a report listing quota roots, giving their limits and
+\fBcyr_quota\fP generates a report listing quota roots, giving their limits and
 usage.
 .sp
-If the \fB\-f\fP option is specified, \fBquota\fP first fixes any
+If the \fB\-f\fP option is specified, \fBcyr_quota\fP first fixes any
 inconsistencies in the quota subsystem, such as mailboxes with the wrong
 quota root or quota roots with the wrong quota usage reported.
 .sp
@@ -66,12 +66,12 @@ quota roots for only the specified users
 \fBWARNING:\fP
 .INDENT 0.0
 .INDENT 3.5
-Running \fBquota\fP with both the \fB\-f\fP option and \fImailbox\-spec\fP
+Running \fBcyr_quota\fP with both the \fB\-f\fP option and \fImailbox\-spec\fP
 arguments is not recommended.
 .UNINDENT
 .UNINDENT
 .sp
-\fBquota\fP reads its configuration options out of the \fI\%imapd.conf(5)\fP file unless specified otherwise by \fB\-C\fP\&.
+\fBcyr_quota\fP reads its configuration options out of the \fI\%imapd.conf(5)\fP file unless specified otherwise by \fB\-C\fP\&.
 .SH OPTIONS
 .INDENT 0.0
 .TP
@@ -124,7 +124,7 @@ Only report and/or fix quota in mailboxe
 .sp
 .nf
 .ft C
-\fBquota\fP
+\fBcyr_quota\fP
 .ft P
 .fi
 .UNINDENT
--- a/man/restore.8	2024-07-29 05:08:28.000000000 +0200
+++ b/man/restore.8	2024-07-29 14:30:38.580782012 +0200
@@ -27,9 +27,9 @@ level margin: \\n[rst2man-indent\\n[rst2
 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
 ..
-.TH "RESTORE" "8" "Jul 29, 2024" "3.4.9" "Cyrus IMAP"
+.TH "CYR_RESTORE" "8" "Jul 29, 2024" "3.4.9" "Cyrus IMAP"
 .SH NAME
-restore \- Cyrus IMAP documentation
+cyr_restore \- Cyrus IMAP documentation
 .sp
 Restore content from Cyrus backups.
 .SH SYNOPSIS
@@ -38,7 +38,7 @@ Restore content from Cyrus backups.
 .sp
 .nf
 .ft C
-\fBrestore\fP [OPTIONS] \fIserver\fP [MODE] \fIbackup\fP [ \fImboxname\fP | \fIuniqueid\fP | \fIguid\fP ]...
+\fBcyr_restore\fP [OPTIONS] \fIserver\fP [MODE] \fIbackup\fP [ \fImboxname\fP | \fIuniqueid\fP | \fIguid\fP ]...
 .ft P
 .fi
 .UNINDENT
@@ -52,11 +52,11 @@ Cyrus Backups are experimental, incomple
 .UNINDENT
 .UNINDENT
 .sp
-\fBrestore\fP is a tool for restoring messages and mailboxes from a Cyrus backup
+\fBcyr_restore\fP is a tool for restoring messages and mailboxes from a Cyrus backup
 to a Cyrus IMAP server.  It must be run from the server containing the backup
 storage.
 .sp
-\fBrestore\fP reads its configuration options out of the \fI\%imapd.conf(5)\fP file unless specified otherwise by \fB\-C\fP\&.
+\fBcyr_restore\fP reads its configuration options out of the \fI\%imapd.conf(5)\fP file unless specified otherwise by \fB\-C\fP\&.
 .sp
 \fIserver\fP specifies the destination server to which content should be restored.
 It should be of the form \(aq\fIhost\fP[:\fIport\fP]\(aq, where \fIhost\fP is either a
@@ -69,7 +69,7 @@ The destination server must point to eit
 with the replication capability enabled, or a \fI\%sync_server(8)\fP
 instance.  In either case it must be Cyrus version 3.0 or newer.
 .sp
-\fBrestore\fP will authenticate to the destination server according to the
+\fBcyr_restore\fP will authenticate to the destination server according to the
 \fBrestore_authname\fP, \fBrestore_password\fP and \fBrestore_realm\fP configuration
 options.  The credentials should correspond with one of the destination
 server\(aqs \fBadmins\fP\&.
openSUSE Build Service is sponsored by