Take a look at: http://ez.no/ezpublish/documentation/building_an_ez_publish_site/prerequisits
It uses the plain package, but if you want to take advantage of all the features you get for free in webin or flow, then you should start with those instead(the basic concepts are the same).