pkgsrc/mail/procmail/Makefile

48 lines
1.3 KiB
Makefile
Raw Normal View History

# $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
1998-02-28 00:53:08 +01:00
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
2000-08-03 16:42:29 +02:00
${SH} ${WRKSRC}/suid.sh
.endif
.include "../../mk/bsd.pkg.mk"