iTunes library export when the media is on an external HDD
Restore he ~/Music/iTunes directory or just the files in that directory - it contains all the metadata.

Then change the iTunes Media Location and all should be OK.

Note for others - when starting with a new machine it is easier to use Migration Assistant to copy from the old machine connected as a firewire target disk then all preferences etc are copied over.