View | Details | Raw Unified | Return to bug 170882
Collapse All | Expand All

(-)bacula-server/files/bacula-fd.in (-1 / +1 lines)
Lines 23-29 Link Here
23
load_rc_config $name
23
load_rc_config $name
24
24
25
: ${bacula_fd_enable="NO"}
25
: ${bacula_fd_enable="NO"}
26
: ${bacula_fd_flags=" -u root -g wheel -v -c %%PREFIX%%/etc/bacula-fd.conf"}
26
: ${bacula_fd_flags=" -u root -g wheel -v -c %%PREFIX%%/etc/bacula/bacula-fd.conf"}
27
: ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"}
27
: ${bacula_fd_pidfile="/var/run/bacula-fd.9102.pid"}
28
28
29
pidfile="${bacula_fd_pidfile}"
29
pidfile="${bacula_fd_pidfile}"
(-)bacula-server/files/bacula-sd.in (-1 / +1 lines)
Lines 23-29 Link Here
23
load_rc_config $name
23
load_rc_config $name
24
24
25
: ${bacula_sd_enable="NO"}
25
: ${bacula_sd_enable="NO"}
26
: ${bacula_sd_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-sd.conf"}
26
: ${bacula_sd_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula/bacula-sd.conf"}
27
: ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"}
27
: ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"}
28
28
29
pidfile="${bacula_sd_pidfile}"
29
pidfile="${bacula_sd_pidfile}"
(-)bacula-server/files/bacula-dir.in (-1 / +1 lines)
Lines 23-29 Link Here
23
load_rc_config $name
23
load_rc_config $name
24
24
25
: ${bacula_dir_enable="NO"}
25
: ${bacula_dir_enable="NO"}
26
: ${bacula_dir_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-dir.conf"}
26
: ${bacula_dir_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula/bacula-dir.conf"}
27
: ${bacula_dir_pidfile="/var/run/bacula-dir.9101.pid"}
27
: ${bacula_dir_pidfile="/var/run/bacula-dir.9101.pid"}
28
28
29
pidfile="${bacula_dir_pidfile}"
29
pidfile="${bacula_dir_pidfile}"
(-)bacula-server/files/pkg-message.client.in (-1 / +1 lines)
Lines 1-7 Link Here
1
################################################################################
1
################################################################################
2
2
3
NOTE:
3
NOTE:
4
Sample files are installed in %%PREFIX%%/etc:
4
Sample files are installed in %%PREFIX%%/etc/bacula:
5
bconsole.conf.sample, bacula-barcodes.sample, bacula-fd.conf.sample
5
bconsole.conf.sample, bacula-barcodes.sample, bacula-fd.conf.sample
6
6
7
  Please read this file:
7
  Please read this file:
(-)bacula-server/files/pkg-message.server.in (-1 / +1 lines)
Lines 9-15 Link Here
9
Please have a look at it if you want to use an
9
Please have a look at it if you want to use an
10
autochanger. You have to configure the usage in
10
autochanger. You have to configure the usage in
11
11
12
  %%PREFIX%%/etc/bacula-dir.conf
12
  %%PREFIX%%/etc/bacula/bacula-dir.conf
13
13
14
Take care of correct permissions for changer and
14
Take care of correct permissions for changer and
15
tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e.
15
tape device (e.g. /dev/ch0 and /dev/n[r]sa0) i.e.
(-)bacula-server/Makefile (-20 / +21 lines)
Lines 56-61 Link Here
56
CONFIGURE_ARGS+=--with-tcp-wrappers=/usr/lib \
56
CONFIGURE_ARGS+=--with-tcp-wrappers=/usr/lib \
57
		--enable-smartalloc \
57
		--enable-smartalloc \
58
		--with-working-dir=${BACULA_DIR} \
58
		--with-working-dir=${BACULA_DIR} \
59
		--sysconfdir=${PREFIX}/etc/bacula \
59
		--with-scriptdir=${PREFIX}/share/${PORTNAME} \
60
		--with-scriptdir=${PREFIX}/share/${PORTNAME} \
60
		--docdir=${DOCSDIR} \
61
		--docdir=${DOCSDIR} \
61
		--htmldir=${DOCSDIR} \
62
		--htmldir=${DOCSDIR} \
Lines 222-229 Link Here
222
.if defined(NOPORTDOCS)
223
.if defined(NOPORTDOCS)
223
	${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in
224
	${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in
224
.endif
225
.endif
225
#	Default bconsole.conf is ${PREFIX}/etc
226
#	Default bconsole.conf is ${PREFIX}/etc/bacula
226
	@${REINPLACE_CMD} -e 's|./bconsole.conf|${PREFIX}/etc/bconsole.conf|g' ${WRKSRC}/src/console/console.c
227
	@${REINPLACE_CMD} -e 's|./bconsole.conf|${PREFIX}/etc/bacula/bconsole.conf|g' ${WRKSRC}/src/console/console.c
227
.if defined(WITH_CLIENT_ONLY)
228
.if defined(WITH_CLIENT_ONLY)
228
# 	In client port only install startup script out of script dir (see below post-install)
229
# 	In client port only install startup script out of script dir (see below post-install)
229
# 	Dont mkdir ${PREFIX}/share/bacula cause it's empty
230
# 	Dont mkdir ${PREFIX}/share/bacula cause it's empty
Lines 255-273 Link Here
255
	@ ${SETENV} PKG_PREFIX=${PREFIX} \
256
	@ ${SETENV} PKG_PREFIX=${PREFIX} \
256
		${SH} ${PKGINSTALL} ${PORTNAME}
257
		${SH} ${PKGINSTALL} ${PORTNAME}
257
# 	Console stuff
258
# 	Console stuff
258
	if [ -f ${PREFIX}/etc/bconsole.conf.new ]; then \
259
	if [ -f ${PREFIX}/etc/bacula/bconsole.conf.new ]; then \
259
		${ECHO_CMD} "etc/bconsole.conf.new" >> ${TMPPLIST}; \
260
		${ECHO_CMD} "etc/bacula/bconsole.conf.new" >> ${TMPPLIST}; \
260
		${CHGRP} bacula ${PREFIX}/etc/bconsole.conf.new; \
261
		${CHGRP} bacula ${PREFIX}/etc/bacula/bconsole.conf.new; \
261
	elif [ -f ${PREFIX}/etc/bconsole.conf ]; then \
262
	elif [ -f ${PREFIX}/etc/bacula/bconsole.conf ]; then \
262
		${MV} ${PREFIX}/etc/bconsole.conf ${PREFIX}/etc/bconsole.conf.sample; \
263
		${MV} ${PREFIX}/etc/bacula/bconsole.conf ${PREFIX}/etc/bacula/bconsole.conf.sample; \
263
		${CHGRP} bacula ${PREFIX}/etc/bconsole.conf.sample; \
264
		${CHGRP} bacula ${PREFIX}/etc/bacula/bconsole.conf.sample; \
264
		${ECHO_CMD} "etc/bconsole.conf.sample" >> ${TMPPLIST}; \
265
		${ECHO_CMD} "etc/bacula/bconsole.conf.sample" >> ${TMPPLIST}; \
265
	fi
266
	fi
266
.if defined(WITH_WXCONSOLE)
267
.if defined(WITH_WXCONSOLE)
267
	if [ -f ${PREFIX}/etc/bwx-console.conf.new ]; then \
268
	if [ -f ${PREFIX}/etc/bacula/bwx-console.conf.new ]; then \
268
		${ECHO_CMD} "etc/bwx-console.conf.new" >> ${TMPPLIST}; \
269
		${ECHO_CMD} "etc/bwx-console.conf.new" >> ${TMPPLIST}; \
269
	elif [ -f ${PREFIX}/etc/bwx-console.conf ]; then \
270
	elif [ -f ${PREFIX}/etc/bacula/bwx-console.conf ]; then \
270
		${MV} ${PREFIX}/etc/bwx-console.conf ${PREFIX}/etc/bwx-console.conf.sample; \
271
		${MV} ${PREFIX}/etc/bacula/bwx-console.conf ${PREFIX}/etc/bacula/bwx-console.conf.sample; \
271
		${ECHO_CMD} "etc/bwx-console.conf.sample" >> ${TMPPLIST}; \
272
		${ECHO_CMD} "etc/bwx-console.conf.sample" >> ${TMPPLIST}; \
272
	fi
273
	fi
273
.endif
274
.endif
Lines 278-287 Link Here
278
# 	Install config files and preserve existing ones
279
# 	Install config files and preserve existing ones
279
	${INSTALL_SCRIPT} ${FILESDIR}/chio-bacula ${PREFIX}/sbin
280
	${INSTALL_SCRIPT} ${FILESDIR}/chio-bacula ${PREFIX}/sbin
280
	if [ -f ${PREFIX}/etc/bacula-barcodes ]; then \
281
	if [ -f ${PREFIX}/etc/bacula-barcodes ]; then \
281
		${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${PREFIX}/etc/bacula-barcodes.new ; \
282
		${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${PREFIX}/etc/bacula/bacula-barcodes.new ; \
282
		${ECHO_CMD} "etc/bacula-barcodes.new" >> ${TMPPLIST}; \
283
		${ECHO_CMD} "etc/bacula-barcodes.new" >> ${TMPPLIST}; \
283
	else \
284
	else \
284
		${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${PREFIX}/etc/bacula-barcodes.samples ; \
285
		${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${PREFIX}/etc/bacula/bacula-barcodes.samples ; \
285
		${ECHO_CMD} "etc/bacula-barcodes.samples" >> ${TMPPLIST}; \
286
		${ECHO_CMD} "etc/bacula-barcodes.samples" >> ${TMPPLIST}; \
286
	fi
287
	fi
287
# 	chmod of bsmtp program so bacula can use it with dropped down permissions
288
# 	chmod of bsmtp program so bacula can use it with dropped down permissions
Lines 290-298 Link Here
290
291
291
#	on a fresh install, the .new suffix is not used
292
#	on a fresh install, the .new suffix is not used
292
	if [ -f ${PREFIX}/etc/bacula-dir.conf.new ]; then \
293
	if [ -f ${PREFIX}/etc/bacula-dir.conf.new ]; then \
293
		${CHGRP} bacula ${PREFIX}/etc/bacula-dir.conf.new; \
294
		${CHGRP} bacula ${PREFIX}/etc/bacula/bacula-dir.conf.new; \
294
	else \
295
	else \
295
		${CHGRP} bacula ${PREFIX}/etc/bacula-dir.conf; \
296
		${CHGRP} bacula ${PREFIX}/etc/bacula/bacula-dir.conf; \
296
	fi
297
	fi
297
298
298
	${CHGRP} bacula ${PREFIX}/sbin/dbcheck
299
	${CHGRP} bacula ${PREFIX}/sbin/dbcheck
Lines 300-310 Link Here
300
.endif
301
.endif
301
# 	Install leaves existing conf files untouched. Respect this here!
302
# 	Install leaves existing conf files untouched. Respect this here!
302
	for na in ${CONFFILES}; do \
303
	for na in ${CONFFILES}; do \
303
		if [ -f ${PREFIX}/etc/bacula-$$na.conf.new ]; then \
304
		if [ -f ${PREFIX}/etc/bacula/bacula-$$na.conf.new ]; then \
304
			${ECHO_CMD} "etc/bacula-$$na.conf.new" >> ${TMPPLIST}; \
305
			${ECHO_CMD} "etc/bacula-$$na.conf.new" >> ${TMPPLIST}; \
305
		elif [ -f ${PREFIX}/etc/bacula-$$na.conf ]; then \
306
		elif [ -f ${PREFIX}/etc/bacula/bacula-$$na.conf ]; then \
306
			${MV} ${PREFIX}/etc/bacula-$$na.conf ${PREFIX}/etc/bacula-$$na.conf.sample; \
307
			${MV} ${PREFIX}/etc/bacula/bacula-$$na.conf ${PREFIX}/etc/bacula/bacula-$$na.conf.sample; \
307
			${ECHO_CMD} "etc/bacula-$$na.conf.sample" >> ${TMPPLIST}; \
308
			${ECHO_CMD} "etc/bacula/bacula-$$na.conf.sample" >> ${TMPPLIST}; \
308
		fi; \
309
		fi; \
309
	done
310
	done

Return to bug 170882