freebsd-ports/mail/cyrus-imapd22/files/patch-dg
Hajimu UMEMOTO a86c2cd961 Update to 2.2.13.
This is possibly the last release of the 2.2 series.  The 2.2 code
is now in maintenance mode only, and all new development is taking
place on the 2.3 code.
2006-03-31 17:19:00 +00:00

37 lines
1.1 KiB
Text

Index: tools/mkimap
diff -u tools/mkimap.orig tools/mkimap
--- tools/mkimap.orig Fri Dec 2 04:12:34 2005
+++ tools/mkimap Sat Apr 1 01:13:06 2006
@@ -90,6 +90,9 @@
$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) {
@@ -100,6 +103,7 @@
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: $!";
@@ -109,11 +113,14 @@
mkdir "msg", 0755 || warn "can't create $d/msg: $!";
mkdir "ptclient", 0755 || warn "can't create $d/ptclient: $!";
+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.: $!";
+ system "/usr/sbin/chown -R $cyrus_user:$cyrus_group $part";
}
print "done\n";