svn commit: r374849 - in head/Mk: . Uses
Baptiste Daroussin
bapt at FreeBSD.org
Wed Dec 17 14:33:00 UTC 2014
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 at 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
More information about the svn-ports-head
mailing list