diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7822799 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.swp +release diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a538558 --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +default: build + +build: + gox -os="darwin linux" ./... + test -d release || mkdir release + rm -f release/* + mv sapt_* release + cd release && for b in `ls`; do zip $$b.zip $$b; done diff --git a/README.md b/README.md index 4d6ab6c..8c70187 100644 --- a/README.md +++ b/README.md @@ -15,11 +15,17 @@ their metadata attributes. * dpkg-deb +## Installation + +Directly with go: + + go get github.com/nextrevision/sapt + ## Usage usage: sapt [] [ ...] - A humble S3 apt manager + S3 apt repo utility that manages all packages remotely without a local mirror Flags: --help Show help (also see --help-long and --help-man). @@ -49,7 +55,7 @@ Rescan the bucket and generate new indicies: sapt rescan my-s3-apt-repo -### Public and Private Paths +### Public and Private Sources Buckets and their contents can either be public or private. Apt client configurations vary depending on this. @@ -70,7 +76,7 @@ Private repo sample `sources.list` entry (requires apt-transport-s3): Note the secret key is surrounded with brackets intentionally. -### Using with [apt-transport-s3(https://github.com/kyleshank/apt-transport-s3)] +### Using with [apt-transport-s3](https://github.com/kyleshank/apt-transport-s3) `sapt` is designed to work with [apt-transport-s3(https://github.com/kyleshank/apt-transport-s3)] in mind. Simply use `sapt` to upload your packages and then use apt-transport-s3 to access them on your client systems. diff --git a/sapt/main.go b/sapt/main.go index c000caa..32b047d 100644 --- a/sapt/main.go +++ b/sapt/main.go @@ -8,7 +8,7 @@ import ( ) var ( - app = kingpin.New("sapt", "A humble S3 apt manager") + app = kingpin.New("sapt", "S3 apt repo utility that manages all packages remotely without a local mirror") bootstrap = app.Command("bootstrap", "Bootstraps a new bucket") bootstrapPublic = bootstrap.Flag("public", "Make uploaded packages public").Bool()