mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
32c5c9cdf9
of jobs that have already run. It obtains its information from your catalog database. Aside from a nice graphical display, it provides summaries of your jobs, as well as graphs of job usage. This is a fairly high level bacula management tool. Here are a few points that one user made concerning this important tool: - It is web-based so can be accessed from anywhere. - It is "read only" users can examine the state of the backups but not write to anything and therefore do no damage - It packs a phenomenal amount of information into a single web-page - that I credit as being very good design! The documentation for bacula-web can be found in a separate bacula-web document in the bacula-docs release. WWW: http://www.bacula.org/ PR: ports/101457 Submitted by: Dan Langille <dan at langille.org>
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
# New ports collection makefile for: bacula-web
|
|
# Date created: 28 April 2006
|
|
# Whom: Dan Langille <dan@langille.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bacula-web
|
|
DISTVERSION= 1.38.9
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= bacula
|
|
DISTNAME= bacula-gui-${DISTVERSION}
|
|
|
|
MAINTAINER= dan@langille.org
|
|
COMMENT= Bacula-web provides a summarized output of Bacula jobs
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
|
|
|
|
NO_BUILD= yes
|
|
WANT_PHP_WEB= yes
|
|
|
|
OPTIONS= POSTGRESQL "Use PostgreSQL database instead of MySQL" on
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_POSTGRESQL)
|
|
USE_PGSQL= yes
|
|
CONFIGURE_ARGS+= --with-postgresql=yes
|
|
SUB_LIST+= REQ_PGSQL=postgresql
|
|
USE_PHP= pgsql
|
|
.else
|
|
CONFIGURE_ARGS+= --with-mysql=yes
|
|
USE_MYSQL= yes
|
|
SUB_LIST+= REQ_MYSQL=mysql
|
|
USE_PHP= mysql
|
|
.endif
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.php.mk"
|
|
|
|
do-install:
|
|
@${ECHO} "Installing in ${PREFIX}/www/bacula-web"
|
|
${MKDIR} ${PREFIX}/www/bacula-web
|
|
${CP} -R ${WRKSRC}/bacula-web/* ${PREFIX}/www/bacula-web
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/bacula-web
|
|
if [ -f ${PREFIX}/www/bacula-web/configs/bacula.conf ]; then \
|
|
${CP} ${PREFIX}/www/bacula-web/configs/bacula.conf ${PREFIX}/etc/bacula-web.conf.sample; \
|
|
${RM} -rf ${PREFIX}/www/bacula-web/configs; \
|
|
fi
|
|
|
|
if [ ! -f /var/bacula-web/templates_c ]; then \
|
|
${MKDIR} /var/bacula-web/templates_c; \
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} /var/bacula-web/templates_c; \
|
|
fi
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|