Large Deviation Techniques Applied to Systems with Long-Range Interactions