pkgsrc/mail/procmail/Makefile
wiz 1a716ffad8 Update to 3.21. Changes:
- Incorrect prototype broke compilation on Tru64 UNIX
   - INCLUDERC was broken by trying to be fancy and not fully
     succeeding when support for multiple -a options was added
Also set USE_BUILDLINK_ONLY.
2001-06-30 09:33:20 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2001/06/30 09:33:20 wiz Exp $
#
DISTNAME= procmail-3.21
CATEGORIES= mail
MASTER_SITES= ftp://ftp.procmail.org/pub/procmail/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.procmail.org/
COMMENT= Local mail delivery agent
INSTALL_TARGET= install-suid install.man
MAKE_ENV= SHELL=/bin/sh
USE_BUILDLINK_ONLY= YES
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= PROCMAIL_MAILSPOOLHOME PROCMAIL_TRUSTED_IDS
PROCMAIL_TRUSTED_IDS?=\
"root","daemon","uucp","mail","x400","network","list","slist","lists","news",0
pre-configure:
${ECHO} "#define TRUSTED_IDS {${PROCMAIL_TRUSTED_IDS:Q}}" \
>> ${WRKSRC}/config.h
.ifdef(PROCMAIL_MAILSPOOLHOME)
${ECHO} "#define MAILSPOOLHOME \"/${PROCMAIL_MAILSPOOLHOME}\"" \
>> ${WRKSRC}/src/authenticate.h
.endif
.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"