# Created by: Dan Langille # $FreeBSD$ PORTNAME= bacula-web DISTVERSION= 6.0.1 PORTREVISION= 1 CATEGORIES= www sysutils MASTER_SITES= http://www.bacula-web.org/files/bacula-web.org/downloads/ MAINTAINER= dan@langille.org COMMENT= Bacula-web provides a summarized output of Bacula jobs LICENSE= GPLv2 USES= tar:tgz USE_PHP= gd gettext session WANT_PHP_WEB= yes NO_BUILD= yes NO_WRKSUBDIR= yes BACULAWEB_HOME?=${WWWDIR} BASE= ${BACULAWEB_HOME:S|${PREFIX}/||} SUB_FILES= pkg-message PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} BASE=${BASE} SUB_LIST= BASE=${BASE} OPTIONS_DEFINE= MYSQL PGSQL SQLITE OPTIONS_DEFAULT= PGSQL .include .if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes CONFIGURE_ARGS+= --with-mysql=yes SUB_LIST+= REQ_MYSQL=mysql USE_PHP+= pdo_mysql .endif .if ${PORT_OPTIONS:MPGSQL} USES+= pgsql CONFIGURE_ARGS+= --with-postgresql=yes SUB_LIST+= REQ_PGSQL=postgresql USE_PHP+= pdo_pgsql .endif .if ${PORT_OPTIONS:MSQLITE} USE_SQLITE= yes CONFIGURE_ARGS+= --with-sqlite=yes SUB_LIST+= REQ_SQLITE=sqlite USE_PHP+= pdo_sqlite .endif do-install: @${ECHO} "Installing in ${BACULAWEB_HOME}" ${MKDIR} ${STAGEDIR}${BACULAWEB_HOME} cd ${WRKSRC} && ${COPYTREE_SHARE} application \ ${STAGEDIR}${BACULAWEB_HOME} cd ${WRKSRC} && ${COPYTREE_SHARE} core ${STAGEDIR}${BACULAWEB_HOME} ${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${BACULAWEB_HOME} .include