mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 08:16:54 +00:00
update OS / dist packages on build machines, fixes #717
This commit is contained in:
parent
a2e356dccf
commit
c7776fa271
1 changed files with 9 additions and 0 deletions
9
Vagrantfile
vendored
9
Vagrantfile
vendored
|
@ -13,6 +13,8 @@ end
|
|||
def packages_debianoid
|
||||
return <<-EOF
|
||||
apt-get update
|
||||
# install all the (security and other) updates
|
||||
apt-get dist-upgrade -y
|
||||
# for building borgbackup and dependencies:
|
||||
apt-get install -y libssl-dev libacl1-dev liblz4-dev libfuse-dev fuse pkg-config
|
||||
usermod -a -G fuse vagrant
|
||||
|
@ -49,6 +51,8 @@ end
|
|||
|
||||
def packages_darwin
|
||||
return <<-EOF
|
||||
# install all the (security and other) updates
|
||||
sudo softwareupdate --install --all
|
||||
# get osxfuse 3.0.x pre-release code from github:
|
||||
curl -s -L https://github.com/osxfuse/osxfuse/releases/download/osxfuse-3.0.9/osxfuse-3.0.9.dmg >osxfuse.dmg
|
||||
MOUNTDIR=$(echo `hdiutil mount osxfuse.dmg | tail -1 | awk '{$1="" ; print $0}'` | xargs -0 echo) \
|
||||
|
@ -67,6 +71,8 @@ end
|
|||
|
||||
def packages_freebsd
|
||||
return <<-EOF
|
||||
# install all the (security and other) updates, base system
|
||||
freebsd-update --not-running-from-cron fetch install
|
||||
# for building borgbackup and dependencies:
|
||||
pkg install -y openssl liblz4 fusefs-libs pkgconf
|
||||
pkg install -y fakeroot git bash
|
||||
|
@ -83,6 +89,9 @@ def packages_freebsd
|
|||
sysctl vfs.usermount=1
|
||||
pw groupmod operator -M vagrant
|
||||
touch ~vagrant/.bash_profile ; chown vagrant ~vagrant/.bash_profile
|
||||
# install all the (security and other) updates, packages
|
||||
pkg update
|
||||
yes | pkg upgrade
|
||||
EOF
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue