From b3865ee18031ad2d719a38d9f883c96952e9fbdb Mon Sep 17 00:00:00 2001 From: Leonard Date: Thu, 10 Jul 2014 23:04:55 +0000 Subject: [PATCH 1/4] Upgrade to trusty --- debian/changelog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 41cdd38..98800ed 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +apt-transport-s3 (1.1.1ubuntu7) trusty; urgency=medium + + * Upgrade to trusty + + -- Leonard Ehrenfried Thu, 10 Jul 2014 23:03:48 +0000 + apt-transport-s3 (1.1.1ubuntu6) precise; urgency=low * Change architecture to AMD64 From 642a27fe73c0c9c9148877dc114c4b38de0b6319 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Fri, 11 Jul 2014 01:12:49 +0200 Subject: [PATCH 2/4] Document PPA --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42e5e88..f18dcb0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,13 @@ 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 + sudo add-apt-repository ppa:leonard-ehrenfried/apt-transport-s3 + sudo apt-get update + sudo apt-get install apt-transport-s3 + +### 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: @@ -50,4 +56,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 - \ No newline at end of file + gpg -a --export XXXXXXXX | [sudo] apt-key add - From 166a73371cb3317d7daae689f04a63641dc9eddd Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Fri, 11 Jul 2014 01:18:06 +0200 Subject: [PATCH 3/4] Add make task for signed deb --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 41a06f5..9c040e4 100644 --- a/Makefile +++ b/Makefile @@ -13,3 +13,5 @@ clean: deb: dpkg-buildpackage -us -uc +signed-deb: + debuild -S -sd From 3d1d08517d686bb01fd37e350351d8a7f3a3bded Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Sat, 12 Jul 2014 10:23:09 +0200 Subject: [PATCH 4/4] Update documentation --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f18dcb0..fb38c05 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ To build this project you simply run `make`. It will produce a binary named `s3` sudo apt-get install apt-transport-s3 ### Manually -Once compiled, the resulting s3 binary must be placed in /usr/lib/apt/methods/ along with the other protocol binaries. +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: +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 @@ -36,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 @@ -46,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: