apk build
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.
opennebula-alpine/opennebula/APKBUILD

116 lines
2.6 KiB

2 years ago
# Contributor: Santic <email@santic-zombie.ru>
# Maintainer: Santic <email@santic-zombie.ru>
pkgname=opennebula
pkgver=6.4.0
2 years ago
pkgrel=1
pkgdesc="OpenNebula Server and Scheduler (Community Edition)"
url="https://opennebula.io/"
arch="x86_64"
options="!check"
2 years ago
license="Apache"
2 years ago
depends="augeas
curl
czmq
2 years ago
gnutls
g++
2 years ago
libvncserver
libnsl
2 years ago
libpg_query
libpq
libxml2
2 years ago
logrotate
mariadb
mariadb-client
mariadb-server-utils
2 years ago
npm
openssl
ruby
ruby-augeas
ruby-bundler
2 years ago
ruby-nokogiri
ruby-pg
2 years ago
ruby-rexml
ruby-xmlrpc
2 years ago
shadow
sqlite
sqlite-static
xmlrpc-c"
2 years ago
makedepends="alpine-sdk
2 years ago
augeas-dev
2 years ago
bash
curl-dev
2 years ago
czmq-dev
gnutls-dev
libnsl-dev
libpq-dev
2 years ago
libvncserver-dev
libxml2-dev
2 years ago
linux-headers
mariadb-dev
make
openssl-dev
python3
ronn
2 years ago
ruby-dev
scons
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"
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() {
cd "opennebula-${pkgver}"
patch -p0 < "${srcdir}/Gruntfile.patch"
patch -p0 < "${srcdir}/package.patch"
2 years ago
patch -p0 < "${srcdir}/svn.patch"
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"
npm install bower grunt -g
2 years ago
}
build() {
cd "opennebula-${pkgver}"
2 years ago
CXXFLAGS="--std=c++14" scons -j2 new_xmlrpc=yes mysql=yes sqlite=yes sunstone=yes systemd=no
}
package() {
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
}