[csw-devel] SF.net SVN: gar:[3015] csw/mgar/pkg/dovecot/trunk
skayser at users.sourceforge.net
skayser at users.sourceforge.net
Sun Feb 8 02:10:57 CET 2009
Revision: 3015
http://gar.svn.sourceforge.net/gar/?rev=3015&view=rev
Author: skayser
Date: 2009-02-08 01:10:57 +0000 (Sun, 08 Feb 2009)
Log Message:
-----------
dovecot: added init script, switched to dynamic gspec, adjusted configure options
Modified Paths:
--------------
csw/mgar/pkg/dovecot/trunk/Makefile
csw/mgar/pkg/dovecot/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot
Removed Paths:
-------------
csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec
csw/mgar/pkg/dovecot/trunk/files/CSWdovecotdevel.gspec
Modified: csw/mgar/pkg/dovecot/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dovecot/trunk/Makefile 2009-02-07 20:59:47 UTC (rev 3014)
+++ csw/mgar/pkg/dovecot/trunk/Makefile 2009-02-08 01:10:57 UTC (rev 3015)
@@ -1,3 +1,8 @@
+# TODO
+# * postinstall: Create dovecot user(s) or advise user to do so
+# * Create default config so that service can startup right away?
+# * Build and package Dovecot Sieve plugin http://wiki.dovecot.org/LDA/Sieve
+
GARNAME = dovecot
GARVERSION = 1.1.11
CATEGORIES = server
@@ -12,37 +17,33 @@
MASTER_SITES = http://dovecot.org/releases/1.1/
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
-DISTFILES += $(call admfiles,CSWdovecot,)
-DISTFILES += $(call admfiles,CSWdovecotdevel,)
-
SPKG_SOURCEURL = http://dovecot.org/
+PACKAGES = CSWdovecot CSWdovecotdevel
+CATALOGNAME_CSWdovecotdevel = dovecot_devel
+
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
PREREQUISITE_PKGS = CSWossldevel CSWosslrt
PREREQUISITE_PKGS += CSWmysql5devel CSWmysql5rt
PREREQUISITE_PKGS += CSWoldaprt CSWoldapdevel
+PREREQUISITE_PKGS += CSWsasl
+PREREQUISITE_PKGS += CSWsqlite3 CSWsqlite3dev
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
-# Work around non-existing unsetenv() on Solaris 8
-# See http://www.mail-archive.com/dovecot@dovecot.org/msg15562.html
-PATCHFILES = patch-unsetenv.diff
-
+# No test suite for Dovecot available
TEST_SCRIPTS =
-# TODO
-# * Consider LDAP issues: http://opencsw.org/bugtrack/view.php?id=2760
-# * Build and package Dovecot Sieve plugin http://wiki.dovecot.org/LDA/Sieve
-# * ...
-
CONFIGURE_ARGS = $(DIRPATHS)
CONFIGURE_ARGS += --with-pop3d
CONFIGURE_ARGS += --with-lda
@@ -50,12 +51,26 @@
CONFIGURE_ARGS += --with-mysql
CONFIGURE_ARGS += --with-sqlite
CONFIGURE_ARGS += --with-ssl=openssl
-CONFIGURE_ARGS += --with-ssldir=$(DESTDIR)/ssl
+CONFIGURE_ARGS += --with-ssldir=/opt/csw/ssl
CONFIGURE_ARGS += --enable-header-install
-CONFIGURE_ARGS += --localstatedir=/var/opt/csw/$(GARNAME)
+CONFIGURE_ARGS += --localstatedir=/var/opt/csw
CONFIGURE_ARGS += --sysconfdir=/etc/opt/csw/$(GARNAME)
EXTRA_LIB = /opt/csw/mysql5/lib/mysql
EXTRA_INC = /opt/csw/mysql5/include/mysql
include gar/category.mk
+
+# init script / SMF integration
+SPKG_CLASSES_CSWdovecot = none cswinitsmf
+PROTOTYPE_FILTER = awk '$$$$3 ~ /\/init.d\/cswdovecot$$$$/ { $$$$2 = "cswinitsmf" } { print }'
+
+post-install-modulated: DOCS = NEWS AUTHORS COPYING.LGPL COPYING.MIT
+post-install-modulated: DOCDEST = $(DESTDIR)$(docdir)/$(GARNAME)
+post-install-modulated:
+ @ginstall -d $(DOCDEST)
+ @ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+ @$(foreach DOC,$(DOCS),ginstall -m 644 $(WORKSRC)/$(DOC) $(DOCDEST);)
+ @ginstall -m 755 $(FILEDIR)/CSWdovecot.cswdovecot \
+ $(DESTDIR)/etc/opt/csw/init.d/cswdovecot
+ @$(MAKECOOKIE)
Modified: csw/mgar/pkg/dovecot/trunk/checksums
===================================================================
--- csw/mgar/pkg/dovecot/trunk/checksums 2009-02-07 20:59:47 UTC (rev 3014)
+++ csw/mgar/pkg/dovecot/trunk/checksums 2009-02-08 01:10:57 UTC (rev 3015)
@@ -1,4 +1 @@
c973eb41aca79fb16630a16f0d84f765 download/dovecot-1.1.11.tar.gz
-870f79d3f342821e97c3474fa018cde3 download/CSWdovecot.gspec
-59c32477bb7dbf339c2f94f1c643f77b download/CSWdovecotdevel.gspec
-827bae06acbae39e9c89707d7b198b4e download/patch-unsetenv.diff
Added: csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot (rev 0)
+++ csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.cswdovecot 2009-02-08 01:10:57 UTC (rev 3015)
@@ -0,0 +1,59 @@
+#!/bin/sh
+# License is public domain.
+#
+# Taken from http://wiki.dovecot.org/DovecotInit
+
+DAEMON=/opt/csw/sbin/dovecot
+
+test -x $DAEMON || exit 1
+set -e
+
+base_dir=`$DAEMON -a|grep '^base_dir: '|sed 's/^base_dir: //'`
+pidfile=$base_dir/master.pid
+
+if test -f $pidfile; then
+ running=yes
+else
+ running=no
+fi
+
+case "$1" in
+ start)
+ echo -n "Starting Dovecot"
+ $DAEMON
+ echo "."
+ ;;
+ stop)
+ if test $running = yes; then
+ echo "Stopping Dovecot"
+ kill `cat $pidfile`
+ echo "."
+ else
+ echo "Dovecot is already stopped."
+ fi
+ ;;
+ reload)
+ if test $running = yes; then
+ echo -n "Reloading Dovecot configuration"
+ kill -HUP `cat $pidfile`
+ echo "."
+ else
+ echo "Dovecot isn't running."
+ fi
+ ;;
+ restart|force-reload)
+ echo -n "Restarting Dovecot"
+ if test $running = yes; then
+ kill `cat $pidfile`
+ sleep 1
+ fi
+ $DAEMON
+ echo "."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/dovecot {start|stop|reload|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
Deleted: csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec 2009-02-07 20:59:47 UTC (rev 3014)
+++ csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec 2009-02-08 01:10:57 UTC (rev 3015)
@@ -1,4 +0,0 @@
-%var bitname dovecot
-%var pkgname CSWdovecot
-%include url file://%{PKGLIB}/csw_dyndepend.gspec
-%copyright url file://%{WORKSRC_FIRSTMOD}/COPYING
Deleted: csw/mgar/pkg/dovecot/trunk/files/CSWdovecotdevel.gspec
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/CSWdovecotdevel.gspec 2009-02-07 20:59:47 UTC (rev 3014)
+++ csw/mgar/pkg/dovecot/trunk/files/CSWdovecotdevel.gspec 2009-02-08 01:10:57 UTC (rev 3015)
@@ -1,4 +0,0 @@
-%var bitname dovecot_devel
-%var pkgname CSWdovecotdevel
-%include url file://%{PKGLIB}/csw_dyndepend.gspec
-%copyright url file://%{WORKSRC_FIRSTMOD}/COPYING
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