Date: Thu, 21 Dec 2017 20:46:24 +0200 From: Dmytro Bilokha <dmytro@posteo.net> To: Stefan Esser <se@freebsd.org> Cc: Adam Vande More <amvandemore@gmail.com>, Kevin Oberman <rkoberman@gmail.com>, Miroslav Lachman <000.fbsd@quip.cz>, FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Re: Setting system user home directory Message-ID: <20171221184624.GA4279@wstan> In-Reply-To: <699d4702-2610-2d3c-fe32-0977a4f05bc2@freebsd.org> References: <20171216094058.GA37778@wstan> <5A351515.1080805@quip.cz> <20171216135919.GA17551@wstan> <5A352BA5.9070403@quip.cz> <20171216170411.GA85559@wstan> <CAN6yY1u-RumzVkAe1TGvR64=SYuY6c-FptW4GnsMX344oyk%2BxA@mail.gmail.com> <20171216185317.GA87289@wstan> <20171216200959.GA97697@wstan> <CA%2BtpaK0kSSAvyVT5OLw2GKcu2rmKGArnaf66%2B_M0jSxo_WpBxw@mail.gmail.com> <699d4702-2610-2d3c-fe32-0977a4f05bc2@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 20, 2017 at 08:32:37PM +0100, Stefan Esser wrote: >Am 20.12.17 um 15:12 schrieb Adam Vande More: >> On Sat, Dec 16, 2017 at 2:10 PM, Dmytro Bilokha <dmytro@posteo.net> wrote: >> >>> Guys, thanks for your help. I've managed to adjust user's homedir >>> using pkg-install script. Now I'll try to move everything writable >>> from /usr/local to /var (as Miroslav suggested), test and submit the new >>> port version. >> >> I think you should do what makes sense for your application. The /var/db >> stuff is not a hard fast rule and it doesn't work well for many >> situations. Also it's mostly system related DB's that live there. It's >> not only some java related ports that live mostly under /usr but also >> things like postgres(at least used to). >> >> IMO, as long as you're not flagrantly violating hier(7), do what is best >> for your port. > >For a port that needs quite a large database (password hashes from accounts >that have been leaked), I implemented an option to initialize the application >by downloading the data files after the user had a chance to select a place >for the data (by editing the config file). The default is in /var/db, but the >user may prefer a home directory or some sub-directory of /usr/local/ ... > >Regards, STefan > Thanks, Stefan, it is also a nice approach. -- Dmytro Bilokha dmytro@posteo.net +38-050-607-41-43
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171221184624.GA4279>