From 83fcce18d7394e7d47d8d4573113907f6b2a2cac Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sat, 7 Dec 2013 16:48:03 +0100 Subject: system/vagrant: Added (virtual development environments). Signed-off-by: Matteo Bernardini --- system/vagrant/README | 6 ++++ system/vagrant/slack-desc | 19 +++++++++++ system/vagrant/vagrant.SlackBuild | 66 +++++++++++++++++++++++++++++++++++++++ system/vagrant/vagrant.info | 10 ++++++ 4 files changed, 101 insertions(+) create mode 100644 system/vagrant/README create mode 100644 system/vagrant/slack-desc create mode 100644 system/vagrant/vagrant.SlackBuild create mode 100644 system/vagrant/vagrant.info (limited to 'system') diff --git a/system/vagrant/README b/system/vagrant/README new file mode 100644 index 0000000000..ef54445e52 --- /dev/null +++ b/system/vagrant/README @@ -0,0 +1,6 @@ +Vagrant is a tool for building complete virtualised development environments. + +Vagrant was originally written as a wrapper around VirtualBox, but it now +supports plugins for Amazon EC2, VMware and other virtualisation software. +Vagrant also integrates with provisioning software such as Chef, Puppet +and Ansible. diff --git a/system/vagrant/slack-desc b/system/vagrant/slack-desc new file mode 100644 index 0000000000..1d07fd725a --- /dev/null +++ b/system/vagrant/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +vagrant: vagrant (create and configure virtual development environments) +vagrant: +vagrant: Vagrant is a tool for building complete development environments built +vagrant: around virtualisation software such as VirtualBox. +vagrant: +vagrant: Homepage: http://www.vagrantup.com/ +vagrant: +vagrant: +vagrant: +vagrant: +vagrant: diff --git a/system/vagrant/vagrant.SlackBuild b/system/vagrant/vagrant.SlackBuild new file mode 100644 index 0000000000..bfddf22192 --- /dev/null +++ b/system/vagrant/vagrant.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# SlackBuild script for vagrant + +# Copyright 2013 Benjamin Trigona-Harany +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +PRGNAM=vagrant +VERSION=${VERSION:-1.3.5} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; +esac + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SRCARCH="i686" +elif [ "$ARCH" = "x86_64" ]; then + SRCARCH="$ARCH" +else + printf "$ARCH is not supported...\n" + exit 1 +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +cd $PKG +rpm2cpio < $CWD/${PRGNAM}_${VERSION}_$SRCARCH.rpm | cpio -ivmd + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/vagrant/vagrant.info b/system/vagrant/vagrant.info new file mode 100644 index 0000000000..0d85f43aa7 --- /dev/null +++ b/system/vagrant/vagrant.info @@ -0,0 +1,10 @@ +PRGNAM="vagrant" +VERSION="1.3.5" +HOMEPAGE="http://www.vagrantup.com" +DOWNLOAD="http://files.vagrantup.com/packages/a40522f5fabccb9ddabad03d836e120ff5d14093/vagrant_1.3.5_i686.rpm" +MD5SUM="7df58a4fac11039aa45e15561c549668" +DOWNLOAD_x86_64="http://files.vagrantup.com/packages/a40522f5fabccb9ddabad03d836e120ff5d14093/vagrant_1.3.5_x86_64.rpm" +MD5SUM_x86_64="02e52e0de6153ebec0a57e3684d0fe07" +REQUIRES="virtualbox" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="slackbuilds@jaxartes.net" -- cgit v1.2.3