aboutsummaryrefslogtreecommitdiff
path: root/sysutils/munin-node
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2010-12-02 10:45:17 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2010-12-02 10:45:17 +0000
commitd3427e537856f0157e6a0a865bc2adebc2a74306 (patch)
tree74151c77de7f68e083d1d8af69ad8d62eebfea3d /sysutils/munin-node
parent52f13828513a268f34f44c9724f4db52ba0fa05d (diff)
downloadports-d3427e537856f0157e6a0a865bc2adebc2a74306.tar.gz
ports-d3427e537856f0157e6a0a865bc2adebc2a74306.zip
Notes
Diffstat (limited to 'sysutils/munin-node')
-rw-r--r--sysutils/munin-node/Makefile1
-rw-r--r--sysutils/munin-node/pkg-deinstall6
-rw-r--r--sysutils/munin-node/pkg-install6
3 files changed, 7 insertions, 6 deletions
diff --git a/sysutils/munin-node/Makefile b/sysutils/munin-node/Makefile
index 68e0eabcb3ba..4816c13991ff 100644
--- a/sysutils/munin-node/Makefile
+++ b/sysutils/munin-node/Makefile
@@ -7,6 +7,7 @@
PORTNAME= munin
PORTVERSION= 1.4.5
+PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
PKGNAMESUFFIX= -node
diff --git a/sysutils/munin-node/pkg-deinstall b/sysutils/munin-node/pkg-deinstall
index 358fae50e416..cc61d62e58f9 100644
--- a/sysutils/munin-node/pkg-deinstall
+++ b/sysutils/munin-node/pkg-deinstall
@@ -51,14 +51,14 @@ delete_crontab_entries() {
delnewsyslog() {
tmp="/etc/#munin-node$$"
- sed -e '/^\/var\/log\/munin-node.log[ ]/d' /etc/newsyslog.conf >${tmp}
+ sed -e '/^\/var\/log\/munin\/munin-node.log[ ]/d' /etc/newsyslog.conf >${tmp}
cat ${tmp} > /etc/newsyslog.conf
rm ${tmp}
}
newsyslog() {
- ENTRY=`grep /var/log/munin-node.log /etc/newsyslog.conf`
- DEFAULT='/var/log/munin-node.log 644 7 * @T00 Z /var/run/munin/munin-node.pid'
+ ENTRY=`grep /var/log/munin/munin-node.log /etc/newsyslog.conf`
+ DEFAULT='/var/log/munin/munin-node.log 644 7 * @T00 Z /var/run/munin/munin-node.pid'
if [ -z "$ENTRY" ]; then
exit 0
elif [ "$ENTRY" = "$DEFAULT" ]; then
diff --git a/sysutils/munin-node/pkg-install b/sysutils/munin-node/pkg-install
index 3b5fd90ff602..5196b6b46e62 100644
--- a/sysutils/munin-node/pkg-install
+++ b/sysutils/munin-node/pkg-install
@@ -66,18 +66,18 @@ EOT
newsyslog() {
if yesno "Would you like me to set up log rotation" y; then
- if grep -q /var/log/munin-node.log /etc/newsyslog.conf; then
+ if grep -q /var/log/munin/munin-node.log /etc/newsyslog.conf; then
:
else
cat >> /etc/newsyslog.conf <<EOT
-/var/log/munin-node.log 644 7 * @T00 Z /var/run/munin/munin-node.pid
+/var/log/munin/munin-node.log 644 7 * @T00 Z /var/run/munin/munin-node.pid
EOT
fi
if [ -f ${PKG_PREFIX}/bin/munin-node-revive ]; then
create_crontab_entries '4 * * * *' ${PKG_PREFIX}/bin/munin-node-revive
fi
else
- echo "/var/log/munin-node.log will grow without bounds."
+ echo "/var/log/munin/munin-node.log will grow without bounds."
fi
}