Date: Fri, 02 May 2014 11:37:23 -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: <c6d8311b71795ef98889ad14965fb8a6@shatow.net> 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 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6d8311b71795ef98889ad14965fb8a6>