apt-repository: Import initial scripts and source files for the debian-useful packages.
authorMatthijs Kooijman <matthijs@build.drsnuggles.stderr.nl>
Fri, 26 Sep 2008 09:12:38 +0000 (09:12 +0000)
committerMatthijs Kooijman <matthijs@build.drsnuggles.stderr.nl>
Fri, 26 Sep 2008 09:12:38 +0000 (09:12 +0000)
ftparchive.conf [new file with mode: 0644]
rebuild [new file with mode: 0755]
regen [new file with mode: 0755]
sources [new submodule]

diff --git a/ftparchive.conf b/ftparchive.conf
new file mode 100644 (file)
index 0000000..98756ff
--- /dev/null
@@ -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 (executable)
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 (executable)
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 (submodule)
index 0000000..7943864
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+Subproject commit 7943864f857e1903dcf0cc233909e17f66b1111f