The patch to be found on the given address enables the user to dynamically re-define the service name. It cleanly applies to current sources. Please include this patch as a replacement for your hard-coded "sed"-maneuvres. As a bonus the user gains more flexibility in what service-name he'd like to use on his hosts.
Patch added to net-www/mod_auth_pam-1.1.1-r2, it only works with the "apache2" USE flag set, as it doesn't apply to the apache1 sources and we don't plan to fix that ourselves. Best regards, CHTEKK.