svn commit: r352813 - in head/security/py-fail2ban: . files

Bryan Drewery bdrewery at FreeBSD.org
Fri May 2 16:04:09 UTC 2014


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


More information about the svn-ports-all mailing list