pkgsrc/mail/imap-uw/Makefile

124 lines
3.9 KiB
Makefile
Raw Normal View History

2002-08-28 10:45:41 +02:00
# $NetBSD: Makefile,v 1.45 2002/08/28 08:45:41 jlam Exp $
* Updated to 2001.1 (2001a). * Updated buildlink.mk as the new version has some new #defines in the .h file (and e.g. pine won't build against the old version) Updated: 2 November 2001 imap-2001a is a maintenance release, consisting primarily of bugfixes including some critical bugfixes to crash and denial of service problems. Programs written for imap-2001 will build with this version without modification. The following new facilities have also been added: The new /norsh switch in mailbox names provides a more intuitive way of disabling rsh-IMAP than the existing :143 or setting the rsh-timeout to 0. Passwords are no longer returned in mm_dlog() callbacks unless the application sets the SET_DEBUGSENSITIVE parameter. The SET_NETFSSTATBUG parameter allows an application to force the traditional UNIX mailbox driver to close and reopen the mailbox at ping time. This is EXTREMELY inefficient, and should only be used to access files stored on AFS and old NFS systems. The ISO 8859 and Windows conversion tables have been updated to comply with Unicode 3.1, and the KOI8-R table has been verified as compliant with Unicode 3.1. The SPECIALS mechanism for passing parameters to the lowest level Makefile has been updated to be more general. See the next item for why you might care. New lrh port to build on Red Hat Linux 7.2, with pre-set definitions for the places where Red Hat has placed Kerberos and SSL. It's actually just the lnp port with SPECIALS defined accordingly. You may want to use it as a model if your system needs such definitions. Note that SPECIALS is primarily for IMAP toolkit (and Pine) purposes, and that user settings should use EXTRASPECIALS instead.
2001-12-15 09:30:26 +01:00
DISTNAME= imap-2001a
PKGNAME= imap-uw-2001.1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.cac.washington.edu/imap/
EXTRACT_SUFX= .tar.Z
MAINTAINER= hubertf@netbsd.org
HOMEPAGE= http://www.washington.edu/imap/
COMMENT= University of Washington's IMAP, POP2, and POP3 servers
2002-08-28 10:45:41 +02:00
USE_BUILDLINK2= # defined
USE_LIBTOOL= # defined
Update imap-uw to 4.7c2. The most notable user-visible change is the ability of the ipopd daemon to forward requests to the imapd daemon, thus allowing POP2 and POP3 mail clients to check IMAP mail. Most notable operational changes from earlier versions: . New, faster mailbox update logic is now available for the unix driver on UNIX and Amiga. The old way is still being done for MMDF and the unixnt driver on NT. . External file locking is now available via a setgid mail program named /etc/mlock (this is defined by LOCKPGM in the c-client Makefile). If c-client is unable to create a <mailbox>.lock file in the directory by itself, it will try to call mlock to do it. A sample mlock program is part of the imap-utils. This is primarily for the benefit of those paranoid souls who have their mail spool directories protected 775 instead of the recommended 1777. . SASL authentication is supported in the IMAP and POP3 servers, and in the IMAP, POP3, and SMTP client code. There is no support for NNTP SASL yet . CRAM-MD5 is supported by default for IMAP and POP3 clients. To enable server support, read file imap-4.7/docs/md5.txt . The mbox driver is now enabled by default. If the file "mbox" exists on the user's home directory and is in UNIX mailbox format, then when INBOX is opened this file will be selected as INBOX instead of the mail spool file. Messages will be automatically transferred from the mail spool file into the mbox file To disable this behavior, delete "mbox" from the EXTRADRIVERS list in the top-level Makefile and rebuild . IMAP4rev1 protocol is now supported. The UNIX format support now maintains unique identifiers (UIDs) and keyword flags for each message, and keeps an invisible message at the start of the file which contains the UID base information and a list of assigned keywords. There is no way to disable this behavior, since it would disable IMAP4rev1 support. This message may show up if you access the mailbox as a file using older mail software (e.g. Pine 3.9x). It is invisible with IMAP or POP access, or with access as a file using Pine 4.0x. . Support for additional mailbox formats . No longer keeps entire mailbox in memory for UNIX format files . Multilingual searching of the following charsets are supported: US-ASCII, UTF-8, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, KOI8-R, KOI8-U (alias KOI8-RU), TIS-620, VISCII, ISO-2022-JP, ISO-2022-KR, ISO-2022-CN, ISO-2022-JP-1, ISO-2022-JP-2, GB2312 (alias CN-GB), CN-GB-12345, BIG5 (alias CN-BIG5), EUC-JP, EUC-KR, Shift_JIS All ISO-2022-?? charsets are treated identically, and support ASCII, JIS Roman, hankaku katakana, ISO-8859-[1 - 10], TIS, GB 2312, JIS X 0208, JIS X 0212, KSC 5601, and planes 1 and 2 of CNS 11643. EUC-JP includes support for JIS X 0212 and hankaku katakana . Fast sorting including IMAP server-based sort . Fast ordered-subject threading including IMAP server-based threading
2000-05-19 05:58:55 +02:00
2002-08-28 10:45:41 +02:00
INST_PROG= ${PKGLIBTOOL} ${INSTALL_PROGRAM}
INST_LIB= ${PKGLIBTOOL} ${INSTALL_DATA}
INC_DIR= ${PREFIX}/include/c-client
LIB_DIR= ${PREFIX}/lib
Update imap-uw to 4.7c2. The most notable user-visible change is the ability of the ipopd daemon to forward requests to the imapd daemon, thus allowing POP2 and POP3 mail clients to check IMAP mail. Most notable operational changes from earlier versions: . New, faster mailbox update logic is now available for the unix driver on UNIX and Amiga. The old way is still being done for MMDF and the unixnt driver on NT. . External file locking is now available via a setgid mail program named /etc/mlock (this is defined by LOCKPGM in the c-client Makefile). If c-client is unable to create a <mailbox>.lock file in the directory by itself, it will try to call mlock to do it. A sample mlock program is part of the imap-utils. This is primarily for the benefit of those paranoid souls who have their mail spool directories protected 775 instead of the recommended 1777. . SASL authentication is supported in the IMAP and POP3 servers, and in the IMAP, POP3, and SMTP client code. There is no support for NNTP SASL yet . CRAM-MD5 is supported by default for IMAP and POP3 clients. To enable server support, read file imap-4.7/docs/md5.txt . The mbox driver is now enabled by default. If the file "mbox" exists on the user's home directory and is in UNIX mailbox format, then when INBOX is opened this file will be selected as INBOX instead of the mail spool file. Messages will be automatically transferred from the mail spool file into the mbox file To disable this behavior, delete "mbox" from the EXTRADRIVERS list in the top-level Makefile and rebuild . IMAP4rev1 protocol is now supported. The UNIX format support now maintains unique identifiers (UIDs) and keyword flags for each message, and keeps an invisible message at the start of the file which contains the UID base information and a list of assigned keywords. There is no way to disable this behavior, since it would disable IMAP4rev1 support. This message may show up if you access the mailbox as a file using older mail software (e.g. Pine 3.9x). It is invisible with IMAP or POP access, or with access as a file using Pine 4.0x. . Support for additional mailbox formats . No longer keeps entire mailbox in memory for UNIX format files . Multilingual searching of the following charsets are supported: US-ASCII, UTF-8, ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, KOI8-R, KOI8-U (alias KOI8-RU), TIS-620, VISCII, ISO-2022-JP, ISO-2022-KR, ISO-2022-CN, ISO-2022-JP-1, ISO-2022-JP-2, GB2312 (alias CN-GB), CN-GB-12345, BIG5 (alias CN-BIG5), EUC-JP, EUC-KR, Shift_JIS All ISO-2022-?? charsets are treated identically, and support ASCII, JIS Roman, hankaku katakana, ISO-8859-[1 - 10], TIS, GB 2312, JIS X 0208, JIS X 0212, KSC 5601, and planes 1 and 2 of CNS 11643. EUC-JP includes support for JIS X 0212 and hankaku katakana . Fast sorting including IMAP server-based sort . Fast ordered-subject threading including IMAP server-based threading
2000-05-19 05:58:55 +02:00
DOC_DIR= ${PREFIX}/share/doc/imap-uw
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
ALL_TARGET= gso
2002-06-21 16:13:36 +02:00
.elif ${OPSYS} == "Linux"
2002-07-28 07:38:46 +02:00
ALL_TARGET= lrh
.elif ${OPSYS} == "Darwin"
ALL_TARGET= osx
.else
ALL_TARGET= neb
.endif
BUILD_DEFS+= IMAP_UW_CCLIENT_MBOX_FMT IMAP_UW_NO_CLEARTEXT
CCLIENT_INCS= c-client.h env.h env_unix.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 pop3.h rfc822.h smtp.h \
tcp.h utf8.h
CCLIENT_LIB= libc-client.la
CCLIENT_PICLIB= libc-client_pic.a
CCLIENT_MAJOR= 4
CCLIENT_MINOR= 1
CCLIENT_MFILES= src/imapd/Makefile \
src/ipopd/Makefile \
src/mtest/Makefile \
src/osdep/unix/Makefile
PLIST_SUBST+= CCLIENT_MAJOR="${CCLIENT_MAJOR}"
PLIST_SUBST+= CCLIENT_MINOR="${CCLIENT_MINOR}"
MANFILES= src/imapd/imapd.8c src/ipopd/ipopd.8c
MAKE_ENV+= SSLDIR="${SSLBASE}"
MAKE_ENV+= SSLCERTS="${SSLCERTS}"
MAKE_ENV+= CCLIENT_MAJOR="${CCLIENT_MAJOR}"
MAKE_ENV+= CCLIENT_MINOR="${CCLIENT_MINOR}"
MAKE_ENV+= CREATEPROTO=${IMAP_UW_CCLIENT_MBOX_FMT}proto
2002-08-28 10:45:41 +02:00
ALL_TARGET+= CC="${PKGLIBTOOL} ${CC}"
2000-12-17 19:25:43 +01:00
ALL_TARGET+= EXTRACFLAGS="${CFLAGS}"
ALL_TARGET+= EXTRALDFLAGS="${LDFLAGS}"
.if defined(IMAP_UW_NO_CLEARTEXT) && ${IMAP_UW_NO_CLEARTEXT} == "YES"
ALL_TARGET+= SSLTYPE="nopwd"
.elif !defined(IMAP_UW_NO_SSL) || ${IMAP_UW_NO_SSL} != "YES"
2000-12-17 19:25:43 +01:00
ALL_TARGET+= SPECIALAUTHENTICATORS="ssl"
ALL_TARGET+= SSLTYPE="unix"
.endif
post-extract:
#
# Change references to the built library to ${CCLIENT_LIB}.
#
cd ${WRKSRC}; for file in ${CCLIENT_MFILES}; do \
${MV} -f $${file} $${file}.orig; \
${SED} -e "s|c-client.a|${CCLIENT_LIB}|g" \
$${file}.orig > $${file}; \
${RM} -f $${file}.orig; \
done
#
# Correct hardcoded paths in man pages.
#
cd ${WRKSRC}; for file in ${MANFILES}; do \
f=`echo $${file} | ${SED} "s|\(.*\)\.\([0-9]\).*|\1.\2|"`; \
${SED} -e "s|/usr/etc/imapd|${PREFIX}/libexec/imapd|g" \
-e "s|/etc/rimapd|${PREFIX}/sbin/rimapd|g" \
-e "s|/usr/etc/ipop2d|${PREFIX}/libexec/ipop2d|g" \
-e "s|/usr/etc/ipop3d|${PREFIX}/libexec/ipop3d|g" \
$${file} > $${f}; \
done
# Generate _pic.a library from shared objects.
#
post-build:
2002-08-28 10:45:41 +02:00
cd ${WRKSRC}/c-client; \
${PKGLIBTOOL} ${CC} -o ${CCLIENT_PICLIB:.a=.la} *.lo
do-install:
${INSTALL_DATA_DIR} ${INC_DIR}
cd ${WRKSRC}/c-client; ${INSTALL_DATA} ${CCLIENT_INCS} ${INC_DIR}
${INST_LIB} ${WRKSRC}/c-client/${CCLIENT_LIB} ${LIB_DIR}
${INSTALL_DATA} ${WRKSRC}/c-client/.libs/${CCLIENT_PICLIB} ${LIB_DIR}
${RANLIB} ${LIB_DIR}/${CCLIENT_PICLIB}
cd ${LIB_DIR}; for file in libc-client.*; do \
f=`echo $${file} | ${SED} "s|libc-client|libimapuw|g"`; \
${TEST} -f $${file} && ${LN} -sf $${file} $${f}; \
done
${INST_PROG} ${WRKSRC}/imapd/imapd ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/ipopd/ipop2d ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/ipopd/ipop3d ${PREFIX}/libexec
${INST_PROG} ${WRKSRC}/mtest/mtest ${PREFIX}/sbin
${LN} -sf ../libexec/imapd ${PREFIX}/sbin/rimapd
${INSTALL_MAN} ${WRKSRC}/src/imapd/imapd.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/src/ipopd/ipopd.8 ${PREFIX}/man/man8
${LN} -sf ipopd.8 ${PREFIX}/man/man8/ipop2d.8
${LN} -sf ipopd.8 ${PREFIX}/man/man8/ipop3d.8
${CP} -R ${WRKSRC}/docs ${DOC_DIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOC_DIR}
${CHMOD} -R a=rX ${DOC_DIR}
.if !defined(IMAP_UW_NO_SSL) || ${IMAP_UW_NO_SSL} != "YES"
2002-08-28 10:45:41 +02:00
.include "../../security/openssl/buildlink2.mk"
.endif
.include "../../mk/bsd.pkg.mk"