blob: c3aa1f3f4e88e4ae6c44c059fe2c280cfad1d797 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: dovecot
# Date created: 12/08/2002
# Whom: Dominic Marks <dominic_marks@btinternet.com>
#
# $FreeBSD$
#
PORTNAME= dovecot
PORTVERSION= 0.97
CATEGORIES= mail ipv6
MASTER_SITES= http://dovecot.procontrol.fi/
MAINTAINER= dominic_marks@btinternet.com
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
@${CHOWN} imapd.imapd /var/dovecot
@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>
|