[csw-devel] SF.net SVN: gar:[4422] csw/mgar/pkg/spamassassin/trunk

bonivart at users.sourceforge.net bonivart at users.sourceforge.net
Mon Apr 20 15:34:07 CEST 2009


Revision: 4422
          http://gar.svn.sourceforge.net/gar/?rev=4422&view=rev
Author:   bonivart
Date:     2009-04-20 13:34:07 +0000 (Mon, 20 Apr 2009)

Log Message:
-----------
spamassassin: move to mgar v2, fix minor issues

Modified Paths:
--------------
    csw/mgar/pkg/spamassassin/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/spamassassin/trunk/files/CSWspamassassin.cswusergroup

Property Changed:
----------------
    csw/mgar/pkg/spamassassin/trunk/


Property changes on: csw/mgar/pkg/spamassassin/trunk
___________________________________________________________________
Modified: svn:externals
   - gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v1

   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Modified: csw/mgar/pkg/spamassassin/trunk/Makefile
===================================================================
--- csw/mgar/pkg/spamassassin/trunk/Makefile	2009-04-20 10:47:47 UTC (rev 4421)
+++ csw/mgar/pkg/spamassassin/trunk/Makefile	2009-04-20 13:34:07 UTC (rev 4422)
@@ -12,16 +12,29 @@
 
 MASTER_SITES = http://apache.jumper.nu/spamassassin/source/
 DISTFILES  = $(SPKG_NAME)-$(GARVERSION).tar.gz
-DISTFILES += $(call admfiles,CSWspamassassin,checkinstall depend postinstall)
+#DISTFILES += $(call admfiles,CSWspamassassin,checkinstall depend postinstall)
 
+LICENSE = $(WORKDIR)/$(SPKG_NAME)-$(GARVERSION)/LICENSE
+
+REQUIRED_PKGS = CSWosslrt CSWperl CSWpmarchivetar CSWpmdbi CSWpmdigestsha1 CSWpmiosocketinet6 CSWpmiosocketssl CSWpmiozlib CSWpmipcountry CSWpmldap CSWpmlibwww CSWpmmaildkim CSWpmmailspf CSWpmmailtools CSWpmmimebase64 CSWpmnetdns CSWpmuri CSWpmhtmlparser CSWzlib CSWcswclassutils
+
 # We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = $(SPKG_NAME)-(\d+(?:\.\d+)*).tar.gz
 
+SPKG_CLASSES_CSWspamassassin = none cswusergroup cswcpsampleconf cswinitsmf
+
 CONFIGURE_SCRIPTS = custom
 BUILD_SCRIPTS = custom
 TEST_SCRIPTS = custom
 INSTALL_SCRIPTS = custom
 
+PROTOTYPE_FILTER  = awk ' \
+   $$$$3 ~ /\/opt\/csw\/etc\/spamassassin\/.+\.pre\.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+   $$$$3 ~ /\/opt\/csw\/etc\/spamassassin\/local\.cf\.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+   $$$$3 ~ /\/opt\/csw\/etc\/CSWspamassassin\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" } \
+   $$$$3 ~ /\/init.d\/cswspamd$$$$/ { $$$$2 = "cswinitsmf" } \
+   { print }'
+
 include gar/category.mk
 
 WORKSRC = $(WORKDIR)/$(SPKG_NAME)-$(GARVERSION)
@@ -50,15 +63,19 @@
 	@rm -rf $(DESTDIR)
 	@ginstall -d $(DESTDIR)$(docdir)/$(GARNAME)
 	@ginstall -d $(DESTDIR)/var/opt/csw/$(GARNAME)
+	@ginstall -d $(DESTDIR)$(sysconfdir)/CSWspamassassin
+	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+	@ginstall -m 755 $(FILEDIR)/CSWspamassassin.cswspamd $(DESTDIR)/etc/opt/csw/init.d/cswspamd
+	@ginstall -m 644 $(FILEDIR)/CSWspamassassin.cswusergroup $(DESTDIR)$(sysconfdir)/CSWspamassassin/cswusergroup
 	@cp $(FILEDIR)/CSWspamassassin.README.CSW $(DESTDIR)$(docdir)/$(GARNAME)/README.CSW
 	@cp $(FILEDIR)/CSWspamassassin.README.spamd $(DESTDIR)$(docdir)/$(GARNAME)/README.spamd
-	@cp $(FILEDIR)/CSWspamassassin.cswspamd $(DESTDIR)$(docdir)/$(GARNAME)/cswspamd
-	@cp $(FILEDIR)/CSWspamassassin.spamd.xml.CSW $(DESTDIR)$(docdir)/$(GARNAME)/spamd.xml.CSW
-	@cp $(FILEDIR)/CSWspamassassin.svc-spamd.CSW $(DESTDIR)$(docdir)/$(GARNAME)/svc-spamd.CSW
+#	@cp $(FILEDIR)/CSWspamassassin.cswspamd $(DESTDIR)$(docdir)/$(GARNAME)/cswspamd
+#	@cp $(FILEDIR)/CSWspamassassin.spamd.xml.CSW $(DESTDIR)$(docdir)/$(GARNAME)/spamd.xml.CSW
+#	@cp $(FILEDIR)/CSWspamassassin.svc-spamd.CSW $(DESTDIR)$(docdir)/$(GARNAME)/svc-spamd.CSW
 	@( cd $(WORKSRC) ; \
 	   gmake install )
 	@( cd $(WORKSRC) ; \
-	   cp -r C* INSTALL LICENSE NOTICE README TRADEMARK U* ldap/ sql/ procmailrc.example sample-* $(DESTDIR)$(docdir)/$(GARNAME)/ )
+	   cp -r C* INSTALL NOTICE README TRADEMARK U* ldap/ sql/ procmailrc.example sample-* $(DESTDIR)$(docdir)/$(GARNAME)/ )
 	@( cd $(DESTDIR)/opt/csw/etc/spamassassin ; \
 	   mv local.cf local.cf.CSW ; \
 	   mv init.pre init.pre.CSW ; \

Added: csw/mgar/pkg/spamassassin/trunk/files/CSWspamassassin.cswusergroup
===================================================================
--- csw/mgar/pkg/spamassassin/trunk/files/CSWspamassassin.cswusergroup	                        (rev 0)
+++ csw/mgar/pkg/spamassassin/trunk/files/CSWspamassassin.cswusergroup	2009-04-20 13:34:07 UTC (rev 4422)
@@ -0,0 +1 @@
+spamd:spamd:SpamAssassin::/bin/false::


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list