aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-12-29 16:37:52 +0800
committersteve <steve@FreeBSD.org>1999-12-29 16:37:52 +0800
commita0762eec9f20905ce0113b5d56193761cbe3cb9e (patch)
tree09504110ff25cafd97ee8414b73c13b5ac3f8b01 /mail
parent45315d0a5b32573b40d0183b6e0ddda6e7fd0158 (diff)
downloadfreebsd-ports-gnome-a0762eec9f20905ce0113b5d56193761cbe3cb9e.tar.gz
freebsd-ports-gnome-a0762eec9f20905ce0113b5d56193761cbe3cb9e.tar.zst
freebsd-ports-gnome-a0762eec9f20905ce0113b5d56193761cbe3cb9e.zip
Make sure all the directories needed by this port are created on install.
PR: 12584 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
Diffstat (limited to 'mail')
-rw-r--r--mail/cyrus-imapd/Makefile22
-rw-r--r--mail/cyrus-imapd2/Makefile22
-rw-r--r--mail/cyrus-imapd22/Makefile22
-rw-r--r--mail/cyrus-imapd23/Makefile22
-rw-r--r--mail/cyrus-imapd24/Makefile22
-rw-r--r--mail/cyrus/Makefile22
6 files changed, 126 insertions, 6 deletions
diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile
index c26fc87c2604..737de0f6ed31 100644
--- a/mail/cyrus-imapd/Makefile
+++ b/mail/cyrus-imapd/Makefile
@@ -66,7 +66,8 @@ post-install:
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
- ${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+ ${INSTALL} -d -m 750 -o cyrus -g cyrus \
+ /var/spool/imap \
${PREFIX}/etc/imap \
${PREFIX}/etc/imap/user \
${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@ post-install:
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
${TOUCH} ${PREFIX}/etc/imap/mailboxes
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
+ chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+ @${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+ @${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+ @${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+ @${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+ @${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@cwd /var" >>${TMPPLIST}
+ @${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+ @${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
>${PREFIX}/etc/rc.d/cyrus.sh
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh
diff --git a/mail/cyrus-imapd2/Makefile b/mail/cyrus-imapd2/Makefile
index c26fc87c2604..737de0f6ed31 100644
--- a/mail/cyrus-imapd2/Makefile
+++ b/mail/cyrus-imapd2/Makefile
@@ -66,7 +66,8 @@ post-install:
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
- ${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+ ${INSTALL} -d -m 750 -o cyrus -g cyrus \
+ /var/spool/imap \
${PREFIX}/etc/imap \
${PREFIX}/etc/imap/user \
${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@ post-install:
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
${TOUCH} ${PREFIX}/etc/imap/mailboxes
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
+ chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+ @${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+ @${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+ @${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+ @${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+ @${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@cwd /var" >>${TMPPLIST}
+ @${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+ @${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
>${PREFIX}/etc/rc.d/cyrus.sh
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index c26fc87c2604..737de0f6ed31 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -66,7 +66,8 @@ post-install:
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
- ${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+ ${INSTALL} -d -m 750 -o cyrus -g cyrus \
+ /var/spool/imap \
${PREFIX}/etc/imap \
${PREFIX}/etc/imap/user \
${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@ post-install:
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
${TOUCH} ${PREFIX}/etc/imap/mailboxes
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
+ chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+ @${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+ @${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+ @${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+ @${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+ @${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@cwd /var" >>${TMPPLIST}
+ @${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+ @${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
>${PREFIX}/etc/rc.d/cyrus.sh
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile
index c26fc87c2604..737de0f6ed31 100644
--- a/mail/cyrus-imapd23/Makefile
+++ b/mail/cyrus-imapd23/Makefile
@@ -66,7 +66,8 @@ post-install:
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
- ${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+ ${INSTALL} -d -m 750 -o cyrus -g cyrus \
+ /var/spool/imap \
${PREFIX}/etc/imap \
${PREFIX}/etc/imap/user \
${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@ post-install:
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
${TOUCH} ${PREFIX}/etc/imap/mailboxes
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
+ chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+ @${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+ @${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+ @${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+ @${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+ @${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@cwd /var" >>${TMPPLIST}
+ @${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+ @${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
>${PREFIX}/etc/rc.d/cyrus.sh
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index c26fc87c2604..737de0f6ed31 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -66,7 +66,8 @@ post-install:
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
- ${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+ ${INSTALL} -d -m 750 -o cyrus -g cyrus \
+ /var/spool/imap \
${PREFIX}/etc/imap \
${PREFIX}/etc/imap/user \
${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@ post-install:
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
${TOUCH} ${PREFIX}/etc/imap/mailboxes
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
+ chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+ @${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+ @${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+ @${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+ @${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+ @${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@cwd /var" >>${TMPPLIST}
+ @${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+ @${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
>${PREFIX}/etc/rc.d/cyrus.sh
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh
diff --git a/mail/cyrus/Makefile b/mail/cyrus/Makefile
index c26fc87c2604..737de0f6ed31 100644
--- a/mail/cyrus/Makefile
+++ b/mail/cyrus/Makefile
@@ -66,7 +66,8 @@ post-install:
${PREFIX}/etc/imapd.conf.dist
${INSTALL_DATA} ${FILESDIR}/inetd.conf.cyrus \
${PREFIX}/etc/
- ${INSTALL} -d -m 750 -o cyrus -g cyrus /var/spool/imap \
+ ${INSTALL} -d -m 750 -o cyrus -g cyrus \
+ /var/spool/imap \
${PREFIX}/etc/imap \
${PREFIX}/etc/imap/user \
${PREFIX}/etc/imap/quota \
@@ -76,6 +77,25 @@ post-install:
${INSTALL} -d -m 700 -o cyrus -g cyrus /var/pwcheck
${TOUCH} ${PREFIX}/etc/imap/mailboxes
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
+ chown cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
+ @${ECHO} "@exec mkdir %D/etc/imap" >>${TMPPLIST}
+.for dir in user quota proc log msg
+ @${ECHO} "@exec mkdir %D/etc/imap/${dir}" >>${TMPPLIST}
+ @${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
+.endfor
+ @${ECHO} "@exec cp /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
+ @${ECHO} "@exec chown -R cyrus:cyrus %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod -R g-w,o= %D/etc/imap" >>${TMPPLIST}
+ @${ECHO} "@mode u=rwx,go=" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec chmod go= /var/pwcheck" >>${TMPPLIST}
+ @${ECHO} "@exec mkdir /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chown cyrus:cyrus /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@exec chmod g-w,o= /var/spool/imap" >>${TMPPLIST}
+ @${ECHO} "@cwd /var" >>${TMPPLIST}
+ @${ECHO} "@dirrm pwcheck" >>${TMPPLIST}
+ @${ECHO} "@dirrm spool/imap" >>${TMPPLIST}
@${SED} -e "/%%PREFIX%%/s##${PREFIX}#g" ${FILESDIR}/cyrus.sh \
>${PREFIX}/etc/rc.d/cyrus.sh
@${CHMOD} 0755 ${PREFIX}/etc/rc.d/cyrus.sh