From 51f622957729798ed62b1e887cd9e5224c967356 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 27 Jan 2010 17:45:19 +0100 Subject: [PATCH] apt-repository: Add reprepro config and wrapper script. --- conf/distributions | 9 +++++++++ conf/incoming | 16 ++++++++++++++++ reprepro | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 conf/distributions create mode 100644 conf/incoming create mode 100755 reprepro diff --git a/conf/distributions b/conf/distributions new file mode 100644 index 0000000..8b3f59f --- /dev/null +++ b/conf/distributions @@ -0,0 +1,9 @@ +Origin: apt.stderr.nl +Label: apt.stderr.nl Debian repository +Suite: stderr +Codename: stderr +Version: 1 +Architectures: i386 amd64 +Components: main +Description: Packaged or built by Matthijs Kooijman +SignWith: stderr.nl diff --git a/conf/incoming b/conf/incoming new file mode 100644 index 0000000..f29b6ed --- /dev/null +++ b/conf/incoming @@ -0,0 +1,16 @@ +Name: stderr +IncomingDir: incoming/stderr +TempDir: tmp +Default: stderr + +## Intended to be used with the following dupload configuration: +# $cfg{'stderr'} = { +# fqdn => "apt.stderr.nl", +# login => "matthijs", +# method => "scpb", +# incoming => "/data/apt-repository/incoming/stderr", +# dinstall_runs => 1, +# postupload => { +# changes => "ssh apt.stderr.nl -l matthijs /data/apt-repository/reprepro processincoming stderr %1", +# }, +# }; 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 "$@" -- 2.30.2