Two-dimensional static black holes with pointlike sources