diff options
author | Steve Price <steve@FreeBSD.org> | 1999-12-29 08:37:52 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1999-12-29 08:37:52 +0000 |
commit | 8ba34b95a053690f02e72814d366c9c9241623b2 (patch) | |
tree | e311a8dffd241513c80dafb77595ddbf35a727f7 /mail | |
parent | Update to version 1.0. (diff) |
Make sure all the directories needed by this port are created on install.
PR: 12584
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
Notes
Notes:
svn path=/head/; revision=24245
Diffstat (limited to 'mail')
-rw-r--r-- | mail/cyrus-imapd/Makefile | 22 | ||||
-rw-r--r-- | mail/cyrus-imapd2/Makefile | 22 | ||||
-rw-r--r-- | mail/cyrus-imapd22/Makefile | 22 | ||||
-rw-r--r-- | mail/cyrus-imapd23/Makefile | 22 | ||||
-rw-r--r-- | mail/cyrus-imapd24/Makefile | 22 | ||||
-rw-r--r-- | mail/cyrus/Makefile | 22 |
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 |