View Single Post
Posts: 62 | Thanked: 18 times | Joined on Dec 2009 @ Missouri, USA
#47
Originally Posted by TA-t3 View Post
However, there may be a much easier shortcut for pseudo-optifying this particular package:

1: Remove the installation: dpkg --remove maemotex
2: Make sure there's nothing left in /usr/local
3: Remove the original, leftover /usr/local: rmdir /usr/local
(NB: dpkg --remove may have removed it already.)
4: Make a symlink into /opt, like so:
Code:
mkdir /opt/local
cd /usr
ln -s local /opt/local
5: Re-install maemotex.

Now it'll still unpack and install in /usr/local, but that just happens to really be /opt/local.
I seem to have some other folders already in /usr/local in addition to maemotex with chwon root:staff and permissions drwxrwsr-x, such as bin, games, include, lib, etc. So I wouldn't want to blow them.

Can the files in the maemotex package be moved from tmp/usr to a new folder tmp/opt, delete tmp/usr and edit the files in tmp/DEBIAN to change instances of usr/local to opt/local and then repackage?

Thanks,