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