![]() |
Optifying problem
I optified my project, but when i uninstall it with dpkg -r, it leaves behind the symbolic links that i made in the postinst.
how can i remove these automatically during uninstallation? this is what i have in postinst now: Code:
#!/bin/sh |
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
If you want to learn a bit more about these scripts, you can find some info here: http://www.debian.org/doc/debian-pol...erscripts.html |
Re: Optifying problem
Quote:
(Sorry for bother you). |
Re: Optifying problem
Quote:
Use maemo-optify. Simplest is to make debian/optify file with "auto" in it. Then run maemo-optify-deb for debs produced with dpkg-buildpackage. Other option is to install directly to /opt/boulderdash directory |
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
Installing directly to /opt is always possible, I assume. |
Re: Optifying problem
Quote:
Quote:
|
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
Anyway if you want to create symlink the best and easy option is using maemo-optify as mikkov explained. |
Re: Optifying problem
Quote:
Installing directly to /opt is working very well so far, as i've done it already. The only problem is that i don't know how to remove the symlinks while removing the package. I guess i could just transfer the .deb to the N900, run maemo-optify on it there, and get the package back. It seems kind of an unnecessary hassle to me. I already know where the files have to be, and i already know that there has to be some symlinks in the right places, so why can't i just make a .deb that does that automatically? |
Re: Optifying problem
Quote:
Quote:
Now the proper method would be in the debian/rules file in the install section create a rule that creates the symlink. Then the package manager would automatically delete the symlinks for you when you de-installed. Nathan |
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
|
Re: Optifying problem
Quote:
Now since i'm running on MADDE, and it doesn't seem to have dh_link available, i think i will have to find a way to make the symlinks some other way. And i really need the symlinks, how else could i place everything in the /opt/... subfolders? |
All times are GMT. The time now is 21:12. |
vBulletin® Version 3.8.8