Portugal sells barracks and forts