Date: Fri, 02 May 2014 11:04:07 -0500 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Christoph Theis <theis@gmx.at> Cc: svn-ports-head@freebsd.org, owner-ports-committers@freebsd.org, Andrey Chernov <ache@freebsd.org>, svn-ports-all@freebsd.org, ports-committers@freebsd.org, Sunpoet Po-Chuan Hsieh <sunpoet@freebsd.org> Subject: Re: svn commit: r352813 - in head/security/py-fail2ban: . files Message-ID: <7e75dcf81553538101a3fcce151cf558@shatow.net> In-Reply-To: <5363C176.6050100@gmx.at> References: <201405021317.s42DHQ5P053302@svn.freebsd.org> <5363A968.7010707@freebsd.org> <5363C176.6050100@gmx.at>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-05-02 11:01, Christoph Theis wrote: > Am 02.05.2014 16:19, schrieb Andrey Chernov: >> On 02.05.2014 17:17, Sunpoet Po-Chuan Hsieh wrote: >>> - Update to 0.9.0 >> >> ${FAIL2BAN_DBDIR} is not created on install for the reason unknown. > > In my patch I had a rule > post-install: > @${MKDIR} ${FAIL2BAN_DBDIR} > > In the commit it became a > post-install: > @${MKDIR} ${STAGEDIR}${FAIL2BAN_DBDIR} > > @Hsieh: As a workaround create the /var/db/fail2ban manually > > @Andrey: My intention was to create that directory during > installation. I think it is wrong to create it in $STAGEDIR instead > during post-install. But what would be the correct way to create a > /var/db directory used at runtime only and nothing is copied there > during installation? It's not proper to create directories outside of STAGEDIR in post-install. If you want to create a directory at install time then it is now done in the plist-plist as an @exec. Something like this (untested, this is frequently problematic creating dirs outside PREFIX): @cwd / @exec install -d /var/db/fail2ban @dirrmtry /var/db/fail2ban -- Regards, Bryan Drewery
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7e75dcf81553538101a3fcce151cf558>