Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 May 2014 13:25:55 -0400
From:      Adam Weinberger <adamw@adamw.org>
To:        Christoph Theis <theis@gmx.at>,Bryan Drewery <bdrewery@FreeBSD.org>
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:  <7cadc88e-fdb9-43c1-b849-653e00883914@email.android.com>
In-Reply-To: <5363C7BE.2040302@gmx.at>
References:  <201405021317.s42DHQ5P053302@svn.freebsd.org> <5363A968.7010707@freebsd.org> <5363C176.6050100@gmx.at> <7e75dcf81553538101a3fcce151cf558@shatow.net> <5363C7BE.2040302@gmx.at>

next in thread | previous in thread | raw e-mail | index | archive | help


On May 2, 2014 12:28:46 PM EDT, Christoph Theis <theis@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@adamw.org
http://www.adamw.org





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7cadc88e-fdb9-43c1-b849-653e00883914>