Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ debian/files
debian/apt-transport-s3
debian/apt-transport-s3.substvars
debian/apt-transport-s3.debhelper.log
*~
*~
*.deb
.vagrant
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ Before building this project on Ubuntu (tested on 11.10) you will need to instal

To build this project you simply run `make`. It will produce a binary named `s3` under the `src/` dir.

## Building via Vagrant (Ubuntu 12.04 precise)

If you'd like to build the linux binaries and you're on say a Mac, you can build the binaries via Vagrant. Once you have vagrant installed, http://vagrantup.com/, you can execute the following:

```
vagrant up
```

This will stand up a new vm, install the necessary dependencies, compile the binary, create the debian package, and place the debian package in the debian package, same as the Makefile would.

To stop the vagrant image after you're done, you can call

```
vagrant destroy
```

## Installing

Once compiled, the resulting s3 binary must be placed in /usr/lib/apt/methods/ along with the other protocol binaries.
Expand Down
15 changes: 15 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"

config.vm.network :public_network

config.vm.provision :shell, :inline => "apt-get update"
config.vm.provision :shell, :inline => "apt-get install -y libapt-pkg-dev libcurl4-openssl-dev debhelper cdbs"
config.vm.provision :shell, :inline => "apt-get install -y build-essential"
config.vm.provision :shell, :inline => "cp -r /vagrant apt-s3 ; (cd apt-s3 ; make ; make deb)"
config.vm.provision :shell, :inline => "cp *.deb /vagrant/debian"

config.vm.provider :virtualbox do |vb|
end
end