# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = "VDE2"
version = "2.3.2"

homepage = 'http://vde.sourceforge.net'
description = """VDE is an ethernet local_compliant virtual network that
can be spawned over a set of physical local_computer over the Internet.
VDE is part of virtualsquare project."""

toolchain = SYSTEM

sources = [SOURCELOWER_TAR_BZ2]
source_urls = ['https://netix.dl.sourceforge.net/project/vde/vde2/%(version)s/']

patches = ['vde2-slirpvde-sigpipe.patch']

sanity_check_paths = {
    'files': ['bin/vde_switch'],
    'dirs': ['bin', 'etc', 'share'],
}

# It fails in case of default value
parallel = 1

modextravars = {
    'VDE2_HOME': '%(installdir)s',
    'VDE2_DIR': '%(installdir)s',
}

moduleclass = 'tools'
