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

Adam Weinberger adamw at adamw.org
Fri May 2 17:26:06 UTC 2014



On May 2, 2014 12:28:46 PM EDT, Christoph Theis <theis at gmx.at> wrote:
>Am 02.05.2014 18:04, schrieb Bryan Drewery:
>> On 2014-05-02 11:01, Christoph Theis wrote:
>>> @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.
>
>So the correct way is to create the directory in $STAGEDIR/var/db in 
>post-install. And it is there. But why isn't it created in /var/db
>then?
>
>Sorry to bother you but I don't know enough details of port
>installation 
>to debug that.

Also you can just:

post-install:
    ${MKDIR} ${STAGEDIR}/var/db/whatever
    ${TOUCH} ${STAGEDIR}/var/db/whatever/.keep_me

pkg-plist:
/var/db/whatever/.keep_me
@dirrmtry /var/db/whatever

# Adam

-- 
Adam Weinberger
adamw at adamw.org
http://www.adamw.org




More information about the svn-ports-all mailing list