diff options
author | heinz <heinz> | 2010-01-09 22:20:31 +0000 |
---|---|---|
committer | heinz <heinz> | 2010-01-09 22:20:31 +0000 |
commit | 4adbc8c07522f5b68d79fe63b298d44887a4806f (patch) | |
tree | 2eb4f36096b0b587e31540dcd3910910c27b9ec8 /mail | |
parent | 809c746773d942d6a62bd1dff222597feb0501fd (diff) | |
download | pkgsrc-4adbc8c07522f5b68d79fe63b298d44887a4806f.tar.gz |
Fixed building with DESTDIR:
Special permissions for filterctl and courierfilter have to be applied
in an install script at installation time.
Actions for the post-install target forgot to propagate DESTDIR
appropriately as a make parameter.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/courier-mta/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/courier-mta/Makefile b/mail/courier-mta/Makefile index 1f0af5aca71..a9cd6c8b74e 100644 --- a/mail/courier-mta/Makefile +++ b/mail/courier-mta/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2010/01/04 16:27:48 joerg Exp $ +# $NetBSD: Makefile,v 1.28 2010/01/09 22:20:31 heinz Exp $ DISTNAME= courier-${COURIER_VERSION} PKGNAME= ${DISTNAME:S/-/-mta-/} @@ -90,6 +90,10 @@ SUBST_STAGE.paths= post-patch REPLACE_PERL+= courier/webadmin/*.pl courier/webadmin/*.pl.in webadmin/*.pl +SPECIAL_PERMS+= ${DATADIR}/filterctl ${COURIER_USER} ${COURIER_GROUP} 0500 +SPECIAL_PERMS+= ${PREFIX}/sbin/courierfilter ${COURIER_USER} \ + ${COURIER_GROUP} 0500 + .include "../../lang/perl5/buildlink3.mk" .include "../../security/courier-authlib/buildlink3.mk" @@ -101,12 +105,8 @@ post-build: post-install: cd ${WRKSRC}/courier && \ - ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install-permissions - ${CHOWN} ${COURIER_USER}:${COURIER_GROUP} \ - ${DESTDIR}${DATADIR}/filterctl \ - ${DESTDIR}${PREFIX}/sbin/courierfilter - ${CHMOD} 0500 ${DESTDIR}${DATADIR}/filterctl \ - ${DESTDIR}${PREFIX}/sbin/courierfilter + ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \ + DESTDIR=${DESTDIR} install-permissions ${INSTALL_DATA} ${WRKDIR}/mailer.conf ${DESTDIR}${EGDIR} ${INSTALL_DATA} ${WRKDIR}/locallowercase \ ${DESTDIR}${EGDIR}/locallowercase |