blob: 7468aa205671d903c37e542001db2e2909b8a7e3 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# 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:
#
# WITH_XINETD Use xinetd instead of the default daemontools/ucspi-tcp
# WITHOUT_OPENSSL Disable OpenSSL support (enabled by default)
#
PORTNAME= bincimap
PORTVERSION= 1.2.3
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
PATCH_SITES= ${MASTER_SITES:S!%SUBDIR%!${MASTER_SITE_SUBDIR}!}
#PATCHFILES= bincimap-1.2.1-patch000-mimeparser
MAINTAINER= sergei@FreeBSD.org
COMMENT= Light-weight IMAP server for Maildir
.if defined(WITH_XINETD)
RUN_DEPENDS= xinetd:${PORTSDIR}/security/xinetd
PLIST_SUB+= XINETD="" DJB="@comment "
.else
RUN_DEPENDS= supervise:${PORTSDIR}/sysutils/daemontools \
tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
PLIST_SUB+= XINETD="@comment " DJB=""
.endif
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFDIR= ${PREFIX}/etc/${PORTNAME}
CONFIGURE_ARGS+= --sysconfdir=${CONFDIR}
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --without-ssl
PLIST_SUB+= SSL="@comment "
.else
CONFIGURE_ARGS+= --with-ssl
USE_OPENSSL= yes
PLIST_SUB+= SSL=""
.endif
MAN1= bincimap-up.1 bincimapd.1
MAN5= bincimap.conf.5
DOCS= AUTHORS ChangeLog README doc/bincimap* \
doc/manual/bincimap-manual.ps
EXAMPLES= contrib/README contrib/authenticators/bincimap-auth-teapop.sh
post-install:
@${MKDIR} ${CONFDIR}
${INSTALL_DATA} ${WRKSRC}/conf/bincimap.conf \
${CONFDIR}/bincimap.conf.sample
.if defined(WITH_XINETD)
${INSTALL_DATA} ${WRKSRC}/conf/xinetd-bincimap ${CONFDIR}/imap.sample
.if !defined(WITHOUT_OPENSSL)
${INSTALL_DATA} ${WRKSRC}/conf/xinetd-bincimaps ${CONFDIR}/imaps.sample
.endif
.else
@${MKDIR} ${CONFDIR}/imap.sample
${INSTALL_SCRIPT} ${WRKSRC}/service/run ${CONFDIR}/imap.sample
@${MKDIR} ${CONFDIR}/imap.sample/log
${INSTALL_SCRIPT} ${WRKSRC}/service/log/run ${CONFDIR}/imap.sample/log
.if !defined(WITHOUT_OPENSSL)
@${MKDIR} ${CONFDIR}/imaps.sample
${INSTALL_SCRIPT} ${WRKSRC}/service/run-ssl ${CONFDIR}/imaps.sample/run
@${MKDIR} ${CONFDIR}/imaps.sample/log
${INSTALL_SCRIPT} ${WRKSRC}/service/log/run ${CONFDIR}/imaps.sample/log
.endif
.endif
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
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>
|