pkgsrc/mail/pine/Makefile

96 lines
3.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.79 2003/09/28 09:13:57 jlam Exp $
1997-11-22 06:27:54 +01:00
Update "pine" package to version 4.58. Changes since version 4.56: - Fixed crash when processing subjects containing "[Fwd: ...]" - Work around a problem with the Netscape Collabra NNTP server implementation of the OVER command - Try to correct for mail clients that wrongly use RFC 2047 instead of RFC 2231 to encode their attachment filename parameters, which confuses attachment saving and viewing of filenames of non-ASCII character sets. - Fixed potential security problems caused by maliciously-formed RFC 2231 attachment parameters - Index lines displayed incorrectly for messages with empty subject lines in threads - Command-line argument -create_lu was broken in versions 4.55 and 4.56 - Delivery Status Notifications were broken when attempting to do SMTP over TLS - Pine hangs when adding an Extra Header in rules with BdyText line at top of screen - Possible crash if quell-content-id feature is on and a message with more than one attachment is rejected by the SMTP server - When an attached filetype was set by matching the extension, the MIME charset wasn't being set - predict-nntp-server didn't preserve flagged options for nntp-server such as /ssl or /user - PC-Pine disconnected mailbox icon stays yellow even after reconnecting - PC-Pine with the Microsoft SSL bug was crashing when doing bounce, save, and full headers, which can now be prevented by setting the quell-ssl-largeblocks feature - PC-Pine with the Microsoft SSL bug was crashing when doing bounce, save, and full headers, which can now be prevented by setting the quell-ssl-largeblocks feature
2003-09-12 15:53:47 +02:00
DISTNAME= pine4.58
PKGNAME= pine-4.58
1997-11-22 06:27:54 +01:00
CATEGORIES= mail news
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/ \
ftp://ftp.fu-berlin.de/unix/mail/pine/
EXTRACT_SUFX= .tar.bz2
1997-11-22 06:27:54 +01:00
2003-07-17 23:41:05 +02:00
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.washington.edu/pine/
COMMENT= Program for Internet News and E-mail
1997-11-22 06:27:54 +01:00
2001-06-05 00:22:43 +02:00
LICENSE= pine-license
BUILD_DEFS+= PINE_USE_LDAP
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
CONF_FILES= ${PREFIX}/share/examples/pine/pine.conf ${PKG_SYSCONFDIR}/pine.conf
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
BUILDNAME= so5
BUILDFILE= sol
.elif ${OPSYS} == "Linux"
BUILDNAME= lnx
BUILDFILE= lnx
.elif ${OPSYS} == "Darwin"
BUILDNAME= osx
BUILDFILE= osx
.else
BUILDNAME= neb
BUILDFILE= neb
.endif
2002-10-09 01:31:01 +02:00
.if defined(PINE_USE_LDAP) && (${PINE_USE_LDAP} == "YES")
. include "../../databases/openldap/buildlink2.mk"
LDAPCFLAGS= LDAPCFLAGS="-DENABLE_LDAP"
LDAPLIBS= LDAPLIBS="-lldap -llber"
.endif
pre-patch:
# Make sure the imap lib that comes with pine isn't
# used (see http://www.securityfocus.com/advisories/2646)
2000-10-22 00:45:28 +02:00
${RM} -fr ${WRKSRC}/imap
do-configure:
${CP} -f ${WRKSRC}/pine/osdep/os-${BUILDFILE}.h ${WRKSRC}/pine/osdep/os-${BUILDFILE}.h.orig
${SED} \
-e 's@/usr/local/lib/@${PKG_SYSCONFDIR}/@' \
-e 's@DEFAULT_DEBUG.*2@DEFAULT_DEBUG 0@' \
<${WRKSRC}/pine/osdep/os-${BUILDFILE}.h.orig >${WRKSRC}/pine/osdep/os-${BUILDFILE}.h
@${RM} -rf ${WRKSRC}/pico
2002-10-09 01:31:01 +02:00
@${LN} -sf ${BUILDLINK_DIR}/include/pico ${WRKSRC}/pico
1997-11-22 06:41:33 +01:00
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build ${BUILDNAME} \
${LDAPCFLAGS} ${LDAPLIBS} \
2002-10-09 01:31:01 +02:00
PREFIX=${PREFIX} \
CC="${BUILDLINK_CC} ${CFLAGS} ${LDFLAGS}"
1997-11-22 06:41:33 +01:00
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/pine ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/bin/rpdump ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/bin/rpload ${PREFIX}/bin/
${INSTALL_SCRIPT} ${FILESDIR}/pgpencrypt ${PREFIX}/bin/
${INSTALL_SCRIPT} ${FILESDIR}/pgpdecode ${PREFIX}/bin/
${INSTALL_SCRIPT} ${FILESDIR}/pgpsign ${PREFIX}/bin/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pine
${INSTALL_DATA} ${FILESDIR}/dot.pinerc.pgp.sample ${PREFIX}/share/examples/pine/dot.pinerc.pgp
${INSTALL_MAN} ${WRKSRC}/doc/pine.1 ${PREFIX}/man/man1/pine.1
( ${ECHO} '# (This file is not part of the pine distribution! - HF)' ; \
${PREFIX}/bin/pine -conf ) | ${SED} \
1997-11-22 06:41:33 +01:00
-e 's|^\(use-only-domain-name\)=.*$$|\1=No|g' \
-e 's|^\(feature-list\)=.*$$|\1=enable-mail-check-cue,enable-suspend,expanded-view-of-addressbooks,include-header-in-reply,include-text-in-reply,show-selected-in-boldface,signature-at-bottom|g' \
-e 's|^\(sort-key\)=.*$$|\1=Arrival/Reverse|g' \
>${PREFIX}/share/examples/pine/pine.conf
${INSTALL_DATA} ${FILESDIR}/pine.conf.fixed ${PREFIX}/share/examples/pine/
Update to 4.30. Fixes another security hole... Full list of changes: * Configuration flexibility + pine configurations can now be stored remotely on an imap server for access from different locations without the need to configure for each location. + configuration may be split into two parts: generic configuration and exceptional, per-platform configuration. + signatures can now be stored remotely or as part of the pinerc file + for configuration options which are lists, inheritance is supported * New security features + SSL support for Unix Pine (source code only) + SSL enhancements for PC-Pine * Minor rule enhancements + status of a message (New, Deleted, etc.) can now be used as criteria for pattern matching. + "move-only-if-not-deleted" option in filtering to lessen the chance of messages being filtered more than once when running multiple pine sessions. + ability to set arbitrary headers in roles. + news filtering made more efficient. * Basic threaded sorting (Expanded functionality to be added in a future version). * Enhanced MAPI support for PC-Pine * Various other new features and configuration options + alternate-compose-menu + by-replyto for saved-msg-name-rule + check-newmail-when-quitting + continue-tab-without-confirm + expose-hidden-config + expunge-only-manually + incoming-startup-rule additions + literal-signature + mark-for-cc + prefer-plain-text + pruning-rule, for monthly sent-mail renaming and deleting + quell-extra-post-prompt + hidden feature allow-changing-from defaults to on * New command line options: + -p , pinerc can now refer to a remote mailbox which contains the configuration file + -x , is how you override your default pinerc settings with exceptions for a particular platform, may be local or remote + -aux , allows you to tell Pine the local directory to use for auxiliary files when pinerc is remote (PC-Pine only) + -copy_pinerc and -copy_abook options + -v option Bugs that have been addressed in this release include: * Incoming mail with an extremely long From address can cause a buffer overflow on the stack (security) * X-Keywords crash for unix formatted mailboxes * Composer word wrapping needlessly wraps words * New messages appear in zoomed view * "Bad msgno 0" filtering crash * "+" during login doesn't always mean that SSL is being used * news filtering refilters messages that had already been filtered * Goto and Save can't access folders that are readable but not listable * Goto doesn't allow access of folders outside of a Collection List * PC-Pine SSL functionality broken in Windows 2000/Millennium * FromOrTo and To in index-format don't work for newsgroups * Sorting by score doesn't always work * Viewing of very large messages uses more memory than is need * Loss of body for reply to multipart/signed mime messages * Pine crashes when replying to or forwarding messages with certain types of attachments * Brackets are falsely recognized as url characters * Crash when enclosing options in quotes for PC-Pine * Newsgroup posting doesn't allow posting to additional news servers
2000-11-09 04:37:26 +01:00
${INSTALL_DATA_DIR} ${PREFIX}/share/pine
${INSTALL_DATA_DIR} ${PREFIX}/share/pine/contrib
${INSTALL_DATA_DIR} ${PREFIX}/share/pine/contrib/utils
${INSTALL_DATA} ${WRKSRC}/doc/tech-notes.txt ${PREFIX}/share/pine/
${INSTALL_DATA} ${WRKSRC}/contrib/krb5-setup ${PREFIX}/share/pine/contrib
${INSTALL_DATA} ${WRKSRC}/contrib/ldap-setup ${PREFIX}/share/pine/contrib
${INSTALL_DATA} ${WRKSRC}/contrib/utils/* ${PREFIX}/share/pine/contrib/utils
${CHMOD} +x ${PREFIX}/share/pine/contrib/utils/*.sh
1997-11-22 06:27:54 +01:00
.include "../../devel/ncurses/buildlink2.mk"
2002-10-09 01:31:01 +02:00
.include "../../editors/pico/buildlink2.mk"
.include "../../mail/imap-uw/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"