summaryrefslogtreecommitdiff
path: root/pkgtools/tinderbox-dragonfly/options.mk
blob: e599a1d3a4f0df6963ad646180ebb7364e0921d2 (plain)
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
# $NetBSD: options.mk,v 1.2 2011/11/06 19:51:13 joerg Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.tbox-dfly
PKG_SUPPORTED_OPTIONS=	pgsql mysql webui anybody lsof emailer
PKG_SUGGESTED_OPTIONS=	pgsql webui
PLIST_VARS+=		WEBUI

.include "../../mk/bsd.options.mk"

########################################
#  WEB INTERFACE AND DATABASE OPTIONS  #
########################################

.if  empty(PKG_OPTIONS:Mpgsql) && empty(PKG_OPTIONS:Mmysql)
PKG_FAIL_REASON+=	"Tinderbox requires a database or confirmation you have already installed on."
PKG_FAIL_REASON+=	"Please select either pgsql or mysql"
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
.include "../../mk/pgsql.buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mmysql)
.include "../../mk/mysql.buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mwebui)
PLIST.WEBUI=	yes
.include "../../lang/php/phpversion.mk"
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+=	p5-DBD-postgresql>=2.12:../../databases/p5-DBD-postgresql
.if !empty(PKG_OPTIONS:Mwebui)
DEPENDS+=	${PHP_PKG_PREFIX}-pear-MDB2_Driver_pgsql-[0-9]*:../../databases/pear-MDB2_Driver_pgsql
DEPENDS+=	${PHP_PKG_PREFIX}-pgsql>=5.1:../../databases/php-pgsql
.endif
.endif

.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+=	p5-DBD-mysql>=4:../../databases/p5-DBD-mysql
.if !empty(PKG_OPTIONS:Mwebui)
DEPENDS+=	${PHP_PKG_PREFIX}-pear-MDB2_Driver_mysql>1.5:../../databases/pear-MDB2_Driver_mysql
DEPENDS+=	${PHP_PKG_PREFIX}-mysql>=5.1:../../databases/php-mysql
.endif
.endif

#####################
#  LIST OPEN FILES  #
#####################

.if !empty(PKG_OPTIONS:Mlsof)
DEPENDS+=		lsof>=4.83:../../sysutils/lsof
PKG_FAIL_REASON+=	"LSOF package is broken for DragonFly, remove the option for now."
.endif

#########################
#  EMAIL NOTIFICATIONS  #
#########################

.if !empty(PKG_OPTIONS:Memailer)
DEPENDS+=	p5-Net>=1.21:../../net/p5-Net
.endif