You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
2.6 KiB
116 lines
2.6 KiB
2 years ago
|
# Contributor: Santic <email@santic-zombie.ru>
|
||
|
# Maintainer: Santic <email@santic-zombie.ru>
|
||
|
pkgname=opennebula
|
||
2 years ago
|
pkgver=6.4.0
|
||
2 years ago
|
pkgrel=1
|
||
|
pkgdesc="OpenNebula Server and Scheduler (Community Edition)"
|
||
|
url="https://opennebula.io/"
|
||
|
arch="x86_64"
|
||
2 years ago
|
options="!check"
|
||
2 years ago
|
license="Apache"
|
||
2 years ago
|
depends="augeas
|
||
|
curl
|
||
|
czmq
|
||
2 years ago
|
gnutls
|
||
2 years ago
|
g++
|
||
2 years ago
|
libvncserver
|
||
|
libnsl
|
||
2 years ago
|
libpg_query
|
||
2 years ago
|
libpq
|
||
|
libxml2
|
||
2 years ago
|
logrotate
|
||
|
mariadb
|
||
|
mariadb-client
|
||
|
mariadb-server-utils
|
||
2 years ago
|
npm
|
||
|
openssl
|
||
|
ruby
|
||
2 years ago
|
ruby-augeas
|
||
|
ruby-bundler
|
||
2 years ago
|
ruby-nokogiri
|
||
2 years ago
|
ruby-pg
|
||
2 years ago
|
ruby-rexml
|
||
|
ruby-xmlrpc
|
||
2 years ago
|
shadow
|
||
2 years ago
|
sqlite
|
||
|
sqlite-static
|
||
|
xmlrpc-c"
|
||
2 years ago
|
makedepends="alpine-sdk
|
||
2 years ago
|
augeas-dev
|
||
2 years ago
|
bash
|
||
2 years ago
|
curl-dev
|
||
2 years ago
|
czmq-dev
|
||
|
gnutls-dev
|
||
2 years ago
|
libnsl-dev
|
||
|
libpq-dev
|
||
2 years ago
|
libvncserver-dev
|
||
2 years ago
|
libxml2-dev
|
||
2 years ago
|
linux-headers
|
||
|
mariadb-dev
|
||
2 years ago
|
make
|
||
|
openssl-dev
|
||
|
python3
|
||
|
ronn
|
||
2 years ago
|
ruby-dev
|
||
|
scons
|
||
2 years ago
|
sqlite-dev
|
||
|
xmlrpc-c-dev"
|
||
2 years ago
|
install="${pkgname}.pre-install
|
||
2 years ago
|
${pkgname}.post-install
|
||
|
${pkgname}.post-upgrade
|
||
|
${pkgname}.pre-deinstall
|
||
|
${pkgname}.post-deinstall"
|
||
2 years ago
|
source="https://downloads.opennebula.io/packages/opennebula-${pkgver}/opennebula-${pkgver}.tar.gz
|
||
|
Gruntfile.patch
|
||
|
package.patch
|
||
2 years ago
|
svn.patch
|
||
|
opennebula
|
||
|
opennebula-scheduler
|
||
|
opennebula-novnc
|
||
|
opennebula-sunstone
|
||
|
opennebula-hem
|
||
|
opennebula-flow
|
||
|
opennebula-gate
|
||
|
opennebula-ssh-agent
|
||
|
opennebula.logrotate"
|
||
|
|
||
2 years ago
|
builddir="$srcdir/"
|
||
|
|
||
|
prepare() {
|
||
2 years ago
|
cd "opennebula-${pkgver}"
|
||
|
|
||
|
patch -p0 < "${srcdir}/Gruntfile.patch"
|
||
|
patch -p0 < "${srcdir}/package.patch"
|
||
2 years ago
|
patch -p0 < "${srcdir}/svn.patch"
|
||
2 years ago
|
|
||
|
rm -rf "${HOME}/.npm-packages"
|
||
|
mkdir "${HOME}/.npm-packages"
|
||
|
|
||
|
npm config set prefix "${HOME}/.npm-packages"
|
||
|
NPM_PACKAGES="${HOME}/.npm-packages"
|
||
|
export PATH="$PATH:$NPM_PACKAGES/bin"
|
||
|
|
||
2 years ago
|
npm install bower grunt -g
|
||
2 years ago
|
}
|
||
|
|
||
|
build() {
|
||
2 years ago
|
cd "opennebula-${pkgver}"
|
||
2 years ago
|
CXXFLAGS="--std=c++14" scons -j2 new_xmlrpc=yes mysql=yes sqlite=yes sunstone=yes systemd=no
|
||
|
}
|
||
|
|
||
|
package() {
|
||
2 years ago
|
cd "opennebula-${pkgver}"
|
||
2 years ago
|
|
||
2 years ago
|
install -D -m755 "${srcdir}/opennebula" "${pkgdir}/etc/init.d/opennebula"
|
||
|
install -D -m755 "${srcdir}/opennebula-scheduler" "${pkgdir}/etc/init.d/opennebula-scheduler"
|
||
|
install -D -m755 "${srcdir}/opennebula-novnc" "${pkgdir}/etc/init.d/opennebula-novnc"
|
||
|
install -D -m755 "${srcdir}/opennebula-sunstone" "${pkgdir}/etc/init.d/opennebula-sunstone"
|
||
|
install -D -m755 "${srcdir}/opennebula-hem" "${pkgdir}/etc/init.d/opennebula-hem"
|
||
|
install -D -m755 "${srcdir}/opennebula-flow" "${pkgdir}/etc/init.d/opennebula-flow"
|
||
|
install -D -m755 "${srcdir}/opennebula-gate" "${pkgdir}/etc/init.d/opennebula-gate"
|
||
|
install -D -m755 "${srcdir}/opennebula-ssh-agent" "${pkgdir}/etc/init.d/opennebula-ssh-agent"
|
||
2 years ago
|
install -D -m644 "${srcdir}/opennebula.logrotate" "${pkgdir}/etc/logrotate.d/opennebula.logrotate"
|
||
|
|
||
|
DESTDIR="${pkgdir}" ./install.sh -u oneadmin -g cloud
|
||
|
}
|