Browse Source

2.2.3 seems not too ready yet (process ***** exited, status 75), so back out upgrade from 2.1.16

Michael Schloh von Bennewitz 22 years ago
parent
commit
cf0b334c4c
4 changed files with 23 additions and 24 deletions
  1. 0 4
      imapd/imapd.conf
  2. 2 2
      imapd/imapd.patch
  3. 10 11
      imapd/imapd.patch.group
  4. 11 7
      imapd/imapd.spec

+ 0 - 4
imapd/imapd.conf

@@ -21,8 +21,4 @@ autocreatequota:        10000
 reject8bit:             no
 quotawarn:              90
 timeout:                30
-defaultdomain:          @l_domainname@
-virtdomains:            on
-#virtdomains:            off
-#virtdomains:            userid
 

+ 2 - 2
imapd/imapd.patch

@@ -1,6 +1,6 @@
 --- lib/cyrusdb_skiplist.c.orig	Tue Apr 23 20:25:48 2002
 +++ lib/cyrusdb_skiplist.c	Wed May  8 13:49:23 2002
-@@ -71,6 +71,11 @@
+@@ -69,6 +69,11 @@
  
  #define PROB (0.5)
  
@@ -14,7 +14,7 @@
   * disk format; all numbers in network byte order
 --- et/com_err.c.dist	Tue Jun 17 08:38:32 2003
 +++ et/com_err.c	Tue Jun 17 08:38:46 2003
-@@ -50,7 +50,7 @@
+@@ -48,7 +48,7 @@
  #include <string.h>
  #include "mit-sipb-copyright.h"
  

+ 10 - 11
imapd/imapd.patch.group

@@ -1,6 +1,6 @@
---- lib/auth_unix.c.orig	Wed Oct 22 20:50:12 2003
-+++ lib/auth_unix.c	Fri Jan 16 15:24:05 2004
-@@ -48,6 +48,7 @@
+--- lib/auth_unix.c.orig	2003-05-13 17:33:26.000000000 +0200
++++ lib/auth_unix.c	2003-10-08 10:29:55.000000000 +0200
+@@ -48,12 +48,133 @@
  #include <stdlib.h>
  #include <pwd.h>
  #include <grp.h>
@@ -8,8 +8,7 @@
  #include <ctype.h>
  #include <string.h>
  
-@@ -55,6 +56,126 @@
- #include "libcyr_cfg.h"
+ #include "auth.h"
  #include "xmalloc.h"
  
 +#ifdef __FreeBSD__
@@ -135,7 +134,7 @@
  const char *auth_method_desc = "unix";
  
  struct auth_state {
-@@ -144,6 +265,25 @@
+@@ -143,6 +264,25 @@
      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  };
  
@@ -161,7 +160,7 @@
  /*
   * Convert 'identifier' into canonical form.
   * Returns a pointer to a static buffer containing the canonical form
-@@ -179,7 +319,7 @@
+@@ -185,7 +325,7 @@
       */
      
      if (!strncmp(retbuf, "group:", 6)) {
@@ -170,7 +169,7 @@
  	if (!grp) return 0;
  	strcpy(retbuf+6, grp->gr_name);
  	return retbuf;
-@@ -224,6 +364,7 @@
+@@ -228,6 +368,7 @@
      struct passwd *pwd;
      struct group *grp;
      char **mem;
@@ -178,10 +177,10 @@
  
      identifier = auth_canonifyid(identifier, 0);
      if (!identifier) return 0;
-@@ -240,20 +381,23 @@
+@@ -241,20 +382,23 @@
+     newstate->ngroups = 0;
+     newstate->group = (char **) 0;
  
-     pwd = getpwnam(identifier);
- 	
 -    setgrent();
 -    while ((grp = getgrent())) {
 -	for (mem = grp->gr_mem; *mem; mem++) {

+ 11 - 7
imapd/imapd.spec

@@ -32,11 +32,12 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [PLUS]
 Group:        Mail
 License:      BSD
-Version:      2.2.3
-Release:      20040116
+Version:      2.1.16
+Release:      20040117
 
 #   package options
 %option       with_fsl    yes
+%option       with_vhost  no
 %option       with_group  no
 
 #   list of sources
@@ -46,7 +47,8 @@ Source2:      cyrus.conf
 Source3:      imapd.conf
 Source4:      fsl.imapd
 Patch0:       imapd.patch
-Patch1:       imapd.patch.group
+Patch1:       imapd.patch.vhost
+Patch2:       imapd.patch.group
 
 #   build information
 Prefix:       %{l_prefix}
@@ -73,8 +75,11 @@ AutoReqProv:  no
 %prep
     %setup -q -n cyrus-imapd-%{version}
     %patch0 -p0
-%if "%{with_group}" == "yes"
+%if "%{with_vhost}" == "yes"
     %patch1 -p0
+%endif
+%if "%{with_group}" == "yes"
+    %patch2 -p0
     %{l_shtool} subst \
         -e 's;/etc/imapd\.group;%{l_prefix}/etc/imapd/imapd.group;' \
         lib/auth_unix.c
@@ -135,7 +140,6 @@ AutoReqProv:  no
     ./configure \
         --cache-file=./cache.config \
         --prefix=%{l_prefix} \
-        --sysconfdir=%{l_prefix}/etc/imapd \
         --with-openssl=%{l_prefix} \
         --with-dbdir=%{l_prefix} \
         --with-sasl=%{l_prefix} \
@@ -172,14 +176,14 @@ AutoReqProv:  no
       %{l_make} PERL="$perl"
     ) || exit $?
     %{l_prefix}/bin/perl-openpkg install -d perl/sieve/managesieve
+    %{l_prefix}/bin/perl-openpkg install -d perl/sieve/acap
     %{l_prefix}/bin/perl-openpkg epilog
 
     #   install package
     %{l_make} %{l_mflags} install \
         prefix=$RPM_BUILD_ROOT%{l_prefix} \
         exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
-        cyrus_prefix=$RPM_BUILD_ROOT%{l_prefix} \
-        service_path=$RPM_BUILD_ROOT%{l_prefix}/bin
+        cyrus_prefix=$RPM_BUILD_ROOT%{l_prefix}
 
     #   create additional directories
     %{l_shtool} mkdir -f -p -m 755 \