diff options
author | obache <obache@pkgsrc.org> | 2011-03-18 12:22:51 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-03-18 12:22:51 +0000 |
commit | 06317dbc69b92c856b804567b05bd709c03d4be2 (patch) | |
tree | 02fbdefb6ad35ae469bc4466063685b12a785268 /sysutils/gkrellm-server | |
parent | e02c482510c4c604c01c73e2a00e96b99ed03ed9 (diff) | |
download | pkgsrc-06317dbc69b92c856b804567b05bd709c03d4be2.tar.gz |
Add user-destdir installation support.
Diffstat (limited to 'sysutils/gkrellm-server')
-rw-r--r-- | sysutils/gkrellm-server/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sysutils/gkrellm-server/Makefile b/sysutils/gkrellm-server/Makefile index b141c03beac..7fa707c6f96 100644 --- a/sysutils/gkrellm-server/Makefile +++ b/sysutils/gkrellm-server/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2007/06/15 18:15:21 jlam Exp $ +# $NetBSD: Makefile,v 1.24 2011/03/18 12:22:51 obache Exp $ .include "../../sysutils/gkrellm/Makefile.common" @@ -6,6 +6,8 @@ GKRELLM_PKGBASE= gkrellm-server COMMENT= Monitoring daemon remotely accessible by a GKrellM client DEPENDS+= gkrellm-share-${GKRELLM_VERSION}:../../sysutils/gkrellm-share +PKG_DESTDIR_SUPPORT= user-destdir + USE_TOOLS+= pkg-config PTHREAD_OPTS+= require RCD_SCRIPTS= gkrellmd @@ -14,12 +16,13 @@ CONF_FILES= ${PREFIX:Q}/share/examples/gkrellm-server/gkrellmd.conf ${PREFIX:Q} .include "../../mk/bsd.prefs.mk" .if (${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly") -SPECIAL_PERMS+= ${PREFIX:Q}/bin/gkrellmd ${BINOWN} kmem 2555 +SPECIAL_PERMS+= ${PREFIX:Q}/bin/gkrellmd ${REAL_ROOT_USER} kmem 2555 .endif NOT_FOR_PLATFORM= IRIX-*-* MAKE_ENV+= MODULES=server +INSTALL_MAKE_FLAGS+= BINOWNER=${BINOWN:Q} BINGROUP=${BINGRP:Q} PKG_OPTIONS_VAR= PKG_OPTIONS.gkrellm-server PKG_SUPPORTED_OPTIONS= glib1 @@ -32,8 +35,8 @@ SUBST_FILES.gkprefix= server/gkrellmd.h SUBST_SED.gkprefix= -e '/GKRELLMD_SYS_ETC/{s!/etc!${PREFIX}&!;}' post-install: - ${INSTALL_DATA_DIR} ${PREFIX:Q}/share/examples/gkrellm-server - ${INSTALL_DATA} ${WRKSRC:Q}/server/gkrellmd.conf ${PREFIX:Q}/share/examples/gkrellm-server + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX:Q}/share/examples/gkrellm-server + ${INSTALL_DATA} ${WRKSRC:Q}/server/gkrellmd.conf ${DESTDIR}${PREFIX:Q}/share/examples/gkrellm-server .if !empty(PKG_OPTIONS:Mglib1) MAKE_ENV+= USE_GLIB12=yes |