excerpt from email:
There are two things that you must do:
1. put the class action files in the prototype with "i [i|r].<class>"
2. make the [i|r].<class> file available
This could be done with a prototype filter, however this is pretty ugly right
now. First, add your class action to DISTFILES:
DISTFILES = i.admin
Then you need the prototype filter adding the line to the prototype.
However, this is evaluated twice right now: once for .prototype and
once for .prototype-$(GARCH), which is then used for the package.
We must therefore take the line out and then insert it to work on
dual invocation. It looks something like this:
PROTOTYPE_FILTER = (fgrep -v "i.admin";echo "i i.admin=\$$$$WORKDIR_FIRSTMOD/i.admin")
Pretty ugly, but works. I imagine that something like
DISTFILES = prototype-prepend
would be useful. Or CLASSACTIONS = myinstall which just does everything
automatically.
...and the double invocation of the prototype filter should be removed.
Would you please file a bug report for GAR as I am a bit overloaded
right now and don't want to forget this.
Here is what I wound up doing, it is a little more elegent the the fgrep
It also corrects the multiple entries in the *.prototype-$(ISA) files
MY_CLASSES = CSWsendmail.i.sol8 CSWsendmail.i.sol9 CSWsendmail.i.sol10
PROTOTYPE_FILTER = awk \
'$$$$2 ~/i.sol8/ { next } \ $$$$2 ~/i.sol9/ { next } \ $$$$2 ~/i.sol10/ { next } \
$$$$3 ~/\/init\.d\/cswsendmail$$$$/ {$$$$2 = "cswinitsmf"} \ $$$$3 ~/sol8\./ { $$$$2 = "sol8" } \
$$$$3 ~/sol9\./ { $$$$2 = "sol9" } \ $$$$3 ~/sol10\./ { $$$$2 = "sol10" } \ $$$$3 ~/\/sol[0-9]*\.sendmail$$$$/ { $$$$4 = "2755" } \ { print } \ END { { print "i i.sol8=CSWsendmail.i.sol8" } \ { print "i i.sol9=CSWsendmail.i.sol9" } \ { print "i i.sol10=CSWsendmail.i.sol10" } } '