Create a local APT/Debian repository

Some posts ago I wrote some lines about the creation of custom .deb Debian packages; now I wanted to publish them on the LAN to allow easy installation across all the computers.All you have to do is to put them in a 'yourdir' directory accessible through the http protocol (so you must have an Apache configured and running) and run the following command:
dpkg-scanpackages yourdir /dev/null | gzip > yourdir/Packages.gz
Then you just have to add this line to your /etc/apt/sources.list file (you can easily do it with Synaptic):
deb http://yourserver/yourdir/ ./

That's all! Just update the list of packages and yours will appear in Synaptic as well.