|
|
|
@ -7,64 +7,69 @@ pkgdesc="OpenNebula Server and Scheduler (Community Edition)" |
|
|
|
|
url="https://opennebula.io/" |
|
|
|
|
arch="x86_64" |
|
|
|
|
license="Apache" |
|
|
|
|
depends="libvncserver |
|
|
|
|
gnutls |
|
|
|
|
libnsl |
|
|
|
|
alpine-sdk |
|
|
|
|
linux-headers |
|
|
|
|
npm |
|
|
|
|
ronn |
|
|
|
|
mariadb-server-utils |
|
|
|
|
mariadb-client |
|
|
|
|
libxml2 |
|
|
|
|
xmlrpc-c |
|
|
|
|
g++ |
|
|
|
|
ruby-nokogiri |
|
|
|
|
ruby-rexml |
|
|
|
|
ruby-xmlrpc |
|
|
|
|
ruby-bundler |
|
|
|
|
ruby-pg |
|
|
|
|
ruby-augeas |
|
|
|
|
libpg_query" |
|
|
|
|
makedepends="bash |
|
|
|
|
python2 |
|
|
|
|
libvncserver-dev |
|
|
|
|
gnutls-dev |
|
|
|
|
libnsl-dev |
|
|
|
|
openssl-dev |
|
|
|
|
sqlite-dev |
|
|
|
|
czmq-dev |
|
|
|
|
mariadb-dev |
|
|
|
|
ruby-dev |
|
|
|
|
libxml2-dev |
|
|
|
|
xmlrpc-c-dev |
|
|
|
|
scons |
|
|
|
|
make |
|
|
|
|
augeas-dev |
|
|
|
|
curl-dev |
|
|
|
|
libpq-dev" |
|
|
|
|
depends="g++ |
|
|
|
|
gnutls |
|
|
|
|
libvncserver |
|
|
|
|
shadow |
|
|
|
|
libnsl |
|
|
|
|
logrotate |
|
|
|
|
npm |
|
|
|
|
ronn |
|
|
|
|
mariadb |
|
|
|
|
mariadb-client |
|
|
|
|
mariadb-server-utils |
|
|
|
|
libxml2 |
|
|
|
|
xmlrpc-c |
|
|
|
|
ruby-nokogiri |
|
|
|
|
ruby-rexml |
|
|
|
|
ruby-xmlrpc |
|
|
|
|
ruby-bundler |
|
|
|
|
ruby-pg |
|
|
|
|
ruby-augeas |
|
|
|
|
libpg_query" |
|
|
|
|
makedepends="alpine-sdk |
|
|
|
|
bash |
|
|
|
|
python2 |
|
|
|
|
libvncserver-dev |
|
|
|
|
linux-headers |
|
|
|
|
gnutls-dev |
|
|
|
|
libnsl-dev |
|
|
|
|
openssl-dev |
|
|
|
|
sqlite-dev |
|
|
|
|
czmq-dev |
|
|
|
|
mariadb-dev |
|
|
|
|
ruby-dev |
|
|
|
|
libxml2-dev |
|
|
|
|
xmlrpc-c-dev |
|
|
|
|
scons |
|
|
|
|
make |
|
|
|
|
augeas-dev |
|
|
|
|
curl-dev |
|
|
|
|
libpq-dev" |
|
|
|
|
install="${pkgname}.pre-install |
|
|
|
|
${pkgname}.post-install |
|
|
|
|
${pkgname}.post-upgrade |
|
|
|
|
${pkgname}.pre-deinstall |
|
|
|
|
${pkgname}.post-deinstall" |
|
|
|
|
${pkgname}.post-install |
|
|
|
|
${pkgname}.post-upgrade |
|
|
|
|
${pkgname}.pre-deinstall |
|
|
|
|
${pkgname}.post-deinstall" |
|
|
|
|
source="https://github.com/OpenNebula/one/archive/release-${pkgver}.tar.gz |
|
|
|
|
svn.patch |
|
|
|
|
opennebula |
|
|
|
|
opennebula-scheduler |
|
|
|
|
opennebula-novnc |
|
|
|
|
opennebula-sunstone |
|
|
|
|
opennebula-hem |
|
|
|
|
opennebula-flow |
|
|
|
|
opennebula-gate |
|
|
|
|
opennebula-ssh-agent |
|
|
|
|
opennebula.logrotate |
|
|
|
|
" |
|
|
|
|
svn.patch |
|
|
|
|
opennebula |
|
|
|
|
opennebula-scheduler |
|
|
|
|
opennebula-novnc |
|
|
|
|
opennebula-sunstone |
|
|
|
|
opennebula-hem |
|
|
|
|
opennebula-flow |
|
|
|
|
opennebula-gate |
|
|
|
|
opennebula-ssh-agent |
|
|
|
|
opennebula.logrotate" |
|
|
|
|
|
|
|
|
|
builddir="$srcdir/" |
|
|
|
|
|
|
|
|
|
prepare() { |
|
|
|
|
cd "one-release-${pkgver}" |
|
|
|
|
patch -p0 < "${srcdir}/svn.patch" |
|
|
|
|
npm config set prefix '~/.local/' |
|
|
|
|
prefix=~/.local/ |
|
|
|
|
npm config set python python2.7 |
|
|
|
|
npm install bower grunt -g |
|
|
|
|
} |
|
|
|
@ -77,14 +82,14 @@ build() { |
|
|
|
|
package() { |
|
|
|
|
cd "one-release-${pkgver}" |
|
|
|
|
|
|
|
|
|
install -D -m644 "${srcdir}/opennebula" "${pkgdir}/etc/init.d/opennebula" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-scheduler" "${pkgdir}/etc/init.d/opennebula-scheduler" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-novnc" "${pkgdir}/etc/init.d/opennebula-novnc" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-sunstone" "${pkgdir}/etc/init.d/opennebula-sunstone" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-hem" "${pkgdir}/etc/init.d/opennebula-hem" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-flow" "${pkgdir}/etc/init.d/opennebula-flow" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-gate" "${pkgdir}/etc/init.d/opennebula-gate" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula-ssh-agent" "${pkgdir}/etc/init.d/opennebula-ssh-agent" |
|
|
|
|
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" |
|
|
|
|
install -D -m644 "${srcdir}/opennebula.logrotate" "${pkgdir}/etc/logrotate.d/opennebula.logrotate" |
|
|
|
|
|
|
|
|
|
DESTDIR="${pkgdir}" ./install.sh -u oneadmin -g cloud |
|
|
|
|