We're running an internal debian package mirror via apt-mirror and this is working fine for the official debian package repositories. However, now I would like to add custom repositories which apt-mirror should monitor and keep up to date with.
The problem I am having is figuring out how to symlink the content of the custom repositories to my htdocs.
Right now I've got the following symlinks set up:
/var/www/debian -> /var/spool/apt-mirror/mirror/ftp.no.debian.org/debian
/var/www/debian-security -> /var/spool/apt-mirror/mirror/security.debian.org/debian-security
How do I go about adding symlinks from /var/www to the following package mirrors in such a way that I avoid having to add a new /var/www directory for each of the packages:
/var/spool/apt-mirror/mirror/pkg.jenkins-ci.org/debian/binary
/var/spool/apt-mirror/mirror/dev.zenoss.org/deb/dists/main/stable/binary-i386
Preferably I would be able to add more custom repositories without having to update /etc/apt/sources.list on all the machines that are using the internal mirror. For example making them all accessible via
deb http://mirror.internal/debian-custom main