pkgsrc/mail/qmail-qfilter/Makefile

44 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2021/01/01 15:07:59 schmonz Exp $
#
DISTNAME= qmail-qfilter-2.1
PKGREVISION= 6
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://untroubled.org/qmail-qfilter/
COMMENT= Multi-filter front end for qmail-queue
LICENSE= gnu-gpl-v2
DEPENDS+= qmail>=1.03nb9:../../mail/qmail
REPLACE_PERL= samples/block-long-dates \
samples/deny-filetypes \
samples/rename-filetypes
SUBST_CLASSES+= paths
SUBST_STAGE.paths= do-configure
SUBST_FILES.paths= qmail-qfilter.c
SUBST_SED.paths+= -e 's|/var/qmail|${QMAILDIR}|g'
SUBST_MESSAGE.paths= Fixing paths.
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/qmail-qfilter
BUILD_DEFS+= QMAILDIR
DJB_MAKE_TARGETS= NO
.include "../../mk/bsd.prefs.mk"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qmail-qfilter \
${DESTDIR}${PREFIX}/bin
for i in ${REPLACE_PERL}; do \
${INSTALL_SCRIPT} ${WRKSRC}/$${i} \
${DESTDIR}${PREFIX}/share/examples/qmail-qfilter; \
done
${INSTALL_MAN} ${WRKSRC}/qmail-qfilter.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"