Pakistan has sentenced five people to death for plotting to kill President Pervez Musharraf two years ago .