Re: [homebrew] cherokee formula permission problem
- From:
- Sean Moss-Pultz
- Date:
- 2011-08-26 @ 11:13
On Thu, Aug 25, 2011 at 7:56 PM, Max Howell <max@methylblue.com> wrote:
> > The formula for Cherokee fails since it's trying to write to:
> >
> > /Library/WebServer/Documents
> >
> > Here are the error messages:
> >
> > test -z ""/Library/WebServer/Documents/images"" || .././install-sh
> > -c -d ""/Library/WebServer/Documents/images""
> > install: /Library/WebServer/Documents/index.html: Permission denied
> > make[2]: *** [install-data-local] Error 71
> > make[2]: *** Waiting for unfinished jobs....
> > mkdir: /Library/WebServer/Documents/images: Permission denied
> > make[2]: *** [install-cherokeewwwimagesDATA] Error 1
> > make[1]: *** [install-am] Error 2
> > make: *** [install-recursive] Error 1
> >
> > I modified the formula to use:
> >
> > def install
> > system "./configure", "--disable-dependency-tracking",
> > "--prefix=#{prefix}",
> > "--sysconfdir=#{etc}",
> > "--localstatedir=#{var}/cherokee",
> > "--with-wwwuser=#{ENV['USER']}",
> > "--with-wwwgroup=www",
> >
> > "--with-wwwroot=#{ENV['HOME']}/Library/WebServer/Documents"
> >
> > Is this OK? Or should I use HOMEBREW_PREFIX instead?
>
> Yes I guess we should use "#{var}/www" or whatever it's meant to be.
Is there a standard for this? I'd be glad to update the forumla if I
knew for sure what's the right path.
Sean
Re: [homebrew] cherokee formula permission problem
- From:
- Max Howell
- Date:
- 2011-08-26 @ 11:31
>>> The formula for Cherokee fails since it's trying to write to:
>>>
>>> /Library/WebServer/Documents
>>>
>>> Here are the error messages:
>>>
>>> test -z ""/Library/WebServer/Documents/images"" || .././install-sh
>>> -c -d ""/Library/WebServer/Documents/images""
>>> install: /Library/WebServer/Documents/index.html: Permission denied
>>> make[2]: *** [install-data-local] Error 71
>>> make[2]: *** Waiting for unfinished jobs....
>>> mkdir: /Library/WebServer/Documents/images: Permission denied
>>> make[2]: *** [install-cherokeewwwimagesDATA] Error 1
>>> make[1]: *** [install-am] Error 2
>>> make: *** [install-recursive] Error 1
>>>
>>> I modified the formula to use:
>>>
>>> def install
>>> system "./configure", "--disable-dependency-tracking",
>>> "--prefix=#{prefix}",
>>> "--sysconfdir=#{etc}",
>>> "--localstatedir=#{var}/cherokee",
>>> "--with-wwwuser=#{ENV['USER']}",
>>> "--with-wwwgroup=www",
>>>
>>> "--with-wwwroot=#{ENV['HOME']}/Library/WebServer/Documents"
>>>
>>> Is this OK? Or should I use HOMEBREW_PREFIX instead?
>>
>> Yes I guess we should use "#{var}/www" or whatever it's meant to be.
>
> Is there a standard for this? I'd be glad to update the forumla if I
> knew for sure what's the right path.
What I said is more correct. But I'm not sure what the established docroot
for UNIX is. As it should be #{var}/that