freebsd-ports/sysutils/munin-common/munin.mk
Dag-Erling Smørgrav 94ebcf4d98 Continue rototilling the Munin ports:
- Move some files around and adjust the plists accordingly.
 - Fix some directory creation / deletion in the plists.
 - Fix some directory ownerships.
 - Instead of patching the Makefile, specify installation directories
   on the command line.  Centralize the definition of MAKE_ARGS and some
   other shared variables.

Feature safe:	yes
2010-02-25 12:15:38 +00:00

20 lines
524 B
Makefile

DBDIR?= /var/${PORTNAME}
LOGDIR?= /var/log/${PORTNAME}
STATEDIR?= /var/run/${PORTNAME}
MUNIN_DIRS= BINDIR=${PREFIX}/bin \
CGIDIR=${PREFIX}/www/cgi-bin \
CONFDIR=${ETCDIR} \
DBDIR=${DBDIR} \
DOCDIR=${DOCSDIR} \
HTMLDIR=${WWWDIR} \
LIBDIR=${DATADIR} \
LOGDIR=${LOGDIR} \
MANDIR=${MANPREFIX}/man \
SBINDIR=${PREFIX}/sbin \
STATEDIR=${STATEDIR}
MAKE_ARGS= ${MUNIN_DIRS} \
BASH=${LOCALBASE}/bin/bash \
PERL=${PERL} PERLLIB=${PREFIX}/${SITE_PERL_REL}
PLIST_SUB= ${MUNIN_DIRS}
USERS= munin
GROUPS= munin