netglub: Fix up.

This is a complete rewrite. There's some ugly sed patching that's
necessary to install the package.