aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd312/files/patch-tools__mkimap
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2025-05-09 22:47:56 +0900
committerHajimu UMEMOTO <ume@FreeBSD.org>2025-05-09 22:47:56 +0900
commit16ad1e7d6c6b670cae772ef904ac94f50b89c9fe (patch)
tree3a1d3f7c83aae31194d2db5d11bed33351980236 /mail/cyrus-imapd312/files/patch-tools__mkimap
parent15619040d794b0162a19575c6ec6ed5d9e00fc04 (diff)
mail/cyrus-imapd312: Add new port -- Cyrus IMAP 3.12
Relnotes: https://www.cyrusimap.org/3.12/imap/download/release-notes/3.12/x/3.12.0.html
Diffstat (limited to 'mail/cyrus-imapd312/files/patch-tools__mkimap')
-rw-r--r--mail/cyrus-imapd312/files/patch-tools__mkimap36
1 files changed, 36 insertions, 0 deletions
diff --git a/mail/cyrus-imapd312/files/patch-tools__mkimap b/mail/cyrus-imapd312/files/patch-tools__mkimap
new file mode 100644
index 000000000000..e0cb5fe46ae7
--- /dev/null
+++ b/mail/cyrus-imapd312/files/patch-tools__mkimap
@@ -0,0 +1,36 @@
+--- tools/mkimap.orig 2022-10-06 22:58:05 UTC
++++ tools/mkimap
+@@ -75,6 +75,9 @@ sub read_conf {
+
+ $imapdconf = shift || "/etc/imapd.conf";
+
++$cyrus_user = $ENV{CYRUS_USER} || "%%CYRUS_USER%%";
++$cyrus_group = $ENV{CYRUS_GROUP} || "%%CYRUS_GROUP%%";
++
+ push @configs, $imapdconf;
+
+ while ($conf = shift @configs) {
+@@ -87,6 +90,7 @@ $d = $confdir;
+
+ print "configuring $d...\n";
+
++mkdir $d, 0755;
+ chdir $d or die "couldn't change to $d";
+
+ mkdir "proc", 0755 || warn "can't create $d/proc: $!";
+@@ -97,12 +101,15 @@ mkdir "msg", 0755 || warn "can't create $d/msg: $!";
+ mkdir "ptclient", 0755 || warn "can't create $d/ptclient: $!";
+ mkdir "sync", 0755 || warn "can't create $d/sync: $!";
+
++system "/usr/sbin/chown -R $cyrus_user:$cyrus_group .";
++
+ while ($part = shift @parts) {
+ print "creating $part...\n";
+ mkdir $part, 0755 || warn "can't create $part: $!";
+ chdir $part or die "couldn't change to partition $part";
+ mkdir "stage.", 0755 || warn "can't create $part/stage.: $!";
+ mkdir "sync.", 0755 || warn "can't create $part/sync.: $!";
++ system "/usr/sbin/chown -R $cyrus_user:$cyrus_group $part";
+ }
+
+ print "done\n";