install server package only if it is different from client package
put $pkgname inside the case