1 |
from Ian Zimmerman: |
2 |
|
3 |
> I think I have written here previously that I want to move my _server_ |
4 |
> to FreeBSD. I am still thinking about that. But now I hit an |
5 |
> obstacle. For a long time, I have put my local kiddie scripts in |
6 |
> /usr/local. For better or worse, they are written in my dense style |
7 |
> where any code duplication is avoided, and so they call one another a |
8 |
> lot. |
9 |
|
10 |
> But as you know FreeBSD directory hierarchy is different: /usr/local is |
11 |
> for Packages and Ports. I must move my scripts somewhere else to not |
12 |
> conflict with P & P. So the first problem is to come up with a |
13 |
> location. What does a typical BSD admin do in this situation? I don't |
14 |
> want to put them in my home directory because they're general purpose; |
15 |
> at the very least I use them both as root and as an unprivileged user. |
16 |
|
17 |
> A more serious problem is how to find all the situations where |
18 |
> /usr/local is baked in. It's not as simple as grep because when I |
19 |
> could, I relied on the implicit PATH which would be configured somewhere |
20 |
> else, or it might not even be configured - it might be compiled in (I |
21 |
> think this is the case for some programs in the shadow package, and |
22 |
> perhaps PAM modules). |
23 |
|
24 |
> I don't think I can expect a simple answer, but if you ever faced such |
25 |
> transition yourself, how did you approach it? |
26 |
|
27 |
/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 . |
28 |
|
29 |
You could possibly copy Gentoo scripts to /usr/local/gentoo-scripts, or would that not work with your scripts as set up? |
30 |
|
31 |
You would have to be careful setting up your PATH in .profile and /etc/profile , to make sure it includes the proper LOCALBASE. |
32 |
|
33 |
Tom |