Helps if you set the umask *before* the server is run.

Signed-off-by: Chris Lamb <chris@thread.com>
Make executable.

Signed-off-by: Chris Lamb <chris@thread.com>
Use shutil.move here.

Signed-off-by: Chris Lamb <chris@thread.com>
Use check_output to avoid race conditions.

Was racing especially when gpg signing - we were trying to rename a file
that GPG was creating, but in (say) low entropy environments it would
take a while for GPG to actually complete but we were continuing
anyway.

Also this simplifies a bunch of ugly Popen ugliness.

Signed-off-by: Chris Lamb <chris@thread.com>
Have better-named local dirs.

Signed-off-by: Chris Lamb <chris@thread.com>
Add readme so someone doesn't go whut when they see a secring.gpg..

Signed-off-by: Chris Lamb <chris@thread.com>
Move this one "up" as we immediately create a dists/ anyway...

Signed-off-by: Chris Lamb <chris@thread.com>
This was once closed source!

Signed-off-by: Chris Lamb <chris@thread.com>
Add debian/copyright file.

Signed-off-by: Chris Lamb <chris@thread.com>
Helps if the docs work!