2013-03-05 18:07:43 +01:00
|
|
|
# Created by: Dan Langille <dan@langille.org>
|
2006-08-08 16:44:24 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bacula-web
|
2016-08-27 22:36:54 +02:00
|
|
|
DISTVERSION= 7.2.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.
PR: 238330
2019-07-26 22:46:53 +02:00
|
|
|
PORTREVISION= 2
|
2014-08-10 09:20:24 +02:00
|
|
|
CATEGORIES= www sysutils
|
2014-08-09 15:38:42 +02:00
|
|
|
MASTER_SITES= http://www.bacula-web.org/files/bacula-web.org/downloads/
|
2006-08-08 16:44:24 +02:00
|
|
|
|
2016-08-24 20:51:02 +02:00
|
|
|
MAINTAINER= dvl@FreeBSD.org
|
2006-08-08 16:44:24 +02:00
|
|
|
COMMENT= Bacula-web provides a summarized output of Bacula jobs
|
|
|
|
|
2019-11-06 17:26:34 +01:00
|
|
|
BROKEN= unfetchable
|
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2016-08-24 20:51:02 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/docs/COPYING
|
2006-08-08 16:44:24 +02:00
|
|
|
|
2017-10-04 13:29:14 +02:00
|
|
|
USES= php:web tar:tgz
|
2014-08-09 15:38:42 +02:00
|
|
|
USE_PHP= gd gettext session
|
|
|
|
NO_BUILD= yes
|
2015-07-27 19:38:37 +02:00
|
|
|
NO_ARCH= yes
|
2014-08-09 15:38:42 +02:00
|
|
|
NO_WRKSUBDIR= yes
|
2006-08-08 16:44:24 +02:00
|
|
|
|
2014-08-09 15:38:42 +02:00
|
|
|
BACULAWEB_HOME?=${WWWDIR}
|
|
|
|
BASE= ${BACULAWEB_HOME:S|${PREFIX}/||}
|
2006-08-08 16:44:24 +02:00
|
|
|
SUB_FILES= pkg-message
|
2014-08-09 15:38:42 +02:00
|
|
|
PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} BASE=${BASE}
|
2014-08-09 15:54:07 +02:00
|
|
|
SUB_LIST= BASE=${BASE}
|
2014-08-09 15:38:42 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL SQLITE
|
|
|
|
OPTIONS_DEFAULT= PGSQL
|
2006-08-08 16:44:24 +02:00
|
|
|
|
2016-01-10 17:19:37 +01:00
|
|
|
SQLITE_USES= sqlite
|
|
|
|
|
2013-03-05 18:07:43 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-08-08 16:44:24 +02:00
|
|
|
|
2014-08-09 15:38:42 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2019-11-15 11:12:08 +01:00
|
|
|
USES+= mysql
|
2014-08-09 15:38:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=yes
|
|
|
|
SUB_LIST+= REQ_MYSQL=mysql
|
|
|
|
USE_PHP+= pdo_mysql
|
|
|
|
.endif
|
|
|
|
|
2013-03-05 18:07:43 +01:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2014-08-25 14:19:43 +02:00
|
|
|
USES+= pgsql
|
2006-08-08 16:44:24 +02:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql=yes
|
|
|
|
SUB_LIST+= REQ_PGSQL=postgresql
|
2014-08-09 15:38:42 +02:00
|
|
|
USE_PHP+= pdo_pgsql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
|
|
|
CONFIGURE_ARGS+= --with-sqlite=yes
|
|
|
|
SUB_LIST+= REQ_SQLITE=sqlite
|
|
|
|
USE_PHP+= pdo_sqlite
|
2006-08-08 16:44:24 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2014-08-09 15:38:42 +02:00
|
|
|
@${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}
|
2006-08-08 16:44:24 +02:00
|
|
|
|
2013-03-05 18:07:43 +01:00
|
|
|
.include <bsd.port.mk>
|