[csw-devel] SF.net SVN: gar:[2933] csw/mgar/pkg

skayser at users.sourceforge.net skayser at users.sourceforge.net
Fri Jan 30 01:44:24 CET 2009


Revision: 2933
          http://gar.svn.sourceforge.net/gar/?rev=2933&view=rev
Author:   skayser
Date:     2009-01-30 00:44:24 +0000 (Fri, 30 Jan 2009)

Log Message:
-----------
dovecot: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/dovecot/
    csw/mgar/pkg/dovecot/branches/
    csw/mgar/pkg/dovecot/tags/
    csw/mgar/pkg/dovecot/trunk/
    csw/mgar/pkg/dovecot/trunk/Makefile
    csw/mgar/pkg/dovecot/trunk/checksums
    csw/mgar/pkg/dovecot/trunk/files/
    csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec
    csw/mgar/pkg/dovecot/trunk/files/patch-unsetenv.diff


Property changes on: csw/mgar/pkg/dovecot/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sf.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/dovecot/trunk/Makefile
===================================================================
--- csw/mgar/pkg/dovecot/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/dovecot/trunk/Makefile	2009-01-30 00:44:24 UTC (rev 2933)
@@ -0,0 +1,44 @@
+GARNAME = dovecot
+GARVERSION = 1.1.8
+CATEGORIES = server
+
+DESCRIPTION = Secure IMAP server
+define BLURB
+  Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems,
+  written with security primarily in mind. Dovecot is an excellent choice for
+  both small and large installations. It's fast, simple to set up, requires no
+  special administration and it uses very little memory.
+endef
+
+MASTER_SITES = http://dovecot.org/releases/1.1/
+DISTFILES  = $(GARNAME)-$(GARVERSION).tar.gz
+DISTFILES += $(call admfiles,CSWdovecot,)
+
+REQUIRED_PKGS = CSWosslrt CSWmysql5rt 
+
+PREREQUISITE_PKGS  = CSWmysql5devel CSWmysql5rt
+PREREQUISITE_PKGS += CSWoldaprt CSWoldapdevel
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
+
+# See http://www.mail-archive.com/dovecot@dovecot.org/msg15562.html
+PATCHFILES = patch-unsetenv.diff
+
+# TODO
+# * Consider LDAP issues: http://opencsw.org/bugtrack/view.php?id=2760
+# * --enable-header-install & split packages (dovecot, dovecotdevel)
+# * Build and package Dovecot Sieve plugin http://wiki.dovecot.org/LDA/Sieve
+# * ...
+
+CONFIGURE_ARGS  = $(DIRPATHS)
+CONFIGURE_ARGS += --with-ldap
+CONFIGURE_ARGS += --with-mysql
+CONFIGURE_ARGS += --with-sqlite
+CONFIGURE_ARGS += --with-ssl=openssl
+CONFIGURE_ARGS += --with-ssldir=$(DESTDIR)/ssl
+
+EXTRA_LIB = /opt/csw/mysql5/lib/mysql
+EXTRA_INC = /opt/csw/mysql5/include/mysql
+
+include gar/category.mk

Added: csw/mgar/pkg/dovecot/trunk/checksums
===================================================================
--- csw/mgar/pkg/dovecot/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/dovecot/trunk/checksums	2009-01-30 00:44:24 UTC (rev 2933)
@@ -0,0 +1,3 @@
+bc23a919c7ad2b3c5ba69e19f1b46eb2  download/dovecot-1.1.8.tar.gz
+d707692194795943a4ff18581f61d04d  download/CSWdovecot.gspec
+827bae06acbae39e9c89707d7b198b4e  download/patch-unsetenv.diff

Added: csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec	                        (rev 0)
+++ csw/mgar/pkg/dovecot/trunk/files/CSWdovecot.gspec	2009-01-30 00:44:24 UTC (rev 2933)
@@ -0,0 +1,4 @@
+%var            bitname dovecot
+%var            pkgname CSWdovecot
+%include        url file://%{PKGLIB}/csw_dyndepend.gspec
+%copyright      url file://%{WORKSRC}/LICENSE

Added: csw/mgar/pkg/dovecot/trunk/files/patch-unsetenv.diff
===================================================================
--- csw/mgar/pkg/dovecot/trunk/files/patch-unsetenv.diff	                        (rev 0)
+++ csw/mgar/pkg/dovecot/trunk/files/patch-unsetenv.diff	2009-01-30 00:44:24 UTC (rev 2933)
@@ -0,0 +1,46 @@
+# HG changeset patch
+# User Timo Sirainen <tss at iki.fi>
+# Date 1231433510 18000
+# Node ID fec8412dc1c5487d10974c18104f9ec9cbd009f1
+# Parent 30207243a4f4c3e076bea43d1e92de8e7179c72a
+env_remove(): Implement a fallback method if unsetenv() doesn't exist.
+Fixes compiling at least with Solaris 8.
+
+--- a/configure.in	Thu Jan 08 11:41:30 2009 -0500
++++ b/configure.in	Thu Jan 08 11:51:50 2009 -0500
+@@ -459,7 +459,7 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_at
+ 	       setrlimit setproctitle seteuid setreuid setegid setresgid \
+ 	       strtoull strtoll strtouq strtoq \
+ 	       setpriority quotactl getmntent kqueue kevent backtrace_symbols \
+-	       walkcontext dirfd clearenv malloc_usable_size)
++	       walkcontext dirfd clearenv malloc_usable_size unsetenv)
+ 
+ dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included
+ AC_MSG_CHECKING([for strtoimax])
+--- a/src/lib/env-util.c	Thu Jan 08 11:41:30 2009 -0500
++++ b/src/lib/env-util.c	Thu Jan 08 11:51:50 2009 -0500
+@@ -19,7 +19,24 @@ void env_put(const char *env)
+ 
+ void env_remove(const char *name)
+ {
++#ifdef HAVE_UNSETENV
+ 	unsetenv(name);
++#else
++	extern char **environ;
++	unsigned int len;
++	char **envp;
++
++	len = strlen(name);
++	for (envp = environ; *envp != NULL; envp++) {
++		if (strncmp(name, *envp, len) == 0 &&
++		    (*envp)[len] == '=') {
++			do {
++				envp[0] = envp[1];
++			} while (*++envp != NULL);
++			break;
++		}
++	}
++#endif
+ }
+ 
+ void env_clean(void)


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