add packaging support in the makefile.

riak does well in its owm repo, so just copy the bits we need to improve
the current packaging situation.