pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
mackerel-agent: add USER,GROUP,root-directory
Module Name: pkgsrc-wip
Committed By: miwarin <miwarin%gmail.com@localhost>
Pushed By: miwarin
Date: Wed Feb 7 19:37:55 2018 +0900
Changeset: 3c892615a96e16988ff8d63ce8c97f7550edc6c9
Modified Files:
mackerel-agent/Makefile
Log Message:
mackerel-agent: add USER,GROUP,root-directory
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3c892615a96e16988ff8d63ce8c97f7550edc6c9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
mackerel-agent/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
diffs:
diff --git a/mackerel-agent/Makefile b/mackerel-agent/Makefile
index be986b1a4b..283669cf3b 100755
--- a/mackerel-agent/Makefile
+++ b/mackerel-agent/Makefile
@@ -14,12 +14,22 @@ EXTRACT_USING= bsdtar
GO_SRCPATH= github.com/mackerelio/${DISTNAME}
GOPATH= ${WRKDIR}
USE_TOOLS+= gmake perl
+BUILD_DEFS+= VARBASE
+
+MACKEREL_USER= mackerelagent
+MACKEREL_GROUP= mackerelagent
+PKG_GROUPS= ${MACKEREL_GROUP}
+PKG_USERS= ${MACKEREL_USER}:${MACKEREL_GROUP}
INSTALLATION_DIRS+= bin share/examples/mackerel-agent
EGDIR= ${PREFIX}/share/examples/mackerel-agent
CONF_FILES= ${EGDIR}/mackerel-agent.sample.conf ${PKG_SYSCONFDIR}/mackerel-agent.sample.conf
+MACKEREL_ROOTDIR= ${VARBASE}/lib/mackerel-agent
+MAKE_DIRS= ${MACKEREL_ROOTDIR}
+MAKE_DIRS_PERMS= ${MACKEREL_ROOTDIR} ${MACKEREL_USER} ${MACKEREL_GROUP} 0755
+
do-build:
cd ${WRKSRC} && GOPATH=${GOPATH} PATH=${PATH}:${GOPATH}/bin ${MAKE_PROGRAM} build
Home |
Main Index |
Thread Index |
Old Index