pkgin functionality

added initial functionality for pkgin