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

Bryan Drewery bdrewery at FreeBSD.org
Fri May 2 16:37:26 UTC 2014


On 2014-05-02 11:28, Christoph Theis 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.

The new staging process installs all files into the STAGEDIR, then a 
package is created
from the STAGEDIR.

The *real* install is installing the package generated from that 
STAGEDIR.

Pkgng requires a @dirrm[try] in the pkg-plist to register a directory
from the STAGEDIR for later installation, otherwise it is ignored.

pkg_install (the older package tool) requires the @exec install -d line 
or it
will ignore the directory and not create it at install time.

Note that even before staging, the package would require those lines to 
properly
create the directory at install time. We just had far less users of 
packages
so these problems were not as evident, as we were installing directly 
from the
port, and not from a package.

There's more notes on Staging documented here: 
https://wiki.freebsd.org/ports/StageDir

-- 
Regards,
Bryan Drewery


More information about the svn-ports-all mailing list