From: "Thomas Mueller" <mueller6724@twc.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] FreeBSD migration, what to do with /usr/local
Date: Thu, 12 Oct 2017 07:11:47 +0000 [thread overview]
Message-ID: <20171012071204.2E5B02BC041@pigeon.gentoo.org> (raw)
In-Reply-To: 20171012062933.6bhtcfqso37gf6af@matica.foolinux.mooo.com
from Ian Zimmerman:
> 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?
/usr/local is the default LOCALBASE in FreeBSD, but I believe you can set LOCALBASE to something else in your environment, which could be set in /etc/make.conf .
You could possibly copy Gentoo scripts to /usr/local/gentoo-scripts, or would that not work with your scripts as set up?
You would have to be careful setting up your PATH in .profile and /etc/profile , to make sure it includes the proper LOCALBASE.
Tom
next prev parent reply other threads:[~2017-10-12 7:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 6:29 [gentoo-user] Slightly OT: FreeBSD migration, what to do with /usr/local Ian Zimmerman
2017-10-12 6:36 ` Alan McKinnon
2017-10-12 15:59 ` [gentoo-user] " Ian Zimmerman
2017-10-12 7:11 ` Thomas Mueller [this message]
[not found] ` <20171012071204.441902BC058@pigeon.gentoo.org>
2017-10-12 16:08 ` [gentoo-user] " Ian Zimmerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171012071204.2E5B02BC041@pigeon.gentoo.org \
--to=mueller6724@twc.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox