summaryrefslogtreecommitdiffstats
path: root/mail/up-imapproxy/Makefile
blob: e4bf188b44b2eb6840022582e2acc53949a05ca8 (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
# Created by: Martin Blapp
# $FreeBSD$

PORTNAME=	imapproxy
PORTVERSION=	1.2.7
PORTREVISION=	4
CATEGORIES=	mail
MASTER_SITES=	SF/squirrelmail/imap_proxy/${PORTVERSION}
PKGNAMEPREFIX=	up-
DISTNAME=	squirrelmail-imap_proxy-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Caching IMAP proxy server

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

OPTIONS_DEFINE=	DOVECOT DOCS
DOVECOT_DESC=	Use with dovecot2

USES=		autoreconf tar:bzip2 ncurses pathfix ssl
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-openssl=${OPENSSLBASE}

USE_RC_SUBR=	imapproxyd

SUB_FILES=	pkg-message

DOCS=		ChangeLog README README.debian README.known_issues README.ssl
SBIN=		in.imapproxyd pimpstat

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOVECOT}
SUB_LIST+=	DOVECOT="dovecot"
RUN_DEPENDS+=	dovecot:mail/dovecot
.else
SUB_LIST+=	DOVECOT=""
.endif

do-install:
.for i in ${SBIN}
	(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/sbin)
.endfor
	(cd ${WRKSRC}/scripts && ${INSTALL_DATA} imapproxy.conf \
		${STAGEDIR}${PREFIX}/etc/imapproxyd.conf.sample)
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
.endfor
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud