Skip to content

Upgrade to trusty, add PPA to Readme #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ clean:
deb:
dpkg-buildpackage -us -uc

signed-deb:
debuild -S -sd
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ 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.

## Installing
### PPA

Once compiled, the resulting s3 binary must be placed in /usr/lib/apt/methods/ along with the other protocol binaries.
sudo add-apt-repository ppa:leonard-ehrenfried/apt-transport-s3
sudo apt-get update
sudo apt-get install apt-transport-s3

Finally, this is how you add it to the /etc/apt/sources.list file if you want your credentials in the url:
### Manually
Once compiled, the resulting s3 binary must be placed in `/usr/lib/apt/methods/` along with the other protocol binaries.

Finally, this is how you add it to the `/etc/apt/sources.list` file if you want your credentials in the url:

deb s3://AWS_ACCESS_ID:[AWS_SECRET_KEY_IN_BRACKETS]@s3-ENDPOINT.amazonaws.com/BUCKETNAME prod main

Expand All @@ -30,6 +36,13 @@ Simply upload all of your .deb packages and Packages.gz file into the s3 bucket

## Uploading repository to s3

### Without local mirror
[deb-s3](https://github.com/krobertson/deb-s3) allows you to create an APT
repository without constructing it locally first. All you need is a deb file
and it will take care of the rest.

### With local mirror

Before synchronization, you need a s3cmd tool installed and configured:

[sudo] apt-get install s3cmd
Expand All @@ -40,7 +53,8 @@ To synchronize local repository to s3 as read-only, execute:

s3cmd sync /srv/apt-repo-dir/dists s3://bucket_name
s3cmd sync /srv/apt-repo-dir/pool s3://bucket_name



## Using GPG keys

If you're signing you repository with key, export it to server:
Expand All @@ -50,4 +64,4 @@ If you're signing you repository with key, export it to server:
then import it and install to apt:

gpg --recv-keys XXXXXXXX
gpg -a --export XXXXXXXX | [sudo] apt-key add -
gpg -a --export XXXXXXXX | [sudo] apt-key add -
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
apt-transport-s3 (1.1.1ubuntu7) trusty; urgency=medium

* Upgrade to trusty

-- Leonard Ehrenfried <[email protected]> Thu, 10 Jul 2014 23:03:48 +0000

apt-transport-s3 (1.1.1ubuntu6) precise; urgency=low

* Change architecture to AMD64
Expand Down