Hi Sebastian,
Am 04.07.2009 um 19:12 schrieb Sebastian Kayser:
Dagobert Michelsen wrote:
Am 01.07.2009 um 22:08 schrieb Sebastian Kayser:
while working on postfix 2.6 i have noticed again that it is not
quite
straight-forward to assign files to classes. Instead of exposing the
inner
workings of the prototype stuff to the Makefile, could we maybe get
some
variables to assign files to classes (functions)?
For CSWcswclassutils this is already in there :-) Just define
SAMPLECONF
PRESERVECONF
INITSMF
and everything else will be taken cared of.
Sweet!!! :D Can we add something for USERGROUP also?
Index: /home/skayser/mgar/gar/v2/gar.pkg.mk
===================================================================
--- /home/skayser/mgar/gar/v2/gar.pkg.mk (revision 5361)
+++ /home/skayser/mgar/gar/v2/gar.pkg.mk (working copy)
@@ -155,12 +155,14 @@
SPKG_CLASSES := $(SPKG_CLASSES) $(if $(SAMPLECONF),$(if $(filter
cswsampleconf,$(SPKG_CLASSES)),,cswsampleconf))
SPKG_CLASSES := $(SPKG_CLASSES) $(if $(PRESERVECONF),$(if $(filter
cswpreserveconf,$(SPKG_CLASSES)),,cswpreserveconf))
SPKG_CLASSES := $(SPKG_CLASSES) $(if $(INITSMF),$(if $(filter
cswinitsmf,$(SPKG_CLASSES)),,cswinitsmf))
+SPKG_CLASSES := $(SPKG_CLASSES) $(if $(USERGROUP),$(if $(filter
cswusergroup,$(SPKG_CLASSES)),,cswusergroup))
# - set class for all config files
ifneq ($(SAMPLECONF)$(PRESERVECONF)$(INITSMF),)
_CSWCLASS_FILTER = | perl -ane '\
$(foreach FILE,$(SAMPLECONF),$$F[1] = "cswsampleconf"
if ( $$F[2] =~ m(^$(FILE)$$) );)\
$(foreach FILE,$(PRESERVECONF),$$F[1] =
"cswpreserveconf" if( $$F[2] =~ m(^$(FILE)$$) );)\
$(foreach FILE,$(INITSMF),$$F[1] = "cswinitsmf" if( $
$F[2] =~ m(^$(FILE)$$) );)\
+ $(foreach FILE,$(USERGROUP),$$F[1] = "cswusergroup"
if( $$F[2] =~ m(^$(FILE)$$) );)\
print join(" ",@F),"\n";'
_EXTRA_GAR_PKGS += CSWcswclassutils
endif
Looks good. Please go ahead and commit.
Best regards
-- Dago
_______________________________________________
maintainers mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/maintainers