aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorflo <flo@FreeBSD.org>2012-03-06 01:07:14 +0800
committerflo <flo@FreeBSD.org>2012-03-06 01:07:14 +0800
commit430fa86b01192138d329421e38c531642bd2eef2 (patch)
tree6cdf8c4a79e3970298df52c2dcfd470a413f8186 /sysutils
parentaaa5c3259d63bf564c3776a5995fe81d52c6f25c (diff)
downloadfreebsd-ports-gnome-430fa86b01192138d329421e38c531642bd2eef2.tar.gz
freebsd-ports-gnome-430fa86b01192138d329421e38c531642bd2eef2.tar.zst
freebsd-ports-gnome-430fa86b01192138d329421e38c531642bd2eef2.zip
Make sure the STATEDIR is created when installing the package. Otherwise munin
processes refuse to start. Reported by: Alain AUDEBERT <deuza@me.com>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/munin-common/Makefile1
-rw-r--r--sysutils/munin-common/pkg-plist2
2 files changed, 3 insertions, 0 deletions
diff --git a/sysutils/munin-common/Makefile b/sysutils/munin-common/Makefile
index d9e4e6130f30..38e4717078ca 100644
--- a/sysutils/munin-common/Makefile
+++ b/sysutils/munin-common/Makefile
@@ -7,6 +7,7 @@
PORTNAME= munin
PORTVERSION= 1.4.6
+PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
PKGNAMESUFFIX= -common
diff --git a/sysutils/munin-common/pkg-plist b/sysutils/munin-common/pkg-plist
index 0996b62a3662..ddbaecb47047 100644
--- a/sysutils/munin-common/pkg-plist
+++ b/sysutils/munin-common/pkg-plist
@@ -8,3 +8,5 @@
@dirrm %%SITE_PERL%%/Munin
@exec mkdir -p %%LOGDIR%%
@unexec /bin/rmdir %%LOGDIR%% 2>/dev/null || /usr/bin/true
+@exec mkdir -p %%STATEDIR%%
+@unexec /bin/rmdir %%STATEDIR%% 2>/dev/null || /usr/bin/true