[bug-notifications] [cswclassutils 0003636]: Allow package to provide their own manifest file

Mantis Bug Tracker noreply at opencsw.org
Thu Jun 4 10:55:52 CEST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3636 
====================================================================== 
Reported By:                yann
Assigned To:                bonivart
====================================================================== 
Project:                    cswclassutils
Issue ID:                   3636
Category:                   regular use
Reproducibility:            have not tried
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-04-13 20:01 CEST
Last Modified:              2009-06-04 10:55 CEST
====================================================================== 
Summary:                    Allow package to provide their own manifest file
Description: 

Some package already provide their own manifest file to be used under
Solaris 10.
It would be nice to have a way for a package using cswinitsmf to disable
automatic manifest generation so its own manifest file is used.
====================================================================== 

---------------------------------------------------------------------- 
 (0005970) yann (reporter) - 2009-04-15 21:12
 http://www.opencsw.org/mantis/view.php?id=3636#c5970 
---------------------------------------------------------------------- 
It could be configured by using the existing tweaks system.
For exemple, if you provide your own manifest file, you could add:

#SMF_SCRIPT no     # change this value to no if this init script should
not be used to autogenerate the smf manifest file. 

---------------------------------------------------------------------- 
 (0005992) bonivart (manager) - 2009-04-21 17:20
 http://www.opencsw.org/mantis/view.php?id=3636#c5992 
---------------------------------------------------------------------- 
Ok, but how would it know which file to import as manifest?

SMF_SCRIPT /path/to/manifest

? 

---------------------------------------------------------------------- 
 (0005996) yann (reporter) - 2009-04-21 21:08
 http://www.opencsw.org/mantis/view.php?id=3636#c5996 
---------------------------------------------------------------------- 
The manifest file would belong to the cswinitsmf class, so it will be
passed to your script which could register it if smf is available and
enabled. 
You would have to add a test to determine if the file is a manifest or an
init.d script (or something else).

But using "SMF_SCRIPT /path/to/manifest" will also work. 

---------------------------------------------------------------------- 
 (0006124) yann (reporter) - 2009-05-17 16:56
 http://www.opencsw.org/mantis/view.php?id=3636#c6124 
---------------------------------------------------------------------- 
Hi Peter,

Any news of this feature, do you plan adding it ?
I am waiting for it to be able to switch some of my packages to
cswclassutils.

Thanks in avance,

Yann 

---------------------------------------------------------------------- 
 (0006215) bonivart (manager) - 2009-05-28 15:16
 http://www.opencsw.org/mantis/view.php?id=3636#c6215 
---------------------------------------------------------------------- 
I have added a MANIFEST tweak to the init script. If set it will use that
manifest instead of autogenerating one.

http://mirror.opencsw.org/testing/cswclassutils-1.13,REV=2009.05.28-SunOS5.8-all-CSW.pkg.gz


---------------------------------------------------------------------- 
 (0006265) bonivart (manager) - 2009-06-04 10:55
 http://www.opencsw.org/mantis/view.php?id=3636#c6265 
---------------------------------------------------------------------- 
I have tested it with smf_test 2.8 and it works. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-13 20:01 yann           New Issue                                    
2009-04-15 21:12 yann           Note Added: 0005970                          
2009-04-21 17:18 bonivart       Status                   new => assigned     
2009-04-21 17:18 bonivart       Assigned To               => bonivart        
2009-04-21 17:20 bonivart       Note Added: 0005992                          
2009-04-21 21:08 yann           Note Added: 0005996                          
2009-05-17 16:56 yann           Note Added: 0006124                          
2009-05-28 15:16 bonivart       Note Added: 0006215                          
2009-06-04 10:55 bonivart       Note Added: 0006265                          
======================================================================




More information about the bug-notifications mailing list