Make sure the STATEDIR is created when installing the package. Otherwise munin

processes refuse to start.

Reported by:	Alain AUDEBERT <deuza@me.com>
This commit is contained in:
Florian Smeets 2012-03-05 17:07:14 +00:00
parent f161eddc38
commit 16efccedf1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=292759
2 changed files with 3 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= munin
PORTVERSION= 1.4.6
PORTREVISION= 1
CATEGORIES= sysutils perl5
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20stable/${PORTVERSION}
PKGNAMESUFFIX= -common

View file

@ -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