[csw-maintainers] [Opencsw] Preserve smf state and configuration files when you rename a package

Dagobert Michelsen dam at opencsw.org
Tue Jan 15 10:14:39 CET 2013


Hi Yann,

(moving to maintainers@)

Am 15.01.2013 um 00:00 schrieb Yann Rouillard <yann at pleiades.fr.eu.org>:
> I want to release a new openssh package which includes the rename, however I have to take care of preserving configuration and smf state.
> 
> This is done through cswinitsmf and preserveconf classes however they store information in /etc/csw/opt/PKGNAME and as I will change the name of the package, it will not work (and I verified this).
> 
> I want to update the action scripts to handle this case but I would need the information about obsoleted packages available in the scripts.
> 
> I think one way would be to add them in the pkginfo file so I can easily retrieve them through environment variables.
> 
> I think we should also need a way to disable this mecanism as it may probably happen that this behavior is not desired in some cases.
> 
> What do you think about this issue ? Do you see a better way to solve this problem ?

Sounds reasonable. I could add
  OPENCSW_OBSOLETES=CSW<oldpkg>
in pkginfo which should then picked up in addition to the real package name in cswinitsmf.


Best regards

  -- Dago

-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the maintainers mailing list