40 lines
1.4 KiB
Bash
40 lines
1.4 KiB
Bash
# Template file for 'ganeti'
|
|
pkgname=ganeti
|
|
version=2.15.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
nopie=yes
|
|
nocross="The cabal installs don't realize they are cross compiling"
|
|
patch_args="-Np1" # Thanks to the Debian project for the patches
|
|
configure_args="--enable-symlinks"
|
|
hostmakedepends="iproute2 pandoc graphviz pylint pep8 socat cabal-install curl
|
|
python-openssl python-simplejson python-parsing python-inotify qemu
|
|
python-bitarray python-ipaddr m4 fakeroot python-curl python-Sphinx"
|
|
makedepends="libcurl-devel ncurses-libs python-gobject2-devel"
|
|
depends="python-bitarray python-simplejson python-inotify qemu"
|
|
short_desc="Cluster virtual server management tool"
|
|
maintainer="Toyam Cox <Vaelatern@gmail.com>"
|
|
license="BSD"
|
|
homepage="http://www.ganeti.org/"
|
|
distfiles="http://downloads.ganeti.org/releases/${version%.*}/${pkgname}-${version}.tar.gz
|
|
https://www.stackage.org/lts-5.5/cabal.config"
|
|
checksum="1e09d29cae5020142d20a96165b23f3b62b5511b875051b6374d09c4c13c0b83
|
|
9974e9cff7825eb240d2251c95f59396c949dd5932c30cc244faf465cac66080"
|
|
skip_extraction="cabal.config"
|
|
|
|
build_options="syslog monitoring"
|
|
build_options_default="syslog monitoring"
|
|
desc_option_monitoring="Enable the monitoring daemon"
|
|
configure_args+=" $(vopt_enable monitoring) $(vopt_enable syslog)"
|
|
|
|
pre_configure() {
|
|
cabal update
|
|
cabal --config-file="${XBPS_SRCDISTDIR}/cabal.config" install \
|
|
--only-dependencies cabal/ganeti.template.cabal
|
|
ghc-pkg recache
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|