- init a new git repository in the current directory;
- fetch the module tarball;
- unpack it, and commit that version to git, tagging it with the version number.
This leaves you with a ready-to-hack git repo. But it doesn't end there. After you added your fix or feature, you can use
git-cpan-sendpatch and this will:
- create a patch with your modifications;
- create a RT ticket with the patch.
So I had no excuse to patch Net::Libdnet to use
dnet-config to find the location of the libraries and include files. It was easy as pie.