Skip to content

Commit

Permalink
Adding Makefile and install steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nextrevision committed Sep 18, 2015
1 parent cfd842d commit 94ec95e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.swp
release
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ their metadata attributes.

* dpkg-deb

## Installation

Directly with go:

go get github.com/nextrevision/sapt

## Usage

usage: sapt [<flags>] <command> [<args> ...]

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).
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sapt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 94ec95e

Please sign in to comment.