X-Git-Url: https://git.stderr.nl/gitweb?p=apt-repository.git;a=blobdiff_plain;f=reprepro;fp=reprepro;h=1b869f2a5ba3871cb00266d36b9c89aac407539f;hp=0000000000000000000000000000000000000000;hb=51f622957729798ed62b1e887cd9e5224c967356;hpb=2d0ec7327bfae4a4ca494d1f490fb6a879d728dc diff --git a/reprepro b/reprepro new file mode 100755 index 0000000..1b869f2 --- /dev/null +++ b/reprepro @@ -0,0 +1,18 @@ +#!/bin/sh +# This stuff is based on +# http://www.nighton.net/archives/express-guide-to-secure-apt-repositories-07-30-2006-164 +# and +# http://blogs.cae.tntech.edu/mwr/2007/05/28/my-own-private-debian-repository/ + + + +# Get the absolute path in which this script lives (but without changing our +# current dir) +REPO_ROOT=`dirname $0` +REPO_ROOT=`cd "$REPO_ROOT"; pwd` + +# This dir should contain a private keyring with an appropriate key +export GNUPGHOME="$REPO_ROOT/gnupg" + +reprepro --basedir "$REPO_ROOT" --outdir "$REPO_ROOT/public" \ + --listdir "$REPO_ROOT/tmp/lists" --ask-passphrase "$@"