dskvr / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

add automatic symlinking option to --dest option #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When we use --dest option the package content is placed to a custom location, 
right? We usually do it to use other filesystem which has more free space then 
the system one. But in result the system does not know that the package files 
are there and we have to add something to PATHs and create symlinks, which is a 
lot of accurate work.
So it would be nice if opkg had an option to automatically create symlinks for 
files placed to --dest in their expected locations.
That is, if --dest corresponds to /opt/openwrt, it automaticaly does
ln -s /opt/openwrt/usr/sbin/openvpn /usr/sbin/openvpn
etc for every file in package, creating needed directories.

Original issue reported on code.google.com by denis1...@gmail.com on 5 Dec 2012 at 7:10

GoogleCodeExporter commented 8 years ago
"--dest" can be used for multiple purposes. One purpose is to install to a 
secondary volume when the first volume is full, as in this issue. Another use 
case is to install packages to a chroot. So I don't think links should 
automatically be created in the root filesystem when packages are installed to 
an alternative destination.

It would be easy to script this around the current opkg options. You could 
install the package, run 'opkg files <pkg>' to list what was installed and then 
iterate through that list and create the required links. So I don't think this 
needs to be solved in opkg itself.

Original comment by paul.betafive on 1 Feb 2014 at 1:40