From b6e3ab5ad9c5038a7ed2504840b60eca3a41032d Mon Sep 17 00:00:00 2001 From: dataCobra Date: Tue, 23 Aug 2022 09:59:22 +0200 Subject: [PATCH] vagrant: update to 2.3.0. --- .../silence-warning-about-installer.patch | 15 +++++++++++ srcpkgs/vagrant/template | 27 +++++++++++-------- 2 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 srcpkgs/vagrant/patches/silence-warning-about-installer.patch diff --git a/srcpkgs/vagrant/patches/silence-warning-about-installer.patch b/srcpkgs/vagrant/patches/silence-warning-about-installer.patch new file mode 100644 index 000000000000..4432a13d3737 --- /dev/null +++ b/srcpkgs/vagrant/patches/silence-warning-about-installer.patch @@ -0,0 +1,15 @@ +--- /bin/vagrant 2022-08-06 00:16:44.000000000 +0200 ++++ /bin/vagrant 2022-08-23 09:50:50.613805575 +0200 +@@ -221,11 +221,6 @@ + end + end + +- if !Vagrant.in_installer? && !Vagrant.very_quiet? +- # If we're not in the installer, warn. +- env.ui.warn(I18n.t("vagrant.general.not_in_installer") + "\n", prefix: false) +- end +- + # Acceptable experimental flag values include: + # + # Unset - Disables experimental features + diff --git a/srcpkgs/vagrant/template b/srcpkgs/vagrant/template index f15d85850d03..4443a077508f 100644 --- a/srcpkgs/vagrant/template +++ b/srcpkgs/vagrant/template @@ -1,7 +1,7 @@ # Template file for 'vagrant' pkgname=vagrant -version=2.2.19 -revision=2 +version=2.3.0 +revision=1 archs="i686 x86_64*" hostmakedepends="ruby" makedepends="ruby-devel zlib-devel" @@ -10,8 +10,9 @@ short_desc="Tool for building and distributing development environments" maintainer="Andrea Brancaleoni " license="MIT" homepage="https://www.vagrantup.com/" -distfiles="https://github.com/mitchellh/${pkgname}/archive/v${version}.tar.gz" -checksum=4f0e6b1d466e26dead682c4d4843e8f64a012eba4be91506ae6c6d34d3d9c8f9 +changelog="https://github.com/hashicorp/${pkgname}/blob/v${version}/CHANGELOG.md" +distfiles="https://github.com/hashicorp/${pkgname}/archive/v${version}.tar.gz" +checksum=1931dbf29ec3c6622a649ae145fe706e5b957d7075870ce577358dd22c3d5dca nocross=yes post_extract() { @@ -25,6 +26,17 @@ do_build() { do_install() { GEM_PATH=$DESTDIR/usr/lib/$pkgname GEM_HOME="$GEM_PATH" gem install $pkgname-$version.gem --no-document -- --disable-clean + vlicense LICENSE + + vmkdir usr/bin + vbin $FILESDIR/$pkgname + + vcompletion "contrib/bash/completion.sh" bash + vcompletion "contrib/zsh/_vagrant" zsh + + mkdir -p /usr/share/vim/vim90/ftplugin/ + cp contrib/vim/vagrantfile.vim /usr/share/vim/vim90/ftplugin/ + find ${DESTDIR} -type f -name \*.a -delete find ${DESTDIR} -type f -name \*.log -delete find ${DESTDIR} -type f -name \*.c -delete @@ -49,11 +61,4 @@ do_install() { find ${DESTDIR} -type d -name doc -print0|xargs -0 rm -rf -- find ${DESTDIR} -type d -name ports -print0|xargs -0 rm -rf -- rm -r ${DESTDIR}/usr/lib/$pkgname/cache - - vmkdir usr/bin - vmkdir usr/share/bash-completion/completions - vbin $FILESDIR/$pkgname - ln -sf /usr/lib/$pkgname/gems/$pkgname-$version/contrib/bash/completion.sh \ - $DESTDIR/usr/share/bash-completion/completions/$pkgname - vlicense LICENSE }