Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= munin |
8 |
PORTNAME= munin |
9 |
PORTVERSION= 1.0.3 |
9 |
PORTVERSION= 1.0.4 |
10 |
CATEGORIES= sysutils perl5 |
10 |
CATEGORIES= sysutils perl5 |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= munin |
12 |
MASTER_SITE_SUBDIR= munin |
Lines 32-48
Link Here
|
32 |
ALL_TARGET= DATADIR=${DATADIR} build build-man |
32 |
ALL_TARGET= DATADIR=${DATADIR} build build-man |
33 |
INSTALL_TARGET= DATADIR=${DATADIR} install-node install-node-plugins |
33 |
INSTALL_TARGET= DATADIR=${DATADIR} install-node install-node-plugins |
34 |
MAKE_ENV= LANG=C |
34 |
MAKE_ENV= LANG=C |
|
|
35 |
NOPRECIOUSMAKEVARS=yes |
35 |
|
36 |
|
36 |
MAN5= munin-node.conf.5 |
37 |
MAN5= munin-node.conf.5 |
37 |
MAN8= munin-node-configure.8 munin-node.8 munin-run.8 |
38 |
MAN8= munin-node-configure.8 munin-node.8 munin-run.8 |
38 |
|
39 |
|
|
|
40 |
.if ${OSVERSION} < 500000 |
41 |
PKGMSG=${FILESDIR}/pkg-message.4 |
42 |
STARTSTOP_SRC=${FILESDIR}/munin-node.sh |
43 |
STARTSTOP_DST=${PREFIX}/etc/rc.d/munin-node.sh |
44 |
.else |
45 |
PKGMSG=${FILESDIR}/pkg-message |
46 |
STARTSTOP_SRC=${FILESDIR}/munin_node.sh |
47 |
STARTSTOP_DST=/etc/rc.d/munin_node |
48 |
.endif |
49 |
|
39 |
pre-install: |
50 |
pre-install: |
40 |
@${SED} 's@%%PREFIX%%@${PREFIX}@g' ${FILESDIR}/pkg-message > ${PKGMESSAGE} |
51 |
@${SED} 's@%%PREFIX%%@${PREFIX}@g' ${PKGMSG} > ${PKGMESSAGE} |
41 |
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL |
52 |
@PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL |
42 |
|
53 |
|
43 |
post-install: |
54 |
post-install: |
44 |
@${SED} 's@%PREFIX%@${LOCALBASE}@g' ${FILESDIR}/munin-node.sh > ${PREFIX}/etc/rc.d/munin-node.sh |
55 |
@${SED} 's@%PREFIX%@${LOCALBASE}@g' ${STARTSTOP_SRC} > ${STARTSTOP_DST} |
45 |
@${CHMOD} +x ${PREFIX}/etc/rc.d/munin-node.sh |
56 |
@${CHMOD} +x ${STARTSTOP_DST} |
|
|
57 |
${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf ${PREFIX}/etc/munin/munin-node.conf.sample |
58 |
${INSTALL_DATA} ${WRKSRC}/plugins.conf ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf.sample |
46 |
@if [ ! -f ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf ]; then \ |
59 |
@if [ ! -f ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf ]; then \ |
47 |
${INSTALL_DATA} ${WRKSRC}/plugins.conf ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf; \ |
60 |
${INSTALL_DATA} ${WRKSRC}/plugins.conf ${PREFIX}/etc/munin/plugin-conf.d/plugins.conf; \ |
48 |
fi |
61 |
fi |