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

From: Matthias Fehring <buschmann23@opensuse.org>
Date: 2024-07-18 14:24: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     |   14 +++++++-------
 man/restore.8   |   12 ++++++------
 4 files changed, 21 insertions(+), 21 deletions(-)

--- a/imap/imapd.c	2024-03-13 04:30:50.000000000 +0100
+++ b/imap/imapd.c	2024-06-18 14:19:56.394206059 +0200
@@ -8023,7 +8023,7 @@
             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/quota.8	2024-03-13 04:32:59.000000000 +0100
+++ b/man/quota.8	2024-06-18 14:20:45.743098330 +0200
@@ -27,9 +27,9 @@
 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
 ..
-.TH "QUOTA" "8" "Mar 13, 2024" "3.2.12" "Cyrus IMAP"
+.TH "CYR_QUOTA" "8" "Mar 13, 2024" "3.2.12" "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,14 +38,14 @@
 .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
@@ -66,12 +66,12 @@
 \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 @@
 .sp
 .nf
 .ft C
-\fBquota\fP
+\fBcyr_quota\fP
 .ft P
 .fi
 .UNINDENT
--- a/man/fetchnews.8	2024-03-13 04:32:59.000000000 +0100
+++ b/man/fetchnews.8	2024-06-18 14:21:38.005258540 +0200
@@ -27,9 +27,9 @@
 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
 ..
-.TH "FETCHNEWS" "8" "Mar 13, 2024" "3.2.12" "Cyrus IMAP"
+.TH "CYR_FETCHNEWS" "8" "Mar 13, 2024" "3.2.12" "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 @@
 .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 @@
 .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 @@
 .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/restore.8	2024-03-13 04:32:59.000000000 +0100
+++ b/man/restore.8	2024-06-18 14:22:37.993911979 +0200
@@ -27,9 +27,9 @@
 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
 ..
-.TH "RESTORE" "8" "Mar 13, 2024" "3.2.12" "Cyrus IMAP"
+.TH "CYR_RESTORE" "8" "Mar 13, 2024" "3.2.12" "Cyrus IMAP"
 .SH NAME
-restore \- Cyrus IMAP documentation
+cyr_restore \- Cyrus IMAP documentation
 .sp
 Restore content from Cyrus backups.
 .SH SYNOPSIS
@@ -38,18 +38,18 @@
 .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
 .UNINDENT
 .SH DESCRIPTION
 .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
@@ -62,7 +62,7 @@
 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