# Created by: Dan Langille # $FreeBSD$ PORTNAME= bacula-web DISTVERSION= 1.38.9 PORTREVISION= 1 CATEGORIES= www MASTER_SITES= SF/bacula/OldFiles 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 USE_PHP= gd WANT_PHP_WEB= yes OPTIONS_DEFINE= PGSQL OPTIONS_DEFAULT= PGSQL SUB_FILES= pkg-message .include .if ${PORT_OPTIONS:MPGSQL} 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 do-install: @${ECHO} "Installing in ${PREFIX}/www/bacula-web" ${MKDIR} ${STAGEDIR}${PREFIX}/www/bacula-web ${CP} -R ${WRKSRC}/bacula-web/* ${STAGEDIR}${PREFIX}/www/bacula-web ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/www/bacula-web ${MV} ${STAGEDIR}${PREFIX}/www/bacula-web/configs/bacula.conf ${STAGEDIR}${PREFIX}/etc/bacula-web.conf.sample; \ ${RM} -rf ${STAGEDIR}${PREFIX}/www/bacula-web/configs; \ if [ ! -f /var/bacula-web/templates_c ]; then \ ${MKDIR} ${STAGEDIR}/var/bacula-web/templates_c; \ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}/var/bacula-web/templates_c; \ fi post-install: @${CAT} ${PKGMESSAGE} .include