2002-09-01 16:17:07 +02:00
|
|
|
# New ports collection makefile for: dovecot
|
|
|
|
# Date created: 12/08/2002
|
2002-11-02 05:33:43 +01:00
|
|
|
# Whom: Dominic Marks <d.marks@student.umist.ac.uk>
|
2002-09-01 16:17:07 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dovecot
|
|
|
|
PORTVERSION= 0.97
|
|
|
|
CATEGORIES= mail ipv6
|
|
|
|
MASTER_SITES= http://dovecot.procontrol.fi/
|
|
|
|
|
2002-11-02 05:33:43 +01:00
|
|
|
MAINTAINER= d.marks@student.umist.ac.uk
|
2002-09-01 16:17:07 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-shadow --enable-ipv6 \
|
|
|
|
--localstatedir=/var/dovecot
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PLIST_SUB+= DOCS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DOCS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${SED} 's,%%PREFIX%%,${PREFIX},' < ${WRKSRC}/dovecot-example.conf \
|
|
|
|
> ${WRKSRC}/dovecot-example.conf.new
|
|
|
|
@${MV} ${WRKSRC}/dovecot-example.conf.new ${WRKSRC}/dovecot-example.conf
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} /var/dovecot
|
|
|
|
@${MKDIR} /var/dovecot/auth
|
|
|
|
@${MKDIR} /var/dovecot/login
|
2002-09-05 04:50:13 +02:00
|
|
|
@${CHOWN} imapd:imapd /var/dovecot
|
2002-09-01 16:17:07 +02:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/dovecot-imapd.sh ]; then \
|
|
|
|
${ECHO} "Install ${PREFIX}/etc/rc.d/dovecot-imapd.sh startup file."; \
|
|
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dovecot-imapd.sh ${PREFIX}/etc/rc.d/dovecot-imapd.sh; \
|
|
|
|
fi
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/dovecot
|
|
|
|
@${INSTALL_DATA} \
|
|
|
|
${WRKSRC}/doc/auth.txt \
|
|
|
|
${WRKSRC}/doc/design.txt \
|
|
|
|
${WRKSRC}/doc/index.txt \
|
|
|
|
${WRKSRC}/doc/multiaccess.txt \
|
|
|
|
${WRKSRC}/doc/nfs.txt \
|
|
|
|
${PREFIX}/share/doc/dovecot
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|