Actually, I plan to install into /opt/something
What I want to do is make symbolic links from /usr/bin to /opt/something/bin
They need to be symbolic because /usr and /opt are on different partitions.
I've got no plans to actually install anything in /usr/bin - I just want to make a few links.
For example, let's say I'm installing my app into /opt/myapp, and the binaries will be in /opt/myapp/bin, and there is a specific binary "theapp". I want to create a symbolic link /usr/bin/theapp that points to /opt/myapp/bin/theapp, with a result like this:
lrwxrwxrwx 1 root other 18 Dec 7 2007 /usr/bin/theapp -> /opt/myapp/bin/theapp*
What would by the syntax in the prototype file? I'm finding the Sun documentation lacking in clarity.
Given BASEDIR=/opt/myapp, would it be:
s none bin/theapp=/usr/bin/theapp
This seems good, but the Sun doc warns that path2 should be relative, no absolute.
Main Topics
Browse All Topics





by: bluPosted on 2007-12-26 at 13:16:37ID: 20530974
Yes, you can make links outside the directory. There is no limitation in the package system that restricts you
to any particular location in the file system. However, think carefully about what you are going to install and
where. It is a bit anti-social to install into /usr/bin. Perhaps /usr/local/bin would be a better choice? The /usr/local/bin
directory is usually on most peoples path, and has no OS restrictions as /usr/bin does. While not exactly
prohibited, Sun takes a dim view of 3rd parties installing into /usr/bin. If you replace something that is
already there, you can render you system unsupportable.