freebsd-ports/sysutils/munin-common/munin.mk
Florian Smeets e47a6dd59a - update to 2.0.7
- move USERS and GROUPS from munin-common/Makefile to munin.mk, otherwise they
  cannot be used in the Makefiles of munin-master and munin-node where they are
  required. This fixes permissions on certain directories. [1]
- VERSION.node file should be updated after the pkg-install script runs, because
  it requires the version of the previously installed version not the currently
  installed one. [2]

PR:		ports/172260 [1]
Reported by:	Haruo Shiba <shiba@logic-design.co.jp> [1]
		tdb [2]
2012-10-06 22:10:55 +00:00

30 lines
936 B
Makefile

MUNIN_VERSION= 2.0.7
MUNIN_SITES= SF/${PORTNAME}/stable/${PORTVERSION}
MUNIN_DISTINFO= ${PORTSDIR}/sysutils/munin-common/distinfo
MUNIN_PATCHES= ${PORTSDIR}/sysutils/munin-common/files/patch-Makefile \
${PORTSDIR}/sysutils/munin-common/files/patch-Makefile.config
DBDIR?= /var/${PORTNAME}
DBDIRNODE?= /var/${PORTNAME}
LOGDIR?= /var/log/${PORTNAME}
STATEDIR?= /var/run/${PORTNAME}
SPOOLDIR?= /var/spool/${PORTNAME}
MUNIN_DIRS= BINDIR=${PREFIX}/bin \
CGIDIR=${PREFIX}/www/cgi-bin \
CONFDIR=${ETCDIR} \
DBDIR=${DBDIR} \
DBDIRNODE=${DBDIRNODE} \
DOCDIR=${DOCSDIR} \
HTMLDIR=${WWWDIR} \
LIBDIR=${DATADIR} \
LOGDIR=${LOGDIR} \
MANDIR=${MANPREFIX}/man \
SBINDIR=${PREFIX}/sbin \
STATEDIR=${STATEDIR} \
SPOOLDIR=${SPOOLDIR}
MAKE_ARGS= ${MUNIN_DIRS} \
BASH=${LOCALBASE}/bin/bash \
PERL=${PERL} PERLLIB=${PREFIX}/${SITE_PERL_REL}
USERS= munin
GROUPS= munin
PLIST_SUB= ${MUNIN_DIRS} USER=${USERS} GROUP=${GROUPS}