Sfoglia il codice sorgente

upgrade to imapd 2.1.3 (now can use db instead of db3\!)

Ralf S. Engelschall 24 anni fa
parent
commit
bc2e05a8ba
2 ha cambiato i file con 18 aggiunte e 5 eliminazioni
  1. 13 0
      imapd/imapd.patch
  2. 5 5
      imapd/imapd.spec

+ 13 - 0
imapd/imapd.patch

@@ -8,3 +8,16 @@
  #include <sys/socket.h>
  
  #ifndef HAVE_GETADDRINFO
+--- lib/cyrusdb_skiplist.c.orig	Thu Feb 28 20:50:36 2002
++++ lib/cyrusdb_skiplist.c	Fri Mar  8 12:28:55 2002
+@@ -170,6 +170,10 @@
+     be_paranoid = 0
+ };
+ 
++#ifdef __FreeBSD__
++#define fdatasync(fd) fsync(fd)
++#endif
++
+ #define FSYNC(fd) (do_fsync && fsync(fd))
+ #define FDATASYNC(fd) ((do_fsync == 1 && fdatasync(fd)) || \
+                        (do_fsync == 2 && fsync(fd)))

+ 5 - 5
imapd/imapd.spec

@@ -31,8 +31,8 @@ Packager:     The OpenPKG Project
 Distribution: OpenPKG [REL]
 Group:        Mail
 License:      BSD
-Version:      2.1.1
-Release:      20020306
+Version:      2.1.3
+Release:      20020308
 
 #   list of sources
 Source0:      ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-imapd-%{version}.tar.gz
@@ -41,7 +41,7 @@ Patch0:       imapd.patch
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20020206, sasl, db3, openssl, make
+BuildPreReq:  OpenPKG, openpkg >= 20020206, sasl, db, openssl, make
 PreReq:       OpenPKG, openpkg >= 20020206, sasl, db3, openssl
 AutoReq:      no
 AutoReqProv:  no
@@ -55,8 +55,8 @@ AutoReqProv:  no
 
 %build
     PATH="%{l_prefix}/bin:$PATH"; export PATH
-    cflags="-I%{l_prefix}/include/db3 -I%{l_prefix}/include"
-    ldflags="-L%{l_prefix}/lib -ldb3"
+    cflags="-I%{l_prefix}/include"
+    ldflags="-L%{l_prefix}/lib"
     case "%{l_target}" in
         *-freebsd* ) ldflags="$ldflags -lpam -lcrypt" ;;
         *-solaris* ) ldflags="$ldflags -lpam"         ;;