[csw-maintainers] more gar?

Darin Perusich Darin.Perusich at cognigencorp.com
Fri May 7 17:24:11 CEST 2010


Thanks Peter and Dago!

On 05/07/2010 03:58 AM, Dagobert Michelsen wrote:
> Hi,
> 
> Am 07.05.2010 um 00:04 schrieb Peter Bonivart:
>> On Thu, May 6, 2010 at 10:46 PM, Darin Perusich
>> <Darin.Perusich at cognigencorp.com> wrote:
>>> How do you define dependencies in GAR?
>>
>> With RUNTIME_DEP_PKGS. See
>> http://sourceforge.net/apps/trac/gar/wiki/GAR%20Variable%20Reference.
>>
>>> How do you specify pre/post install/remove scripts?
>>
>> With a line like this:
>>
>> DISTFILES += $(call admfiles,CSWpkgutil,prototype preremove postinstall)
> 
> The admfiles-routine also adds CSWpkgutil.gspec, which sets package name
> etc.
> I would recommend just adding the files you need directly without the
> call, e.g.
>   DISTFILES = CSWpkgutil.postinstall CSWpkgutil.preremove etc.
> (for Darin, Peter: you have probably a special case here)
> 
>> You provide the scripts in for example files/CSWpkgutil.preremove. See
>> http://gar.svn.sourceforge.net/viewvc/gar/csw/mgar/pkg/pkgutil/trunk/.
>> The above example defines a static prototype as well as preremove and
>> postinstall, you should normally always use a dynamic prototype.
>>
>>> How you renamed file.conf to  file.conf.CSW?
>>
>> You can write your own install scripts directly in the Makefile,
>> easiest would be to look at other Makefiles, here's one:
>>
>> http://gar.svn.sourceforge.net/viewvc/gar/csw/mgar/pkg/bind/trunk/Makefile?revision=9472&view=markup
>>
> 
> Or even easier you just say
>   PRESERVECONF = /etc/opt/csw/myapp.conf
> GAR is smart enough to automatically append .CSW, set the class, add the
> cswclassutils dependency etc. This is documented here:
>   <http://wiki.opencsw.org/cswclassutils-package#toc11>
> 
> 
> Best regards
> 
>   -- Dago
> 
> _______________________________________________
> maintainers mailing list
> maintainers at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/maintainers
> .:: This mailing list's archive is public. ::.

-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
Phone: 716-633-3463
Email: darinper at cognigencorp.com


More information about the maintainers mailing list