blob: a24265a00643388147753de135a46ea25e28fc74 (
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
59
60
61
62
63
64
|
# Created by: Dan Langille <dan@langille.org>
# $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 # or later
LICENSE_FILE= ${WRKSRC}/DOCS/COPYING
USES= tar:tgz
USE_PHP= gd gettext session
WANT_PHP_WEB= yes
NO_BUILD= yes
NO_ARCH= 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
SQLITE_USES= sqlite
.include <bsd.port.options.mk>
.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}
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 <bsd.port.mk>
|