[csw-maintainers] more gar?

Peter Bonivart bonivart at opencsw.org
Fri May 7 00:04:40 CEST 2010


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)

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

-- 
/peter


More information about the maintainers mailing list