From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0034A1396D9 for ; Thu, 12 Oct 2017 06:29:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 14CD42BC02D; Thu, 12 Oct 2017 06:29:41 +0000 (UTC) Received: from very.loosely.org (very.loosely.org [173.255.215.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2CFAE0DD3 for ; Thu, 12 Oct 2017 06:29:40 +0000 (UTC) Received: from [10.8.78.6] (port=58180 helo=matica.foolinux.mooo.com) by ahiker.mooo.com with esmtp (Exim 4.89) (envelope-from ) id 1e2Wzz-0006oz-9V for gentoo-user@lists.gentoo.org; Wed, 11 Oct 2017 23:29:39 -0700 Received: from itz by matica.foolinux.mooo.com with local (Exim 4.89) (envelope-from ) id 1e2Wzt-0001cJ-WF for gentoo-user@lists.gentoo.org; Wed, 11 Oct 2017 23:29:34 -0700 Date: Wed, 11 Oct 2017 23:29:33 -0700 From: Ian Zimmerman To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Slightly OT: FreeBSD migration, what to do with /usr/local Message-ID: <20171012062933.6bhtcfqso37gf6af@matica.foolinux.mooo.com> Mail-Followup-To: gentoo-user@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Loosely-Listed: yes User-Agent: NeoMutt/20170707 (1.8.3) X-Archives-Salt: 5fa4cdd0-f6d9-4a9a-82ad-b9b8ba90d022 X-Archives-Hash: 081b7ed9417b72e1bf8bc0ae4d3946dd I think I have written here previously that I want to move my _server_ to FreeBSD. I am still thinking about that. But now I hit an obstacle. For a long time, I have put my local kiddie scripts in /usr/local. For better or worse, they are written in my dense style where any code duplication is avoided, and so they call one another a lot. But as you know FreeBSD directory hierarchy is different: /usr/local is for Packages and Ports. I must move my scripts somewhere else to not conflict with P & P. So the first problem is to come up with a location. What does a typical BSD admin do in this situation? I don't want to put them in my home directory because they're general purpose; at the very least I use them both as root and as an unprivileged user. A more serious problem is how to find all the situations where /usr/local is baked in. It's not as simple as grep because when I could, I relied on the implicit PATH which would be configured somewhere else, or it might not even be configured - it might be compiled in (I think this is the case for some programs in the shadow package, and perhaps PAM modules). I don't think I can expect a simple answer, but if you ever faced such transition yourself, how did you approach it? -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.