summaryrefslogtreecommitdiff
path: root/www/bacula-web/Makefile
blob: 645734d7b311d95bf8fc2f58c2d6bb79b9ca8d22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PORTNAME=	bacula-web
DISTVERSIONPREFIX=	v
DISTVERSION=	9.8.0
CATEGORIES=	www sysutils
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}

MAINTAINER=	ler@FreeBSD.org
COMMENT=	Bacula-web provides a summarized output of Bacula jobs
WWW=		https://www.bacula-web.org/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	${LOCALBASE}/bin/composer:devel/php-composer@${PHP_FLAVOR}

USES=		php:flavors,web
USE_GITHUB=	yes
USE_PHP=	dom gd gettext posix session simplexml tokenizer xml xmlwriter

NO_ARCH=	yes
NO_BUILD=	yes
SUB_FILES=	pkg-message

OPTIONS_DEFINE=		MYSQL PGSQL SQLITE
OPTIONS_DEFAULT=	MYSQL PGSQL SQLITE

SQLITE_USES=	sqlite

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USES+=			mysql
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}
CONFIGURE_ARGS+=	--with-sqlite=yes
SUB_LIST+=		REQ_SQLITE=sqlite
USE_PHP+=		pdo_sqlite sqlite3
.endif

do-install:
	# Maybe we should delete some files
	${FIND} ${WRKSRC} -name '*.orig' -delete
	@${ECHO} "Installing in ${WWWDIR}"
	(cd ${WRKSRC} && \
		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/${PORTNAME})

.include <bsd.port.mk>