From d583150ed0d82a837fefd9558f040fe4530536c3 Mon Sep 17 00:00:00 2001 From: obache Date: Fri, 26 Apr 2013 12:41:44 +0000 Subject: skip chown/chmod with empty user/group speficication, and user-destdir support. --- sysutils/bacula/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sysutils/bacula') diff --git a/sysutils/bacula/Makefile b/sysutils/bacula/Makefile index 98d64ac2fa2..bc270ed8bc7 100644 --- a/sysutils/bacula/Makefile +++ b/sysutils/bacula/Makefile @@ -1,11 +1,9 @@ -# $NetBSD: Makefile,v 1.47 2013/04/25 20:41:33 shattered Exp $ +# $NetBSD: Makefile,v 1.48 2013/04/26 12:41:44 obache Exp $ PKGREVISION= 5 CONFLICTS+= bacula-client-[0-9]* bacula-clientonly-[0-9]* -PKG_DESTDIR_SUPPORT= destdir - .include "options.mk" PLIST_SRC= PLIST.common @@ -40,6 +38,10 @@ REPLACE_PERL+= src/cats/make_catalog_backup.pl.in .include "Makefile.common" +.if !empty(USE_DESTDIR:M[Yy][Ee][Ss]) +INSTALL_MAKE_FLAGS+= dir_user= dir_group= +.endif + post-install: ${INSTALL_SCRIPT} ${FILESDIR}/chio-changer \ ${DESTDIR}${PREFIX}/libexec/bacula/ -- cgit v1.2.3