From owner-svn-ports-all@FreeBSD.ORG Fri May 2 16:37:26 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4D087286 for ; Fri, 2 May 2014 16:37:26 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1779910E7 for ; Fri, 2 May 2014 16:37:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s42GbPdx073761 for ; Fri, 2 May 2014 16:37:25 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s42GbPRM073749 for svn-ports-all@freebsd.org; Fri, 2 May 2014 16:37:25 GMT (envelope-from bdrewery) Received: (qmail 71628 invoked from network); 2 May 2014 11:37:23 -0500 Received: from unknown (HELO roundcube.xk42.net) (10.10.5.5) by sweb.xzibition.com with SMTP; 2 May 2014 11:37:23 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 02 May 2014 11:37:23 -0500 From: Bryan Drewery To: Christoph Theis Subject: Re: svn commit: r352813 - in head/security/py-fail2ban: . files Organization: FreeBSD 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> Message-ID: X-Sender: bdrewery@FreeBSD.org User-Agent: Roundcube Webmail/0.9.5 Cc: svn-ports-head@freebsd.org, owner-ports-committers@freebsd.org, Andrey Chernov , svn-ports-all@freebsd.org, ports-committers@freebsd.org, Sunpoet Po-Chuan Hsieh X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2014 16:37:26 -0000 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