summaryrefslogtreecommitdiff
path: root/misc/py-anita/options.mk
blob: b7c4a8d179ee82690d8fe390333ecd6d6c0ccefd (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
# $NetBSD: options.mk,v 1.6 2014/07/22 18:18:43 gson Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.py-anita
PKG_SUPPORTED_OPTIONS=		xen
# In the future, qemu0 and qemu might install with different names,
# allowing anita to choose them dynamically.  For now, they conflict,
# so don't permit both.
PKG_OPTIONS_OPTIONAL_GROUPS=	qemu
PKG_OPTIONS_GROUP.qemu=		qemu-0 qemu 
PKG_SUGGESTED_OPTIONS=

# To run (but not to build), anita needs some way to run a virtual
# machine.  The standard approach is qemu-0, because it is known to
# work.  Newer qemu is problematic.  xen also works, but is less well
# tested.  See anita(1) for details of the above.

# By default, py-anita does not depend on any of these, because a
# hypervisor one doesn't want to use is a large burden (qemu in
# particular is very large).  While these options can be enabled, they
# also serve to document ways to fulfill the hypervisor requirement.

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

.if !empty(PKG_OPTIONS:Mqemu-0)
DEPENDS+=	qemu>=0.12.3nb2:../../emulators/qemu0
.endif

.if !empty(PKG_OPTIONS:Mqemu)
# Some versions of qemu1/2 do not work reliably, see the anita(1)
# man page.  Version 2.0.0nb4 or newer should work.
DEPENDS+=	qemu>=1.0:../../emulators/qemu
.endif

.if !empty(PKG_OPTIONS:Mxen)
# Choose 4.1 because that has been tested (with --vmm xm) and is
# arguably a reasonable version to recommend to people wanting to
# install xen to run anita.  (A good case can be made for 4.2, and
# anyone who has tested it with anita is welcome to change this to
# 4.2.)
DEPENDS+=	xenkernel41>=4.1:../../sysutils/xenkernel41
DEPENDS+=	xentools41>=4.1:../../sysutils/xentools41
.endif