2007-10-31 09:53:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.56 2007/10/31 13:53:56 ajacoutot Exp $
|
1999-12-05 08:39:57 -05:00
|
|
|
|
2007-09-15 20:17:04 -04:00
|
|
|
COMMENT-server= University of Washington IMAP4rev1/POP2/POP3 mail servers
|
|
|
|
COMMENT-mailutil= University of Washington IMAP4rev1/POP2/POP3 mail utility
|
2007-10-30 06:12:41 -04:00
|
|
|
COMMENT-c-client= University of Washington's c-client mail access routines
|
2000-11-01 13:41:35 -05:00
|
|
|
|
2007-10-30 06:12:41 -04:00
|
|
|
BASEVER= 2006j
|
|
|
|
VERSION= ${BASEVER}2
|
|
|
|
DISTNAME= imap-${VERSION}
|
|
|
|
|
2007-10-31 09:53:56 -04:00
|
|
|
PKGNAME-server= imap-uw-${VERSION}p0
|
|
|
|
PKGNAME-mailutil= mailutil-uw-${VERSION}p0
|
|
|
|
PKGNAME-c-client= c-client-${VERSION}p0
|
2003-10-05 18:00:00 -04:00
|
|
|
|
2002-09-18 04:19:05 -04:00
|
|
|
CATEGORIES= mail
|
2007-10-30 06:12:41 -04:00
|
|
|
CATEGORIES-c-client= mail devel
|
|
|
|
|
|
|
|
SHARED_LIBS= c-client 5.0
|
2002-09-18 04:19:05 -04:00
|
|
|
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
1999-12-05 08:39:57 -05:00
|
|
|
|
2001-02-18 10:26:43 -05:00
|
|
|
HOMEPAGE= http://www.washington.edu/imap/
|
|
|
|
|
2007-10-30 06:12:41 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
1999-12-05 08:39:57 -05:00
|
|
|
|
2002-09-18 04:19:05 -04:00
|
|
|
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/ \
|
2007-01-01 16:25:20 -05:00
|
|
|
ftp://ftp.cac.washington.edu/imap/old/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/mail/imap/ \
|
|
|
|
ftp://ftp.sunet.se/pub/unix/mail/imap/old/
|
2001-09-24 18:01:49 -04:00
|
|
|
|
2007-10-19 07:30:37 -04:00
|
|
|
# Apache License 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-10-30 06:12:41 -04:00
|
|
|
|
2005-01-02 05:53:41 -05:00
|
|
|
WANTLIB= asn1 c com_err crypto des gssapi kafs krb5 ssl
|
2007-10-30 06:12:41 -04:00
|
|
|
WANTLIB-c-client=
|
2000-02-18 15:35:51 -05:00
|
|
|
|
2007-10-30 06:12:41 -04:00
|
|
|
WRKDIST= ${WRKDIR}/imap-${BASEVER}
|
1999-12-05 08:39:57 -05:00
|
|
|
ALL_TARGET= bso
|
2007-10-30 06:12:41 -04:00
|
|
|
SHLIB= libc-client.so.${LIBc-client_VERSION}
|
|
|
|
MAKE_FLAGS= EXTRACFLAGS="${CFLAGS}" EXTRAAUTHENTICATORS="gss" IP=6 \
|
|
|
|
SHLIB="${SHLIB}" SHLIBNAME=${SHLIB} CC="${CC}"
|
2002-06-24 04:31:33 -04:00
|
|
|
|
2007-10-30 06:12:41 -04:00
|
|
|
MULTI_PACKAGES= -server -mailutil -c-client
|
2006-12-02 05:35:56 -05:00
|
|
|
SUBPACKAGE?= -server
|
2002-09-18 04:19:05 -04:00
|
|
|
|
2002-11-29 14:07:47 -05:00
|
|
|
FLAVORS= plaintext
|
2002-06-24 04:31:33 -04:00
|
|
|
FLAVOR?=
|
2001-09-24 18:01:49 -04:00
|
|
|
|
2002-11-29 14:07:47 -05:00
|
|
|
.if ${FLAVOR:L:Mplaintext}
|
2002-06-24 04:31:33 -04:00
|
|
|
MAKE_FLAGS+= SSLTYPE="unix"
|
2002-11-29 14:07:47 -05:00
|
|
|
.else
|
|
|
|
MAKE_FLAGS+= SSLTYPE="unix.nopwd"
|
2002-06-24 04:31:33 -04:00
|
|
|
.endif
|
1999-12-05 08:39:57 -05:00
|
|
|
|
2002-10-27 12:21:39 -05:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2007-10-30 06:12:41 -04:00
|
|
|
HEADERS= c-client.h dummy.h env.h env_unix.h fdstring.h flockcyg.h \
|
|
|
|
flocksim.h flstring.h fs.h ftl.h imap4r1.h linkage.c linkage.h \
|
|
|
|
mail.h misc.h netmsg.h newsrc.h nl.h nntp.h osdep.h pseudo.h \
|
|
|
|
rfc822.h smtp.h sslio.h tcp.h tcp_unix.h unix.h utf8.h \
|
|
|
|
utf8aux.h
|
2002-07-07 11:22:24 -04:00
|
|
|
|
1999-12-05 08:39:57 -05:00
|
|
|
do-install:
|
2001-09-24 18:01:49 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
|
1999-12-05 08:39:57 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
|
2007-10-30 06:12:41 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mlock/mlock ${PREFIX}/libexec
|
2002-09-18 04:19:05 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dmail/dmail ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mailutil/mailutil ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tmail/tmail ${PREFIX}/bin
|
2004-07-18 18:19:03 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/imapd/imapd.8 ${PREFIX}/man/man8/imapd.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/ipopd/ipopd.8 ${PREFIX}/man/man8/ipopd.8
|
2002-09-18 06:28:14 -04:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/dmail/dmail.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/mailutil/mailutil.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/src/tmail/tmail.1 ${PREFIX}/man/man1
|
2007-10-30 06:12:41 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/imap-uw
|
2007-10-31 09:53:56 -04:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/imap-uw
|
|
|
|
@perl -pi -e 's,!!TRUEPREFIX!!,${TRUEPREFIX},' \
|
|
|
|
${PREFIX}/share/doc/imap-uw/README.OpenBSD
|
2007-10-30 06:12:41 -04:00
|
|
|
tar -C ${WRKSRC}/docs -cf - . | \
|
|
|
|
tar -C ${PREFIX}/share/doc/imap-uw -xf -
|
|
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/imap-uw
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include/c-client
|
|
|
|
cd ${WRKSRC}/c-client; ${INSTALL_DATA} ${HEADERS} \
|
|
|
|
${PREFIX}/include/c-client
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/c-client/c-client.a \
|
|
|
|
${PREFIX}/lib/libc-client.a
|
|
|
|
@if [ -f ${WRKSRC}/c-client/${SHLIB} ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/c-client/${SHLIB} ${PREFIX}/lib; \
|
|
|
|
fi
|
1999-12-05 08:39:57 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2007-10-30 06:12:41 -04:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:L} == "yes"
|
|
|
|
MAKE_ENV+= NO_SHARED_LIBS=Yes
|
|
|
|
.endif
|