pkgsrc/mail/qmail-qfilter/Makefile
fhajny 9a7d622e2e Use REAL_ROOT_USER/REAL_ROOT_GROUP instead of ROOT_USER/ROOT_GROUP
for all pkgsrc dir/file ownership rules. Fixes unprivileged
user/group names from leaking into binary packages, manifest as
non-fatal chown/chgrp failure messages at pkg_add time.

Bump respective packages' PKGREVISION.
2016-05-17 10:32:06 +00:00

48 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.23 2016/05/17 10:32:07 fhajny Exp $
#
DISTNAME= qmail-qfilter-2.1
PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/qmail-qfilter/
COMMENT= Multi-filter front end for qmail-queue
LICENSE= gnu-gpl-v2
DEPENDS+= qmail>=1.03nb9:../../mail/qmail
PKG_DESTDIR_SUPPORT= destdir
OWN_DIRS_PERMS+= ${QMAIL_QFILTER_TMPDIR} qmaild ${REAL_ROOT_GROUP} 700
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|/tmp|${QMAIL_QFILTER_TMPDIR}|g'
SUBST_SED.paths+= -e 's|/var/qmail|${QMAILDIR}|g'
SUBST_MESSAGE.paths= Fixing paths.
INSTALLATION_DIRS= bin man ${PKGMANDIR}/man1 share/examples/qmail-qfilter
INSTALL_ENV+= install_prefix=${DESTDIR:Q}
BUILD_DEFS+= QMAILDIR QMAIL_QFILTER_TMPDIR
DJB_RESTRICTED= NO
DJB_MAKE_TARGETS= NO
.include "../../mk/bsd.prefs.mk"
post-install:
for i in ${REPLACE_PERL}; do \
${INSTALL_SCRIPT} ${WRKSRC}/$${i} \
${DESTDIR}${PREFIX}/share/examples/qmail-qfilter; \
done
.include "../../devel/bglibs/buildlink3.mk"
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"