mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
o remove etc/imap/mailboxes only if empty.
o successfully exits even if etc/imap directory fails to remove. o do not overwrite mailboxes at pkg_add. o and then bump PORTREVISION. PR: 28496 Submitted by: "Scot W. Hetzel" <hetzels@westbend.net>
This commit is contained in:
parent
dc7016253b
commit
dad38a8274
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44568
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= cyrus
|
||||
PORTVERSION= 1.6.24
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= mail tcl82
|
||||
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
|
||||
ftp://ftp.hanse.de/sites/transit/mirror/ftp.andrew.cmu.edu/pub/cyrus-mail/
|
||||
@ -45,6 +45,7 @@ DOCS= README acl-extension anoncvs bugs changes copyrights install \
|
||||
mailing-list overview quota-extension server-design
|
||||
HTDOCS= anoncvs bugs changes index install mailing-list overview \
|
||||
questions readme sieve-protocol sieve
|
||||
|
||||
post-install:
|
||||
@ ${MV} ${PREFIX}/cyrus/bin/quota ${PREFIX}/cyrus/bin/cyrquota
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ -78,12 +79,13 @@ post-install:
|
||||
${CHMOD} 640 ${PREFIX}/etc/imap/mailboxes
|
||||
${CHOWN} cyrus:cyrus ${PREFIX}/etc/imap/mailboxes
|
||||
@${ECHO} "@exec ${MKDIR} %D/etc/imap" >>${TMPPLIST}
|
||||
@${ECHO} "@unexec if [ ! -s %D/etc/imap/mailboxes ]; then ${RM} %D/etc/imap/mailboxes; fi" >>${TMPPLIST}
|
||||
.for dir in user quota proc log msg
|
||||
@${ECHO} "@exec ${MKDIR} %D/etc/imap/${dir}" >>${TMPPLIST}
|
||||
@${ECHO} "@dirrm etc/imap/${dir}" >>${TMPPLIST}
|
||||
@${ECHO} "@unexec rmdir %D/etc/imap/${dir} 2>/dev/null || true" >>${TMPPLIST}
|
||||
.endfor
|
||||
@${ECHO} "@dirrm etc/imap" >>${TMPPLIST}
|
||||
@${ECHO} "@exec ${CP} /dev/null %D/etc/imap/mailboxes" >>${TMPPLIST}
|
||||
@${ECHO} "@unexec rmdir %D/etc/imap 2>/dev/null || true" >>${TMPPLIST}
|
||||
@${ECHO} "@exec ${TOUCH} %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}
|
||||
|
@ -15,7 +15,6 @@ cyrus/bin/pop3d
|
||||
cyrus/bin/reconstruct
|
||||
cyrus/bin/syncnews
|
||||
cyrus/bin/timsieved
|
||||
etc/imap/mailboxes
|
||||
etc/imapd.conf.dist
|
||||
etc/inetd.conf.cyrus
|
||||
include/cyrus/acl.h
|
||||
|
Loading…
Reference in New Issue
Block a user