Skip to content

Commit

Permalink
Update the VM setup, use sid to build the debian package.
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitri committed Sep 10, 2014
1 parent be9abe4 commit 0e924fa
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,27 @@ Vagrant.configure("2") do |config|
config.vm.define "wheezy" do |wheezy|
wheezy.vm.box = "wheezy64"

config.vm.provision :file do |file|
file.source = 'conf/gpg-agent.conf'
file.destination = '/home/vagrant/.gnupg/gpg-agent.conf'
end

config.vm.provision :file do |file|
file.source = 'conf/gpg.conf'
file.destination = '/home/vagrant/.gnupg/gpg.conf'
end

config.vm.provision :file do |file|
file.source = 'conf/devscripts'
file.destination = '/home/vagrant/.devscripts'
end

config.vm.provision "shell" do |s|
s.path = "bootstrap-debian.sh"
s.privileged = false
end

config.vm.network :forwarded_port, guest: 4505, host: 4505
end

config.vm.define "centos" do |centos|
Expand Down
14 changes: 13 additions & 1 deletion bootstrap-debian.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/usr/bin/env bash

if [ ! -f /etc/apt/sources.list.old ]
then
sudo mv /etc/apt/sources.list /etc/apt/sources.list.old
sudo cp /vagrant/conf/sources.list /etc/apt/sources.list
fi

sudo apt-get update
sudo apt-get dist-upgrade -y

cat /vagrant/conf/bashrc.sh >> ~/.bashrc

# PostgreSQL
sidsrc=/etc/apt/sources.list.d/sid-src.list
echo "deb-src http://ftp.fr.debian.org/debian/ sid main" | sudo tee $sidsrc
Expand All @@ -21,7 +32,8 @@ sudo apt-get install -y postgresql-9.3 postgresql-contrib-9.3 \
sbcl \
git patch unzip \
devscripts pandoc \
libsqlite3-dev
libsqlite3-dev \
gnupg gnupg-agent

sudo DEBIAN_FRONTEND=noninteractive \
apt-get install -y --allow-unauthenticated mariadb-server
Expand Down
9 changes: 9 additions & 0 deletions conf/bashrc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

# GnuPG Agent
export GPG_TTY=`tty`
eval "$(gpg-agent --daemon)"

# DEBIAN
export DEBEMAIL="[email protected]"
export DEBFULLNAME="Dimitri Fontaine"
export DEBSIGN_KEYID="60B1CB4E"
3 changes: 3 additions & 0 deletions conf/devscripts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DEBEMAIL="[email protected]"
DEBFULLNAME="Dimitri Fontaine"
DEBSIGN_KEYID="60B1CB4E"
5 changes: 5 additions & 0 deletions conf/gpg-agent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Keyboard control
no-grab

# PIN entry program
pinentry-program /usr/bin/pinentry-curses
7 changes: 7 additions & 0 deletions conf/gpg.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
default-key 60B1CB4E
keyserver hkp://keys.gnupg.net
use-agent

personal-digest-preferences SHA512
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
5 changes: 5 additions & 0 deletions conf/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
deb http://ftp.fr.debian.org/debian sid main non-free contrib
deb-src http://ftp.fr.debian.org/debian sid main non-free contrib

# deb http://security.debian.org/ wheezy/updates main contrib non-free
# deb-src http://security.debian.org/ wheezy/updates main contrib non-free

0 comments on commit 0e924fa

Please sign in to comment.