On Thu, 13 Apr 2000, Doug MacEachern wrote:

> > Doug, I guess this is something that should be addressed as a
> > Makefile.PL configuration parameter. I myself have encountered a few
> > problems with the User/Group values picked by the build process in a
> > complex NIS environment and have had to manually modify the httpd.conf
> > used during the 'make start_httpd'. Having a way to provide your own
> > choice of User/Group would be nice.
> 
> no more Makefile.PL parameters, there are far too many.  i wouldn't mind
> adding something like this though..

Perfect. As long as there is a way to override the defaults without
touching the sources, it's fine with me. Thanks!

> --- Makefile.PL 2000/04/03 03:56:11     1.155
> +++ Makefile.PL 2000/04/13 23:15:52
> @@ -871,8 +871,10 @@
>      #use only first value if $) contains more than one
>      $gid =~ s/^(\d+).*$/$1/;
>  
> -    $User  = $Is_Win32 ? "nobody" : (getpwuid($uid) || "#$uid");
> -    $Group = $Is_Win32 ? "nogroup" : (getgrgid($gid) || "#$gid");
> +    $User  = $Is_Win32 ? "nobody" : 
> +      $ENV{APACHE_USER} || (getpwuid($uid) || "#$uid");
> +    $Group = $Is_Win32 ? "nogroup" : 
> +      $ENV{APACHE_GROUP} || (getgrgid($gid) || "#$gid");
>  
>      if($User eq "root") {
>         my $other = (getpwnam('nobody'))[0];
> 
> 
> 



______________________________________________________________________
Stas Bekman             | JAm_pH    --    Just Another mod_perl Hacker
http://stason.org/      | mod_perl Guide http://perl.apache.org/guide/ 
mailto:[EMAIL PROTECTED]  | http://perl.org    http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------

Reply via email to