blob: 10b276e3cd260c90ea70c12a83cb64920e76d54a (
plain)
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
54
55
56
57
58
59
|
# $NetBSD: Makefile,v 1.75 2006/11/19 10:36:34 ghen Exp $
DISTNAME= dovecot-1.0.rc15
PKGNAME= ${DISTNAME:S/.rc/rc/}
CATEGORIES= mail
MASTER_SITES= http://www.dovecot.org/releases/
MAINTAINER= ghen@NetBSD.org
HOMEPAGE= http://www.dovecot.org/
COMMENT= Secure IMAP and POP3 server
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --with-ssldir=${SSLDIR:Q}
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
RCD_SCRIPTS= dovecot
DOVECOT_USER?= dovecot
DOVECOT_GROUP?= dovecot
PKG_GROUPS= ${DOVECOT_GROUP}
PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP}
PKG_GECOS.${DOVECOT_USER}= Dovecot IMAP/POP3 user
EGDIR= ${PREFIX}/share/examples/dovecot
CONF_FILES= ${EGDIR}/dovecot.conf.default ${PKG_SYSCONFDIR}/dovecot.conf
INSTALLATION_DIRS= libexec/dovecot sbin share/doc/dovecot \
share/examples/dovecot
SUBST_CLASSES+= paths
SUBST_FILES.paths= dovecot-example.conf
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_STAGE.paths= pre-configure
post-build:
${SED} "s|/etc/ssl/|${SSLDIR}/|" ${WRKSRC}/dovecot-example.conf \
> ${WRKDIR}/dovecot-example.conf
${SED} "s|/etc/ssl|${SSLDIR}|" ${WRKSRC}/doc/mkcert.sh \
> ${WRKDIR}/mkcert.sh
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKDIR}/dovecot-example.conf \
${EGDIR}/dovecot.conf.default
${INSTALL_DATA} ${WRKSRC}/doc/dovecot-* ${EGDIR}
${INSTALL_SCRIPT} ${WRKDIR}/mkcert.sh ${EGDIR}
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|