As far as OpenWrt is concerned, you can add the option 252 in dhcp options under the interface you want to enable it.
The rest is generic. You can search for examples of wpad.dat and put it on a webserver. If you can convert OpenWrt to serve the wpad.dat from a webserver running on it, you won't need another server.
2 Likes