How to create hand-made Time Capsule
Time Capsule is actually just an AFP host.  You can configure any device that serves the AFP protocol to be a Time Machine backup destination.

However, if the device does not support AFP, it takes some work on the client to get TM to use it as a destination.

You can see the results of that question here:
Time Machine over SMB/CIFS share?