diff options
author | Rafael Reggiani Manzo | 2016-01-16 01:06:02 -0200 |
---|---|---|
committer | Rafael Reggiani Manzo | 2016-02-17 19:43:42 -0200 |
commit | ef76754ef36305102c99e421a5f4fbdd811190f2 (patch) | |
tree | d9a26f9e9be5eaf8ca99cfbf5f44f292df8f00cc | |
download | aur-ef76754ef36305102c99e421a5f4fbdd811190f2.tar.gz |
Import original PACKAGE from AUR3
This is a good starting point.
-rw-r--r-- | .SRCINFO | 40 | ||||
-rw-r--r-- | ChangeLog | 188 | ||||
-rw-r--r-- | PKGBUILD | 85 | ||||
-rw-r--r-- | chown_fix.patch | 16 | ||||
-rw-r--r-- | opennebula.install | 28 | ||||
-rw-r--r-- | opennebula.service | 10 |
6 files changed, 367 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4b9cabc0de86 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,40 @@ +# Generated by mksrcinfo v8 +# Wed Feb 17 21:36:46 UTC 2016 +pkgbase = opennebula + pkgdesc = Virtual management infrastructure as a service (IaaS) toolkit for cloud computing (NOTE: Read the PKGBUILD!) + pkgver = 4.12.1 + pkgrel = 1 + url = http://docs.opennebula.org/stable + install = opennebula.install + changelog = ChangeLog + arch = i686 + arch = x86_64 + license = Apache + makedepends = xmlrpc-c>=1.31 + makedepends = pkgconfig + makedepends = scons>=0.98 + depends = ruby>=1.8.7 + depends = xmlrpc-c>=1.31 + depends = openssl>=0.9.8 + depends = sqlite3>=3.6 + depends = openssh + depends = libxml2>=2.7 + depends = curl + depends = libxslt + depends = expat + depends = cdrkit + depends = log4cpp>=1.0 + depends = ruby-opennebula>=4.12.1 + optdepends = nfs-utils: for using the shared file system storage model + optdepends = mariadb>=5.1: optional replacement for SQLite as the DB back-end + optdepends = libmariadbclient>=5.1: required if using MariaDB/MySQL instead of SQLite + conflicts = opennebula-unstable + source = http://downloads.opennebula.org/packages/opennebula-4.12.1/opennebula-4.12.1.tar.gz + source = opennebula.service + source = chown_fix.patch + sha512sums = d1f88ba8ccc8a718f6c3ff0cab2d5c72ae06f4e7c9f0bfd66e2142e7face31b5d28f839e02a92d07a34564403d3e09cdcea8128496756d523fe1531c3530f94b + sha512sums = ca1080d6a37add816a4b7b10338cff437046e8f3ae0e40ea6b1a9d01663ea00c0d47436a6962bdd755a1325e73c91833cff07a9bc05d95f4aad6d08250f50577 + sha512sums = 8d6a311072da61ca49458aaf787daf4ef5c5969a9aa282f2276d679dc38e14e5fd1c23bc51b12a29d2d40b65aa45bd2c38d6741726b09d75a38565b7d4ad4677 + +pkgname = opennebula + diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000000000000..1177db5ea33f --- /dev/null +++ b/ChangeLog @@ -0,0 +1,188 @@ +2015-05-05 Jason St. John <jstjohn .. purdue . edu> + + * 4.12.1-1: + New upstream release (4.12.1). + +2015-03-11 Jason St. John <jstjohn .. purdue . edu> + + * 4.12.0-1: + New upstream release (4.12.0). + +2015-02-13 Jason St. John <jstjohn .. purdue . edu> + + * 4.10.2-1: + New upstream release (4.10.2). + +2014-12-03 Jason St. John <jstjohn .. purdue . edu> + + * 4.10.1-1: + New upstream release (4.10.1). + +2014-11-05 Jason St. John <jstjohn .. purdue . edu> + + * 4.10.0-1: + New upstream release (4.10.0). + +2014-08-28 Jason St. John <jstjohn .. purdue . edu> + + * 4.8.0-1: + New upstream release (4.8.0). + +2014-07-09 Jason St. John <jstjohn .. purdue . edu> + + * 4.6.2-1: + New upstream release (4.6.2). + +2014-06-11 Jason St. John <jstjohn .. purdue . edu> + + * 4.6.1-2: + Fix broken upstream URL link in PKGBUILD. + +2014-05-25 Jason St. John <jstjohn .. purdue . edu> + + * 4.6.1-1: + New upstream release (4.6.1). + +2014-02-05 Jason St. John <jstjohn .. purdue . edu> + + * 4.4.1-1: + New upstream release (4.4.1). + Added dependency 'ruby-opennebula'. + Removed message in post_install() about installing the 'sequel' Ruby gem. + Updated documentation links in the PKGBUILD. + Added message in post_remove() about uninstalling Ruby gems via pacman. + +2013-12-16 Jason St. John <jstjohn .. purdue . edu> + + * 4.4.0-1: + New upstream release (4.4.0). + Require xmlrpc-c >= 1.31 and build with option "new_xmlrpc=yes". + Patch 'install.sh' script in prepare() instead of package(). + +2013-05-22 Jason St. John <jstjohn .. purdue . edu> + + * 4.0.1-1: + New upstream release (4.0.1). + +2013-05-13 Jason St. John <jstjohn .. purdue . edu> + + * 4.0.0-1: + New upstream release (4.0.0). + Added dependency 'log4cpp'. + +2013-03-28 Jason St. John <jstjohn .. purdue . edu> + + * 3.8.3-3: + Replaced dependencies on MySQL with their MariaDB counterparts per the + Arch announcement. + Replaced dependency on 'xmlrpc-c-abyss' with 'xmlrpc-c', as the Arch + package in [community] now enables abyss. + +2013-02-06 Jason St. John <jstjohn .. purdue . edu> + + * 3.8.3-2: + Dropped package support for Arch's initscripts. + Removed the 'oned' rc.d script. + +2013-01-11 Jason St. John <jstjohn .. purdue . edu> + + * 3.8.3-1: + New upstream release (3.8.3). + Removed unnecessary var_run.patch. + +2012-12-11 Jason St. John <jstjohn .. purdue . edu> + + * 3.8.1-2: + Removed Vim modelines from PKGBUILD and other files. + Replaced the two-space indents with tabs. + Fixed a bug when creating a default .one/one_auth file. + +2012-10-30 Jason St. John <jstjohn .. purdue . edu> + + * 3.8.1-1: + New upstream release (3.8.1). + +2012-10-22 Jason St. John <jstjohn .. purdue . edu> + + * 3.8.0-1: + New upstream release (3.8.0). + Added a systemd service file. + Two harmless possible error messages when building the package are now + sent to /dev/null. + +2012-07-11 Jason St. John <jstjohn .. purdue . edu> + + * 3.6.0-1: + New upstream release (3.6.0). + Minor change in the pre_remove() messages added in version 3.4.0-1. + +2012-06-25 Jason St. John <jstjohn .. purdue . edu> + + * 3.4.1-3: + Added minimum dependency versions to PKGBUILD. + Patched install.sh to use /run instead of /var/run. + Patched install.sh to not chown directories because the package otherwise + fails to build on fresh installations. + +2012-05-14 Jason St. John <jstjohn .. purdue . edu> + + * 3.4.1-2: + Fixed two variable expansion bugs in the PKGBUILD. + Slightly altered the messages in opennebula.install to be more visible. + +2012-05-11 Jason St. John <jstjohn .. purdue . edu> + + * 3.4.1-1: + New upstream release (3.4.1). + +2012-04-11 Jason St. John <jstjohn .. purdue . edu> + + * 3.4.0-1: + New upstream release (3.4.0). + Added messages to pre_remove() in opennebula.install that echo a message + when oneadmin:cloud is removed from the system. + +2012-03-02 Jason St. John <jstjohn .. purdue . edu> + + * 3.2.1-3: + Added 'cdrkit' as a dependency for contextualization. + +2012-02-25 Jason St. John <jstjohn .. purdue . edu> + + * 3.2.1-2: + Added compatibility support for the 'opennebula-unstable' package. + Added 'xmlrpc-c-abyss' to the makedepends() array. + +2012-02-07 Jason St. John <jstjohn .. purdue . edu> + + * 3.2.1-1: + Changed package version numbering scheme to use three digits instead of + two. + New upstream release (3.2.1). + The OpenNebula Watch bug has been fixed; removed patching instructions + from PKGBUILD. + The PKGBUILD now automatically detects whether to pass the '-k' switch to + ./install.sh when installing/upgrading. This means that your OpenNebula + config files won't get overwritten when upgrading anymore. + Removed a few commented installation steps because it is far better to + just make the PKGBUILD do the 'vanilla' install and allow the user to + tweak it as necessary. + +2012-01-03 Jason St. John <jstjohn .. purdue . edu> + + * 3.0-2 (unreleased): + Fixed a bug with the `useradd` command in the .install script. + Fixed a bug in the oned rc.d script. + +2011-12-25 Jason St. John <jstjohn .. purdue . edu> + + * 3.0-1 : + Added a ChangeLog (this file). + New upstream release (3.0.0). + Added many new dependencies to the PKGBUILD. + Set the minimum required version of Ruby to 1.8.7. + Added optional installation methods to build() (in the PKGBUILD). + Removed the oneuser.patch file from the PKGBUILD and tarball (the patch + was for OpenNebula 2.0). + Significant improvements to /etc/rc.d/oned and the opennebula.install + script. diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f2fff7b6d5e4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,85 @@ +# Maintainer: Jason St. John <jstjohn .. purdue . edu> +# Contributor: Mikhail Kulemin <mihkulemin@gmail.com> +# Contributor: Michael Pusterhofer <pusterhofer (at) student (dot) tugraz (dot) at> + +pkgname=opennebula +_unstable_pkg=opennebula-unstable +pkgver=4.12.1 +pkgrel=1 +pkgdesc="Virtual management infrastructure as a service (IaaS) toolkit for cloud computing (NOTE: Read the PKGBUILD!)" +arch=('i686' 'x86_64') +url='http://docs.opennebula.org/stable' +license=('Apache') +depends=('ruby>=1.8.7' + 'xmlrpc-c>=1.31' + 'openssl>=0.9.8' + 'sqlite3>=3.6' + 'openssh' + 'libxml2>=2.7' + 'curl' + 'libxslt' + 'expat' + 'cdrkit' + 'log4cpp>=1.0' + 'ruby-opennebula>=4.12.1') +makedepends=('xmlrpc-c>=1.31' + 'pkgconfig' + 'scons>=0.98') +optdepends=('nfs-utils: for using the shared file system storage model' + 'mariadb>=5.1: optional replacement for SQLite as the DB back-end' + 'libmariadbclient>=5.1: required if using MariaDB/MySQL instead of SQLite') +conflicts=('opennebula-unstable') +install=opennebula.install +changelog=ChangeLog +source=("http://downloads.opennebula.org/packages/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz" + 'opennebula.service' + 'chown_fix.patch') +sha512sums=('d1f88ba8ccc8a718f6c3ff0cab2d5c72ae06f4e7c9f0bfd66e2142e7face31b5d28f839e02a92d07a34564403d3e09cdcea8128496756d523fe1531c3530f94b' + 'ca1080d6a37add816a4b7b10338cff437046e8f3ae0e40ea6b1a9d01663ea00c0d47436a6962bdd755a1325e73c91833cff07a9bc05d95f4aad6d08250f50577' + '8d6a311072da61ca49458aaf787daf4ef5c5969a9aa282f2276d679dc38e14e5fd1c23bc51b12a29d2d40b65aa45bd2c38d6741726b09d75a38565b7d4ad4677') + +prepare() { + cd "${pkgname}-${pkgver}" + + # Patch upstream install script to not attempt to chown the install + # directories because `makepkg` will otherwise fail on a fresh installation. + # We do our own chown in post_install(). + patch < "${srcdir}/chown_fix.patch" +} + +build() { + cd "${pkgname}-${pkgver}" + + ########################################################################### + ## ## + ## It is highly recommended that you read the documentation and tweak ## + ## the PKGBUILD accordingly: ## + ## http://docs.opennebula.org/stable/integration/references/compile.html ## + ## ## + ## This package assumes a self-contained install. If you do NOT want a ## + ## self-contained install, then remove `-d /srv/cloud/one` from the ## + ## package() function and MAKE SURE you properly change the ## + ## appropriate sections of opennebula-unstable.install ## + ## ## + ########################################################################### + + # This builds the vanilla OpenNebula package. Tweak this line as desired. + scons new_xmlrpc=yes +} + +package() { + cd "${pkgname}-${pkgver}" + + install -D -m644 "${srcdir}/opennebula.service" "${pkgdir}/usr/lib/systemd/system/opennebula.service" + + # This checks to see whether OpenNebula is currently installed. To avoid + # a potentially scary message, errors are sent to /dev/null + if [[ ("$(pacman -Qq ${pkgname} 2>/dev/null)" == "${pkgname}") || ("$(pacman -Qq ${_unstable_pkg} 2>/dev/null)" == "${_unstable_pkg}") ]]; then + # Use -k when running ./install.sh to keep previous configuration files + # Note: It is highly recommended to not keep the oned.conf file. + DESTDIR="${pkgdir}" ./install.sh -k -u oneadmin -g cloud -d /srv/cloud/one + else + # Do not use -k when running ./install.sh for new installations + DESTDIR="${pkgdir}" ./install.sh -u oneadmin -g cloud -d /srv/cloud/one + fi +} diff --git a/chown_fix.patch b/chown_fix.patch new file mode 100644 index 000000000000..0bb7ea2a1007 --- /dev/null +++ b/chown_fix.patch @@ -0,0 +1,16 @@ +--- install.sh 2013-11-27 14:49:25.474802021 -0400 ++++ install.sh.new 2015-03-10 21:28:10.505393378 -0400 +@@ -2078,11 +2078,12 @@ + + # --- Set ownership or remove OpenNebula directories --- + + if [ "$UNINSTALL" = "no" ] ; then + for d in $CHOWN_DIRS; do +- chown -R $ONEADMIN_USER:$ONEADMIN_GROUP $DESTDIR$d ++ : ++# chown -R $ONEADMIN_USER:$ONEADMIN_GROUP $DESTDIR$d + done + else + for d in `echo $DELETE_DIRS | awk '{for (i=NF;i>=1;i--) printf $i" "}'`; do + rmdir $d + done diff --git a/opennebula.install b/opennebula.install new file mode 100644 index 000000000000..9fd41e010afb --- /dev/null +++ b/opennebula.install @@ -0,0 +1,28 @@ +pre_install() { + # Prepare for a self-contained installation before build() runs + mkdir -p /srv/cloud/one + groupadd cloud + useradd -d /srv/cloud/one -g cloud -c "OpenNebula administrator account" oneadmin + mkdir -p /srv/cloud/one/.one/ +} + +post_install() { + # Append the oneadmin credentials to one_auth to avoid overwriting a file + # that may already exist + echo 'oneadmin:0neadm1n' >> /srv/cloud/one/.one/one_auth + echo ">> You must edit the password in /srv/cloud/one/.one/one_auth" + chown oneadmin:cloud -R /srv/cloud/one /var/log/one /var/lib/one /run/one /var/lock/one +} + +pre_remove() { + userdel oneadmin && echo ">> User 'oneadmin' has been removed." + groupdel cloud && echo ">> Group 'cloud' has been removed." +} + +post_remove() { + echo ">> You can uninstall the Ruby gems if no other packages require them." + echo ">> For example, 'gem uninstall sequel' would uninstall the 'sequel' Ruby gem." + echo ">> If you installed the Ruby gems via pacman, then uninstall the gems via pacman." + echo ">> " + echo ">> You may also want to remove the /srv/cloud/one directory." +} diff --git a/opennebula.service b/opennebula.service new file mode 100644 index 000000000000..db7171423369 --- /dev/null +++ b/opennebula.service @@ -0,0 +1,10 @@ +[Unit] +Description=OpenNebula management + +[Service] +Type=oneshot +ExecStart=/usr/bin/su - oneadmin /usr/bin/one start +ExecStop=/usr/bin/su - oneadmin /usr/bin/one stop +TimeoutSec=0 +StandardInput=tty +RemainAfterExit=yes |