2010-02-10 20:17:31 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2010/02/10 19:17:45 joerg Exp $
|
2006-06-04 22:53:56 +02:00
|
|
|
#
|
|
|
|
|
2006-06-08 20:59:25 +02:00
|
|
|
DISTNAME= munin_${VER}
|
2006-12-05 15:53:32 +01:00
|
|
|
VER= 1.3.2
|
2006-06-08 20:59:25 +02:00
|
|
|
PKGNAME= munin-node-${VER}
|
2010-02-10 20:17:31 +01:00
|
|
|
PKGREVISION= 3
|
2006-06-04 22:53:56 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=munin/}
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://munin.sourceforge.net/
|
|
|
|
COMMENT= System monitoring tool, client version
|
|
|
|
|
|
|
|
DEPENDS+= p5-Net-Server>=0:../../net/p5-Net-Server
|
|
|
|
DEPENDS+= p5-Net-SSLeay>=0:../../security/p5-Net-SSLeay
|
2006-06-08 21:19:05 +02:00
|
|
|
DEPENDS+= munin-doc>=1.3.1:../../sysutils/munin-doc
|
2006-06-04 22:53:56 +02:00
|
|
|
|
2009-08-30 10:19:43 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2006-12-05 15:53:32 +01:00
|
|
|
USE_TOOLS+= perl:run tar
|
2006-06-04 22:53:56 +02:00
|
|
|
USE_TOOLS+= gmake
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S:_:-:}
|
|
|
|
|
2009-08-30 10:19:43 +02:00
|
|
|
PLIST_VARS+= sunos not-sunos
|
|
|
|
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
PLIST.sunos= yes
|
|
|
|
.else
|
|
|
|
PLIST.not-sunos= yes
|
|
|
|
.endif
|
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= MUNIN_GROUP
|
|
|
|
PKG_USERS_VARS+= MUNIN_USER
|
|
|
|
|
2006-06-04 22:53:56 +02:00
|
|
|
MUNIN_GROUP?= munin
|
|
|
|
MUNIN_USER?= munin
|
|
|
|
|
|
|
|
PKG_GROUPS= ${MUNIN_GROUP}
|
|
|
|
PKG_USERS= ${MUNIN_USER}:${MUNIN_GROUP}::Munin\\ user
|
2006-07-22 01:28:37 +02:00
|
|
|
PKG_SYSCONFSUBDIR?= munin
|
|
|
|
REPLACE_PERL+= node/node.d/*.in
|
2006-06-04 22:53:56 +02:00
|
|
|
|
2006-06-27 15:05:49 +02:00
|
|
|
STATEDIR?= ${VARBASE}/munin/plugin-state
|
|
|
|
MUNIN_RUN?= ${VARBASE}/run/munin
|
2006-06-04 22:53:56 +02:00
|
|
|
|
|
|
|
MAKE_DIRS= ${VARBASE}/munin
|
|
|
|
MAKE_DIRS+= ${VARBASE}/run/munin
|
|
|
|
MAKE_DIRS+= ${VARBASE}/log/munin
|
|
|
|
MAKE_DIRS+= ${STATEDIR}
|
|
|
|
|
|
|
|
OWN_DIRS= ${VARBASE}/munin
|
|
|
|
OWN_DIRS+= ${VARBASE}/run/munin
|
|
|
|
OWN_DIRS+= ${VARBASE}/log/munin
|
|
|
|
OWN_DIRS+= ${VARBASE}/munin/plugin-state
|
|
|
|
|
|
|
|
OWN_DIRS_PERMS+=${VARBASE}/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+=${VARBASE}/run/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+=${VARBASE}/log/munin ${MUNIN_USER} ${MUNIN_GROUP} 0755
|
|
|
|
OWN_DIRS_PERMS+=${VARBASE}/munin/plugin-state ${MUNIN_USER} ${MUNIN_GROUP} 0775
|
|
|
|
|
2006-06-08 20:59:25 +02:00
|
|
|
INSTALL_TARGET= install-node install-node-plugins
|
2006-06-04 22:53:56 +02:00
|
|
|
|
2006-06-08 20:59:25 +02:00
|
|
|
BUILD_TARGET= build
|
2006-06-04 22:53:56 +02:00
|
|
|
|
|
|
|
#MAKE_ENV+= PERL5_SITELIB=${PERL5_SITELIB}
|
2009-08-30 10:19:43 +02:00
|
|
|
MAKE_ENV+= PREFIX=${PREFIX}
|
2006-07-22 01:28:37 +02:00
|
|
|
MAKE_ENV+= CONFDIR=${PKG_SYSCONFDIR}
|
2006-06-04 22:53:56 +02:00
|
|
|
MAKE_ENV+= MUNIN_USER=${MUNIN_USER}
|
|
|
|
MAKE_ENV+= MUNIN_GROUP=${MUNIN_GROUP}
|
|
|
|
MAKE_ENV+= PERL5=${PERL5:Q}
|
|
|
|
|
|
|
|
FILES_SUBST+= PERL=${PERL5:Q}
|
|
|
|
FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
|
|
|
FILES_SUBST+= STATEDIR=${STATEDIR}
|
2006-06-27 15:05:49 +02:00
|
|
|
FILES_SUBST+= MUNIN_RUN=${MUNIN_RUN:Q}
|
|
|
|
FILES_SUBST+= MUNIN_USER=${MUNIN_USER:Q}
|
|
|
|
FILES_SUBST+= MUNIN_GROUP=${MUNIN_GROUP:Q}
|
2006-06-04 22:53:56 +02:00
|
|
|
|
2006-06-09 15:22:44 +02:00
|
|
|
MESSAGE_SUBST+= VARBASE=${VARBASE:Q}
|
|
|
|
|
2006-12-05 15:53:32 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2006-06-04 22:53:56 +02:00
|
|
|
RCD_SCRIPTS+= munin-node
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/munin
|
|
|
|
|
2006-07-22 01:28:37 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/munin-node.conf ${PKG_SYSCONFDIR}/munin-node.conf
|
2006-06-04 22:53:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${FILESDIR}; ${TAR} cf - . | (cd ${WRKSRC}; ${TAR} xfp -)
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
2006-12-05 15:53:32 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf ${EGDIR}
|
2006-06-04 22:53:56 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/application.mk"
|
2010-02-10 20:17:31 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|