1997-01-09 21:38:36 -05:00
|
|
|
# New ports collection makefile for: imap-uw
|
|
|
|
# Date created: 9 Jan 1997
|
|
|
|
# Whom: pst
|
|
|
|
#
|
1999-08-25 02:51:17 -04:00
|
|
|
# $FreeBSD$
|
1997-01-09 21:38:36 -05:00
|
|
|
#
|
|
|
|
|
2001-02-12 01:42:58 -05:00
|
|
|
PORTNAME= imap
|
2001-04-04 23:21:41 -04:00
|
|
|
PORTVERSION= 0104031813
|
1997-01-09 21:38:36 -05:00
|
|
|
CATEGORIES= mail
|
2000-12-12 09:05:11 -05:00
|
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/%SUBDIR%/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.cac.washington.edu/mail/%SUBDIR%/ \
|
|
|
|
http://mirror.nucba.ac.jp/mirror/imap/%SUBDIR%/ \
|
|
|
|
ftp://ftp.uni-halle.de/pub/mail/pine/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= . old
|
2001-02-12 01:42:58 -05:00
|
|
|
PKGNAMESUFFIX= -uw
|
2001-04-04 23:21:41 -04:00
|
|
|
DISTNAME= imap-2001.BETA.SNAP-${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}.tar.Z imap-utils.tar.Z
|
1997-01-09 21:38:36 -05:00
|
|
|
|
2001-04-04 23:21:41 -04:00
|
|
|
MAINTAINER= ports@freebsd.org
|
1997-01-09 21:38:36 -05:00
|
|
|
|
2000-12-18 04:55:11 -05:00
|
|
|
LIB_DEPENDS= c-client4.8:${PORTSDIR}/mail/cclient
|
2001-03-22 22:04:16 -05:00
|
|
|
.if defined(WITH_DRAC)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
|
|
|
|
.endif
|
2001-04-04 23:21:41 -04:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
2000-07-17 04:47:13 -04:00
|
|
|
|
1997-01-10 00:18:07 -05:00
|
|
|
MAN8= ipopd.8 imapd.8
|
2001-04-04 23:21:41 -04:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
ALL_TARGET= bsf SSLTYPE=unix
|
|
|
|
.else
|
2001-02-12 01:42:58 -05:00
|
|
|
ALL_TARGET= bsf
|
2001-04-04 23:21:41 -04:00
|
|
|
.endif
|
1997-01-09 21:38:36 -05:00
|
|
|
|
1998-11-14 04:43:39 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-04-21 18:11:47 -04:00
|
|
|
pre-extract:
|
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
2000-10-08 06:23:48 -04:00
|
|
|
@${SH} ${PKGINSTALL} foo PRE-INSTALL || ${FALSE}
|
2000-04-21 18:11:47 -04:00
|
|
|
.endif
|
|
|
|
|
1999-12-24 21:29:04 -05:00
|
|
|
post-build:
|
|
|
|
@(cd ${WRKDIR}/mlock; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} all)
|
1997-05-03 23:17:41 -04:00
|
|
|
|
1997-01-09 21:38:36 -05:00
|
|
|
do-install:
|
1997-01-12 11:10:38 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
|
1999-12-24 21:29:04 -05:00
|
|
|
${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g mail -m 2711 \
|
|
|
|
${WRKDIR}/mlock/mlock ${PREFIX}/libexec
|
1997-01-12 11:10:38 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mtest/mtest ${PREFIX}/bin/mboxtest
|
|
|
|
${INSTALL_MAN} \
|
1997-01-09 21:38:36 -05:00
|
|
|
${WRKSRC}/src/imapd/imapd.8c ${PREFIX}/man/man8/imapd.8
|
1997-01-12 11:10:38 -05:00
|
|
|
${INSTALL_MAN} \
|
1997-01-09 21:38:36 -05:00
|
|
|
${WRKSRC}/src/ipopd/ipopd.8c ${PREFIX}/man/man8/ipopd.8
|
1997-12-06 20:02:52 -05:00
|
|
|
|
2001-04-04 17:52:19 -04:00
|
|
|
post-install:
|
2001-04-04 23:21:41 -04:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.if defined(WITH_DRAC)
|
2001-03-22 22:04:16 -05:00
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
@${ECHO} "To have DRAC working, you must create ${PREFIX}/etc/dracd.host, containing"
|
|
|
|
@${ECHO} "the hostname of the DRAC server:"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "localhost"
|
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
.endif
|
2001-04-04 23:21:41 -04:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
@${ECHO} "To create and install a new SSL certificate for imapd and ipop3d, type \"make"
|
|
|
|
@${ECHO} "cert\"."
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Example inetd config for the SSL services:"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "pop3s stream tcp nowait root /usr/local/libexec/ipop3d ipop3d"
|
|
|
|
@${ECHO} "imaps stream tcp nowait root /usr/local/libexec/imapd imapd"
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Remember to recompile and reinstall your cclient port with SSL support too, if"
|
|
|
|
@${ECHO} "you had it installed without SSL support."
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "================================================================================"
|
|
|
|
.endif
|
2001-03-22 22:04:16 -05:00
|
|
|
|
2001-04-04 23:21:41 -04:00
|
|
|
cert:
|
|
|
|
@${INSTALL} -d -o root -g wheel -m 0755 ${PREFIX}/certs
|
|
|
|
@openssl req -new -x509 -days 365 -nodes -config ${FILESDIR}/imap-uw.cnf -out ${PREFIX}/certs/imapd.pem -keyout ${PREFIX}/certs/imapd.pem
|
|
|
|
@openssl x509 -subject -dates -fingerprint -noout -in ${PREFIX}/certs/imapd.pem
|
|
|
|
@${CHMOD} 700 ${PREFIX}/certs/imapd.pem
|
|
|
|
@${LN} -s ${PREFIX}/certs/imapd.pem ${PREFIX}/certs/ipop3d.pem
|
2001-02-12 01:42:58 -05:00
|
|
|
|
1998-11-14 04:43:39 -05:00
|
|
|
.include <bsd.port.post.mk>
|