From 8312b4526cc2839f418e28cb526cfb85969a3133 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 26 Sep 2008 09:12:38 +0000 Subject: [PATCH 1/1] apt-repository: Import initial scripts and source files for the debian-useful packages. --- ftparchive.conf | 23 +++++++++++++++++++++++ rebuild | 13 +++++++++++++ regen | 34 ++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+) create mode 100644 ftparchive.conf create mode 100755 rebuild create mode 100755 regen create mode 160000 sources diff --git a/ftparchive.conf b/ftparchive.conf new file mode 100644 index 0000000..98756ff --- /dev/null +++ b/ftparchive.conf @@ -0,0 +1,23 @@ +Dir { + ArchiveDir "public"; + CacheDir "cache"; +} + +Tree "dists/stderr" { + Sections "main"; + Architectures "i386 all"; + Directory "packages"; +} + +APT::FTPArchive { + Release { + Origin "http://www.stderr.nl"; + Label "stderr.nl"; + Suite "stderr"; + Version "1"; + Codename "stderr"; + Architectures "i386 all"; + Components "main"; + Description "Packaged by Matthijs Kooijman."; + }; +}; diff --git a/rebuild b/rebuild new file mode 100755 index 0000000..5e2528f --- /dev/null +++ b/rebuild @@ -0,0 +1,13 @@ +#!/bin/sh +SOURCES=sources +PACKAGES=public/packages + +mkdir -p $PACKAGES + +cd $PACKAGES + +for i in ../../$SOURCES/*; do + equivs-build $i +done + +cd ../.. diff --git a/regen b/regen new file mode 100755 index 0000000..ad88527 --- /dev/null +++ b/regen @@ -0,0 +1,34 @@ +#!/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/ + +DISTS=public/dists/stderr +SECTIONS=main +ARCHS=i386 all +CACHE=cache +# This dir should contain a private keyring with an appropriate key +GPG_HOME=gnupg + +# Create cache directory +mkdir -p $CACHE + +# Create target directories +for $DIST in $DISTS; do + for $SECTION in $SECTIONS; do + for $ARCH in $ARCHS; do + mkdir -p $DIST/$SECTION/$ARCH + done + done +done + +# Generate Contents and Packages files. +apt-ftparchive generate ftparchive.conf + +# Create Release files +for $DIST in $DISTS; do + apt-ftparchive -c ftparchive.conf release $DIST > $DIST/Release + rm $DIST/Release.gpg + gpg --homedir $GPG_HOME --sign --detach-sign --armor -o $DIST/Release.gpg $DIST/Release +done diff --git a/sources b/sources new file mode 160000 index 0000000..7943864 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +Subproject commit 7943864f857e1903dcf0cc233909e17f66b1111f -- 2.30.2