summaryrefslogtreecommitdiffstats
path: root/contrib/vagrant/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/vagrant/bootstrap.sh')
-rw-r--r--contrib/vagrant/bootstrap.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/contrib/vagrant/bootstrap.sh b/contrib/vagrant/bootstrap.sh
new file mode 100644
index 000000000..c887c1a0e
--- /dev/null
+++ b/contrib/vagrant/bootstrap.sh
@@ -0,0 +1,21 @@
+#!/bin/bash -x
+
+sed -e "s/@PACKAGE_NAME@/sssd/" \
+ -e "s/@PRERELEASE_VERSION@//" \
+ -e "s/@PACKAGE_VERSION@/0/" \
+ /vagrant/contrib/sssd.spec.in > /vagrant/contrib/sssd_vagrant.spec
+
+dnf clean metadata
+dnf install -y @buildsys-build realmd sssd adcli polkit oddjob-mkhomedir
+dnf builddep -y /vagrant/contrib/sssd_vagrant.spec
+
+source /usr/share/doc/git/contrib/completion/git-prompt.sh
+
+cat << EOF >> /home/vagrant/.bashrc
+source /usr/share/doc/git/contrib/completion/git-prompt.sh
+export GIT_PS1_SHOWDIRTYSTATE=1
+export PS1='[\u@\h:\W\$(__git_ps1 " (%s)")]\$\[\e[0m\] '
+
+. /vagrant/contrib/fedora/bashrc_sssd
+
+EOF