Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 23:58:52 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        "Sergey A. Osokin" <osa@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/www/nginx Makefile ports/www/nginx/files nginx.sh.in ports/www/nginx-devel Makefile ports/www/nginx-devel/files nginx.sh.in
Message-ID:  <4FD83A2C.3030500@FreeBSD.org>
In-Reply-To: <20120613064656.GM20963@FreeBSD.org>
References:  <201206130446.q5D4kEb3031676@repoman.freebsd.org> <4FD834FB.7050705@FreeBSD.org> <20120613064656.GM20963@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 06/12/2012 23:46, Sergey A. Osokin wrote:
> Hi Doug,
> 
> On Tue, Jun 12, 2012 at 11:36:43PM -0700, Doug Barton wrote:
>> Since it's only called in one place, there's no need to put the
>> directory code in a function. Also, instead of doing it in 3 steps you
>> can unconditionally use install as follows:
>>
>> install -d -o %%WWWOWN%% -g %%WWWGRP%% -m 755 ${_tmpprefix}
> 
> I do this at Makefile:
> ...
>         ${MKDIR} ${ETCDIR} ${NGINX_TMPDIR}
>         ${CHOWN} ${WWWOWN}:${WWWGRP} ${NGINX_TMPDIR}

You should not do that in the Makefile since it's worthless for
packages. Also, the rc.d script should always do whatever is necessary
to make the service work ... both for general purposes and for packages.

> Also, I do my changes in nginx.sh.in for tmpfs(5), could you look at
> http://www.freebsd.org/cgi/query-pr.cgi?pr=168836 for details.

Yes, doing this in the rc.d script is especially important for things in
/tmp since it's pretty common for it to start clean at boot time.

hth,

Doug

-- 

    This .signature sanitized for your protection





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD83A2C.3030500>