[csw-devel] SF.net SVN: gar:[3020] csw/mgar/pkg/dovecot/trunk/Makefile

skayser at users.sourceforge.net skayser at users.sourceforge.net
Sun Feb 8 17:27:06 CET 2009


Revision: 3020
          http://gar.svn.sourceforge.net/gar/?rev=3020&view=rev
Author:   skayser
Date:     2009-02-08 16:27:01 +0000 (Sun, 08 Feb 2009)

Log Message:
-----------
dovecot: further cswclassutils integration

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

Modified: csw/mgar/pkg/dovecot/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dovecot/trunk/Makefile	2009-02-08 10:55:14 UTC (rev 3019)
+++ csw/mgar/pkg/dovecot/trunk/Makefile	2009-02-08 16:27:01 UTC (rev 3020)
@@ -25,10 +25,10 @@
 SPKG_DESC_CSWdovecot      = Secure IMAP server
 SPKG_DESC_CSWdovecotdevel = Dovecot secure IMAP server header files
 
-REQUIRED_PKGS_CSWdovecot      = CSWosslrt CSWmysql5rt CSWoldaprt
-REQUIRED_PKGS_CSWdovecot      = CSWsasl CSWsqlite3 CSWzlib CSWlibnet
-REQUIRED_PKGS_CSWdovecot      = CSWcswclassutils
-REQUIRED_PKGS_CSWdovecotdevel = CSWdovecot
+REQUIRED_PKGS_CSWdovecot       = CSWosslrt CSWmysql5rt CSWoldaprt
+REQUIRED_PKGS_CSWdovecot      += CSWsasl CSWsqlite3 CSWzlib CSWlibnet
+REQUIRED_PKGS_CSWdovecot      += CSWcswclassutils
+REQUIRED_PKGS_CSWdovecotdevel  = CSWdovecot
 
 PREREQUISITE_PKGS  = CSWossldevel CSWosslrt
 PREREQUISITE_PKGS += CSWmysql5devel CSWmysql5rt
@@ -39,7 +39,7 @@
 PKGFILES_CSWdovecotdevel = $(PKGFILES_DEVEL)
 
 # We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
 
 # No test suite for Dovecot available
 TEST_SCRIPTS	=
@@ -62,14 +62,29 @@
 include gar/category.mk
 
 # init script / SMF integration
-SPKG_CLASSES_CSWdovecot = none cswinitsmf
-PROTOTYPE_FILTER  = awk '$$$$3 ~ /\/init.d\/cswdovecot$$$$/ { $$$$2 = "cswinitsmf" } { print }'
+SPKG_CLASSES_CSWdovecot = none cswcpsampleconf cswinitsmf
+PROTOTYPE_FILTER  = awk '\
+	$$$$3 ~ /\/init.d\/cswdovecot$$$$/ { $$$$2 = "cswinitsmf" } \
+	$$$$3 ~ /dovecot.pem.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+	$$$$3 ~ /dovecot.conf.CSW$$$$/ { $$$$2 = "cswcpsampleconf" } \
+	$$$$3 == "/opt/csw/ssl/certs" { next } \
+	$$$$3 == "/opt/csw/ssl/private" { next } \
+	 { print }'
 
 post-install-modulated: DOCS = NEWS AUTHORS COPYING.LGPL COPYING.MIT
 post-install-modulated: DOCDEST = $(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated: SSLDIR = $(DESTDIR)/opt/csw/ssl
 post-install-modulated:
 	@ginstall -d $(DOCDEST)
 	@ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+	@ginstall -d $(SSLDIR)/certs
+	@ginstall -d $(SSLDIR)/private
+	@( cd $(WORKSRC)/doc; SSLDIR=$(SSLDIR) /bin/sh ./mkcert.sh )
+	@mv $(SSLDIR)/certs/dovecot.pem $(SSLDIR)/certs/dovecot.pem.CSW
+	@mv $(SSLDIR)/private/dovecot.pem $(SSLDIR)/private/dovecot.pem.CSW
+	@chmod 400 $(SSLDIR)/private/dovecot.pem.CSW
+	@cp $(DESTDIR)/etc/opt/csw/$(GARNAME)/dovecot-example.conf \
+		$(DESTDIR)/etc/opt/csw/$(GARNAME)/dovecot.conf.CSW
 	@$(foreach DOC,$(DOCS),ginstall -m 644 $(WORKSRC)/$(DOC) $(DOCDEST);)
 	@ginstall -m 755 $(FILEDIR)/CSWdovecot.cswdovecot  \
 		$(DESTDIR)/etc/opt/csw/init.d/cswdovecot


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