Having done a smog legal/referee approved KA24DE swap into a 510 for a customer its not that difficult to do. As stated above get the complete engine harness from the LS1 along with all the evap lines and canisters, and anything else that connects to the engine. Shop manuals from the LS1 donor car are mandatory and really read the smog control/emissions sections.
Just install and hook everything up, get it running clean and properly, make sure you also install all the evaporative emissions stuff, and then take it the referee for a review. If you're nice, polite, and show you're serious about getting the swap done correctly, the referee can be a huge help. Expect to go back a couple times until you get it right.
If you're a dickhead about it and start complaining about government conspiracies, smog Nazis, etc. then you'll never get the car through.