pkgsrc/mail/procmail/Makefile
wiz 977bf50a02 Update to procmail-3.15, inspired by D'Arcy J.M. Cain.
Relevant changes:
- Rewrite folder type parsing: corrects handling of MH and maildir
  style spools
- v3.14 changed '!' actions too much: revert to v3.13 behavior but
  continue to split SENDMAILFLAGS
- Contents of skipped nested blocks could affect 'E', 'e', 'a', and
  'A' flags
- Prevent peeking into buffers on "Out of memory" errors
- Unquoted $\var expansions could alter the interpretation of the
  following whitespace
- Prevent attempts to set LINEBUF to really huge values
- Optimize SWITCHRC = $_
- Use a secure PATH when processing /etc/procmailrc
- Use 2^31-1 as the maximum score even when sizeof(long)>4
Changes to formail:
- Allow -n with -D and -s again -- corruption couldn't happen after
  all
- Don't strip pre-colon whitespace until header is identified
- Properly handle NULs in the body when generating an autoreply that
  keeps the body (could coredump)
General:
- Documented that $\var expansions are never split on whitespace
- Removed ':' and '@' from list of characters that can appear in
  tempfile names
- Called nice() when shouldn't have
2000-08-26 14:26:57 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.17 2000/08/26 14:26:57 wiz Exp $
# FreeBSD Id: Makefile,v 1.24 1997/05/14 14:40:34 ache Exp
#
DISTNAME= procmail-3.15
CATEGORIES= mail
MASTER_SITES= ftp://ftp.procmail.org/pub/procmail/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.procmail.org/
INSTALL_TARGET= install-suid install.man
MAKE_ENV= SHELL=/bin/sh
MESSAGE_FILE= ${WRKDIR}/MESSAGE
post-patch:
${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h-orig
${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' < ${WRKSRC}/config.h-orig \
> ${WRKSRC}/config.h
${MV} ${WRKSRC}/man/procmail.man ${WRKSRC}/man/procmail.man-orig
${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' \
< ${WRKSRC}/man/procmail.man-orig \
> ${WRKSRC}/man/procmail.man
pre-install:
${SED} -e 's,@PREFIX@,${PREFIX},g' ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
do-install:
cd ${WRKSRC}/new; \
for f in procmail formail lockfile; do \
${INSTALL_PROGRAM} $$f ${LOCALBASE}/bin/$$f; \
done; \
${INSTALL_SCRIPT} mailstat ${LOCALBASE}/bin/mailstat; \
for f in procmail.1 formail.1 lockfile.1; do \
${INSTALL_MAN} $$f ${LOCALBASE}/man/man1/$$f; \
done; \
for f in procmailex.5 procmailrc.5 procmailsc.5; do \
${INSTALL_MAN} $$f ${LOCALBASE}/man/man5/$$f; \
done
${SH} ${WRKSRC}/suid.sh
.endif
.include "../../mk/bsd.pkg.mk"