debian-useful-minimal: Depend on iproute.
[apt-repository.git] / reprepro
1 #!/bin/sh
2 # This stuff is based on
3 # http://www.nighton.net/archives/express-guide-to-secure-apt-repositories-07-30-2006-164
4 # and
5 # http://blogs.cae.tntech.edu/mwr/2007/05/28/my-own-private-debian-repository/
6
7
8
9 # Get the absolute path in which this script lives (but without changing our
10 # current dir)
11 REPO_ROOT=`dirname $0`
12 REPO_ROOT=`cd "$REPO_ROOT"; pwd`
13
14 # This dir should contain a private keyring with an appropriate key
15 export GNUPGHOME="$REPO_ROOT/gnupg"
16
17 reprepro --basedir "$REPO_ROOT" --outdir "$REPO_ROOT/public" \
18          --listdir "$REPO_ROOT/tmp/lists" --ask-passphrase "$@"