Mapping texture to flat surface curve

I’m trying to render a large curved wooden structure created from glulam. The problem is I can’t work out how to make the texture follow the curve.

extruding a profile the mapping doesn’t work as you wish because the lateral faces are 4 edge cutted surfaces and you can find out that extracting (_ExtractSrf) and rebuilding (_Rebuild) one of them,
so try this way: