2 # This stuff is based on
3 # http://www.nighton.net/archives/express-guide-to-secure-apt-repositories-07-30-2006-164
5 # http://blogs.cae.tntech.edu/mwr/2007/05/28/my-own-private-debian-repository/
7 DISTS=public/dists/stderr
11 # This dir should contain a private keyring with an appropriate key
14 # Create cache directory
17 # Create target directories
18 for $DIST in $DISTS; do
19 for $SECTION in $SECTIONS; do
20 for $ARCH in $ARCHS; do
21 mkdir -p $DIST/$SECTION/$ARCH
26 # Generate Contents and Packages files.
27 apt-ftparchive generate ftparchive.conf
29 # Create Release files
30 for $DIST in $DISTS; do
31 apt-ftparchive -c ftparchive.conf release $DIST > $DIST/Release
33 gpg --homedir $GPG_HOME --sign --detach-sign --armor -o $DIST/Release.gpg $DIST/Release