summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorobache <obache>2011-03-21 11:39:27 +0000
committerobache <obache>2011-03-21 11:39:27 +0000
commit654431afcb198aa660df716cf385e3bc1423eb30 (patch)
treed536fc4c0bbfbf4cc8eb290b66112839b00c9eda /devel
parent01d9b283ca9ad1833743cb1fbd134044eef9052f (diff)
downloadpkgsrc-654431afcb198aa660df716cf385e3bc1423eb30.tar.gz
* add destdir installation support.
* fix installation for platfoms that have no 'root' user and no 'bin' group.
Diffstat (limited to 'devel')
-rw-r--r--devel/rt-mysql/Makefile.common10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/rt-mysql/Makefile.common b/devel/rt-mysql/Makefile.common
index 4f8652fa644..d6380fc7411 100644
--- a/devel/rt-mysql/Makefile.common
+++ b/devel/rt-mysql/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.17 2009/06/13 06:46:48 rillig Exp $
+# $NetBSD: Makefile.common,v 1.18 2011/03/21 11:39:27 obache Exp $
# used by devel/rt-mysql/Makefile
# used by devel/rt-pgsql/Makefile
@@ -11,6 +11,8 @@ HOMEPAGE= http://www.bestpractical.com/rt/
COMMENT= Industrial-grade ticketing system
CONFLICTS= rt-*-[0-9]*
+PKG_DESTDIR_SUPPORT= destdir
+
.include "../../mk/bsd.prefs.mk"
RT_GROUP?= rt
@@ -103,6 +105,12 @@ SUBST_VARS.rt= PREFIX RT_GROUP \
RT_DB_TYPE RT_DB_DBA RT_DB_DBA_PASSWORD RT_DB_DATABASE RT_DB_USER \
RT_DB_PASS RT_DB_HOME RT_DB_HOST RT_DB_PORT RT_WEB_USER RT_WEB_GROUP
+INSTALL_MAKE_FLAGS+= BIN_OWNER=${BINOWN}
+INSTALL_MAKE_FLAGS+= LIBS_OWNER=${LIBOWN}
+INSTALL_MAKE_FLAGS+= LIBS_GROUP=${LIBGRP}
+INSTALL_MAKE_FLAGS+= RTGROUP=${RT_GROUP}
+USERGROUP_PHASE= pre-install
+
post-extract:
@${STEP_MSG} "Removing CVS directories from work directory"
${FIND} ${WRKSRC} -name CVS -type d -print | ${XARGS} ${RM} -rf