summaryrefslogtreecommitdiff
path: root/mail/bincimap/Makefile
blob: fc945b2743c56c4b80662cfacb327ab351642e46 (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
54
55
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:	bincimap
# Date created:		27 Mar 2003
# Whom:			Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#

# The following compile-time options are available:
#
# WITHOUT_OPENSSL	Disable OpenSSL support (enabled by default)
#

PORTNAME=	bincimap
PORTVERSION=	1.2.13
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://www.bincimap.org/%SUBDIR%/ \
		http://www.bincimap.andreas.hanssen.name/%SUBDIR%/ \
		http://bincimap.argonsoft.de/www.bincimap.org/%SUBDIR%/
MASTER_SITE_SUBDIR=	dl/tarballs/1.2
DISTNAME=	${PORTNAME}-${PORTVERSION}final

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Light-weight IMAP server for Maildir

RUN_DEPENDS=	checkpassword-pam:${PORTSDIR}/security/checkpassword-pam \
		tcpserver:${PORTSDIR}/sysutils/ucspi-tcp

USE_RC_SUBR=	bincimapd
USE_BZIP2=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--sysconfdir=${CONFDIR}
CONFDIR=	${PREFIX}/etc/${PORTNAME}

.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+=	--without-ssl
.else
CONFIGURE_ARGS+=	--with-ssl
USE_OPENSSL=		yes
.endif

MAN1=		bincimap-up.1 bincimapd.1
MAN5=		bincimap.conf.5
DOCS=		AUTHORS ChangeLog README doc/bincimap* \
		doc/manual/bincimap-manual.ps
EXAMPLES=	conf/bincimap.conf conf/checkpassword.pl conf/toimapdir \
		conf/tomaildir++ conf/xinetd-bincimap conf/xinetd-bincimaps
CONTRIB=	contrib/README contrib/authenticators/bincimap-auth-teapop.sh

post-install:
	@${MKDIR} ${CONFDIR}
	${INSTALL_DATA} ${WRKSRC}/conf/bincimap.conf \
		${CONFDIR}/bincimap.conf.sample
	@${MKDIR} ${EXAMPLESDIR}/contrib
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${CONTRIB} ${EXAMPLESDIR}/contrib
	cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
	cd ${WRKSRC}/man && ${INSTALL_MAN} ${MAN5} ${MANPREFIX}/man/man5
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	@cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>