This page has a good recipe for homemade root beer
The ingredients are NOT all homegrown, so this might not be available post-SHTF...
http://purelivingforlife.com/homemade-root-beer/Still, you might be able to grown enough of the ingredients to make your own...