From owner-freebsd-ports@freebsd.org Wed Dec 20 19:32:47 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04C3EE9F2E9 for ; Wed, 20 Dec 2017 19:32:47 +0000 (UTC) (envelope-from se@freebsd.org) Received: from mailout01.t-online.de (mailout01.t-online.de [194.25.134.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC3577E019 for ; Wed, 20 Dec 2017 19:32:46 +0000 (UTC) (envelope-from se@freebsd.org) Received: from fwd15.aul.t-online.de (fwd15.aul.t-online.de [172.20.27.63]) by mailout01.t-online.de (Postfix) with SMTP id 7510042C1F30; Wed, 20 Dec 2017 20:32:43 +0100 (CET) Received: from Stefans-MBP-2.fritz.box (ZYIIMiZJQhNRYaOS7ELaGsymTg2q33ll+gzb8wKWFCBNOY7kWdX86JqZJIiVF9uZHq@[84.154.114.37]) by fwd15.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eRk6Y-3FSFTE0; Wed, 20 Dec 2017 20:32:38 +0100 Subject: Re: Setting system user home directory To: Adam Vande More , Dmytro Bilokha Cc: Kevin Oberman , Miroslav Lachman <000.fbsd@quip.cz>, FreeBSD Ports ML References: <20171216094058.GA37778@wstan> <5A351515.1080805@quip.cz> <20171216135919.GA17551@wstan> <5A352BA5.9070403@quip.cz> <20171216170411.GA85559@wstan> <20171216185317.GA87289@wstan> <20171216200959.GA97697@wstan> From: Stefan Esser Message-ID: <699d4702-2610-2d3c-fe32-0977a4f05bc2@freebsd.org> Date: Wed, 20 Dec 2017 20:32:37 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-ID: ZYIIMiZJQhNRYaOS7ELaGsymTg2q33ll+gzb8wKWFCBNOY7kWdX86JqZJIiVF9uZHq X-TOI-MSGID: c932f382-683b-4b11-b738-86380d47fe67 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2017 19:32:47 -0000 Am 20.12.17 um 15:12 schrieb Adam Vande More: > On Sat, Dec 16, 2017 at 2:10 PM, Dmytro Bilokha 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