small fixes

master
santic-zombie 2 years ago
parent 2b9bed2e98
commit 515ed38a2c
  1. 37
      APKBUILD
  2. 20
      README.md
  3. 2
      opennebula
  4. 2
      opennebula-flow
  5. 2
      opennebula-gate
  6. 2
      opennebula-hem
  7. 2
      opennebula-novnc
  8. 2
      opennebula-scheduler
  9. 2
      opennebula-ssh-agent
  10. 2
      opennebula-sunstone

@ -7,18 +7,19 @@ pkgdesc="OpenNebula Server and Scheduler (Community Edition)"
url="https://opennebula.io/"
arch="x86_64"
license="Apache"
depends="libvncserver
depends="g++
gnutls
libvncserver
shadow
libnsl
alpine-sdk
linux-headers
logrotate
npm
ronn
mariadb-server-utils
mariadb
mariadb-client
mariadb-server-utils
libxml2
xmlrpc-c
g++
ruby-nokogiri
ruby-rexml
ruby-xmlrpc
@ -26,9 +27,11 @@ depends="libvncserver
ruby-pg
ruby-augeas
libpg_query"
makedepends="bash
makedepends="alpine-sdk
bash
python2
libvncserver-dev
linux-headers
gnutls-dev
libnsl-dev
openssl-dev
@ -58,13 +61,15 @@ source="https://github.com/OpenNebula/one/archive/release-${pkgver}.tar.gz
opennebula-flow
opennebula-gate
opennebula-ssh-agent
opennebula.logrotate
"
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

@ -0,0 +1,20 @@
# APKBUILD
```
# apk add alpine-sdk sudo
# visudo
```
```
# addgroup <yourusername> abuild
```
```
# mkdir -p /var/cache/distfiles
# chmod a+w /var/cache/distfiles
```
```
abuild-keygen -a -i
```

@ -4,7 +4,7 @@ name=$RC_SVCNAME
description="OpenNebula management"
command="/usr/bin/oned"
command_args="-f"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

@ -3,7 +3,7 @@
name=$RC_SVCNAME
description="OpenNebula Flow Service"
command="/usr/bin/ruby /usr/lib/one/oneflow/oneflow-server.rb"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

@ -3,7 +3,7 @@
name=$RC_SVCNAME
description="OpenNebula Gate Daemon"
command="/usr/bin/ruby /usr/lib/one/onegate/onegate-server.rb"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

@ -3,7 +3,7 @@
name=$RC_SVCNAME
description="OpenNebula Hook Execution Service"
command="/usr/bin/ruby /usr/lib/one/onehem/onehem-server.rb"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

@ -3,7 +3,7 @@
name=$RC_SVCNAME
description="OpenNebula noVNC Server"
command="/usr/bin/novnc-server"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
supervisor="supervise-daemon"
depend() {

@ -3,7 +3,7 @@
name=$RC_SVCNAME
description="OpenNebula Cloud Scheduler Daemon"
command="/usr/bin/mm_sched"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

@ -4,7 +4,7 @@ name=$RC_SVCNAME
description="OpenNebula management"
command="/usr/bin/oned"
command_args="-f"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

@ -3,7 +3,7 @@
name=$RC_SVCNAME
description="OpenNebula Web UI Server"
command="/usr/bin/ruby /usr/lib/one/sunstone/sunstone-server.rb"
command_user="oneadmin:oneadmin"
command_user="oneadmin:cloud"
pidfile="/run/one/${RC_SVCNAME}.pid"
supervisor="supervise-daemon"

Loading…
Cancel
Save