Date: Wed, 17 Dec 2014 14:33:00 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374849 - in head/Mk: . Uses Message-ID: <201412171433.sBHEX0Au017411@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Wed Dec 17 14:32:59 2014 New Revision: 374849 URL: https://svnweb.freebsd.org/changeset/ports/374849 QAT: https://qat.redports.org/buildarchive/r374849/ Log: Add USES=fakeroot to allow packaging ports that are not stageable as a user It uses debian's fakeroot, like NEED_ROOT (which it is supposed to replace) it is preferred to fix the port to properly stage without those hacks Added: head/Mk/Uses/fakeroot.mk (contents, props changed) Modified: head/Mk/bsd.port.mk Added: head/Mk/Uses/fakeroot.mk ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Mk/Uses/fakeroot.mk Wed Dec 17 14:32:59 2014 (r374849) @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# Changes some default behaviour of build systems to allow installing as user. +# +# Feature: fakeroot +# Usage: USES=fakeroot +# Valid ARGS: none +# +# MAINTAINER: bapt@FreeBSD.org + +.if !defined(_INCLUDE_USES_FAKEROOT_MK) +_INCLUDE_USES_FAKEROOT_MK= yes +.if ${UID} != 0 +BUILD_DEPENDS+= fakeroot:${PORTSDIR}/security/fakeroot +FAKEROOT?= fakeroot +.endif +.endif Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Wed Dec 17 13:31:42 2014 (r374848) +++ head/Mk/bsd.port.mk Wed Dec 17 14:32:59 2014 (r374849) @@ -3557,7 +3557,7 @@ check-install-conflicts: .if !target(do-install) && !defined(NO_INSTALL) do-install: - @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) + @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${FAKEROOT} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) .endif # Package
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412171433.sBHEX0Au017411>