aboutsummaryrefslogtreecommitdiff
path: root/databases/cyrus-imspd/Makefile
blob: 7260652117f27b126017982a53c5603f2f3dd5f3 (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
# Created by: damien@tougas.net
# $FreeBSD$

PORTNAME=	cyrus-imspd
PORTVERSION=	1.8
PORTREVISION=	1
CATEGORIES=	databases mail
MASTER_SITES=	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
		http://ftp.kfki.hu/packages/mail/cyrus/
DISTNAME=	${PORTNAME}-v${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The cyrus IMSP (Internet Message Support Protocol) server

LIB_DEPENDS=	libsasl2.so:${PORTSDIR}/security/cyrus-sasl2

GNU_CONFIGURE=	YES
CPPFLAGS+=	-I${LOCALBASE}/include
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--with-sasldir=${LOCALBASE} \
		--with-sasl=${LOCALBASE} \
		--with-auth=unix

USE_RC_SUBR=	imspd
DOCSDIR=	${PREFIX}/share/doc/imspd

NO_STAGE=	yes
post-patch:
		${REINPLACE_CMD} -e "s|<sasl.h>|<sasl2/sasl.h>|" \
			${WRKSRC}/configure

post-install:
		${INSTALL_DATA} ${FILESDIR}/imspd.conf \
			${PREFIX}/lib/sasl2/imspd.conf
		${MKDIR} /var/imsp
		${INSTALL_DATA} ${WRKSRC}/imsp/options.sample \
			/var/imsp/options.dist
.if !defined(NOPORTDOCS)
		${MKDIR} ${DOCSDIR}
		${INSTALL_DATA} ${WRKSRC}/notes/Setup-instructions \
				${WRKSRC}/notes/option.registry \
				${WRKSRC}/notes/Changes-Todo \
				${WRKSRC}/notes/imsp.implementation \
				${WRKSRC}/notes/imsp.implementation.updates \
			${DOCSDIR}
.endif
		@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>