- /var/log/bareos and /var/run/bareos are created by bareos-client now. It

fixed a problem when bareos-client is started

PR:		202291
Reported by:	timp87  _ at _ gmail.com
This commit is contained in:
Jose Alonso Cardenas Marquez 2015-08-14 16:33:39 +00:00
parent 1015876c1d
commit a22a4a6604
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=394229
4 changed files with 5 additions and 9 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= bareos
PORTREVISION= 0
PORTREVISION= 1
PKGNAMESUFFIX= -client
COMMENT= Backup archiving recovery open sourced (client)

View file

@ -3,7 +3,7 @@
PORTNAME= bareos
DISTVERSION= 15.2
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES?= sysutils
PKGNAMEPREFIX?= #
PKGNAMESUFFIX?= -server
@ -162,15 +162,13 @@ MP1+= bsmtp.1 bregex.1 bwild.1 bareos-tray-monitor.1
MAKE_ENV+= MAN8="${MP8}" MAN1="${MP1}"
post-patch:
# This port does not install docs. See bacula-docs for that
# This port does not install docs. See bareos-docs for that
${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in
# Default bconsole.conf is in ${ETCDIR}
@${REINPLACE_CMD} -e 's|./bconsole.conf|${ETCDIR}/bconsole.conf|g' ${WRKSRC}/src/console/console.c
@${REINPLACE_CMD} -e 's|^MAN8 =|MAN8 ?=|g' -e 's|^MAN1 =|MAN1 ?=|g' ${WRKSRC}/manpages/Makefile.in
@${REINPLACE_CMD} -e 's|_NONSHARED||g' ${WRKSRC}/src/filed/Makefile.in
.if defined(WITH_CLIENT_ONLY)
# In client port only install startup script out of script dir (see below post-install)
# Dont mkdir ${PREFIX}/share/bacula cause it's empty
@${REINPLACE_CMD} -e 's|^\(fd_subdirs = .*\)scripts\(.*\)|\1\2|g' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|\(.*$${MKDIR} $${DESTDIR}$${scriptdir}\)|#\1|g' ${WRKSRC}/Makefile.in
.else

View file

@ -93,5 +93,3 @@ sbin/btraceback
sbin/bwild
sbin/chio-bareos
@dir(bareos,bareos,) %%BAREOS_DIR%%
@dir(bareos,bareos,) /var/log/bareos
@dir(bareos,bareos,) /var/run/bareos

View file

@ -30,5 +30,5 @@ bin/bconsole
@dir(,bareos,) %%ETCDIR%%
@dir lib/bareos/plugins
@dir lib/bareos/scripts
@dir /var/log/bareos
@dir(bareos,bareos,) /var/log/bareos
@dir(bareos,bareos,) /var/run/bareos