pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/postfix Support newer DragonFly versions. From PR...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52ccb1f35c95
branches:  trunk
changeset: 547473:52ccb1f35c95
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Sep 17 13:21:19 2008 +0000

description:
Support newer DragonFly versions. From PR 39148.

diffstat:

 mail/postfix/distinfo         |   6 ++--
 mail/postfix/patches/patch-ag |  54 ++++++++++++++++++++++++++++++++++++++++--
 mail/postfix/patches/patch-ai |   4 +-
 3 files changed, 56 insertions(+), 8 deletions(-)

diffs (101 lines):

diff -r 742f1c072af2 -r 52ccb1f35c95 mail/postfix/distinfo
--- a/mail/postfix/distinfo     Wed Sep 17 12:36:38 2008 +0000
+++ b/mail/postfix/distinfo     Wed Sep 17 13:21:19 2008 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.119 2008/09/04 08:25:19 martti Exp $
+$NetBSD: distinfo,v 1.120 2008/09/17 13:21:19 joerg Exp $
 
 SHA1 (postfix/postfix-2.5.5.tar.gz) = 7240be9e362b991bacfcf7e3771ab611e872ac12
 RMD160 (postfix/postfix-2.5.5.tar.gz) = 2118fa61710bdb266d4fb8b7a0f60cf0f633c801
 Size (postfix/postfix-2.5.5.tar.gz) = 3157877 bytes
 SHA1 (patch-aa) = 5b4923402c80957e47b8a4e16c897287b88544bb
-SHA1 (patch-ag) = 3ed54069a744e214742a972738b306defe3cb69a
-SHA1 (patch-ai) = 1f28a35b8c6f28f5cfc4d374d0ed30bf13886a3b
+SHA1 (patch-ag) = b77081a61bc2b95a40963fb1d3ac5818d55a778b
+SHA1 (patch-ai) = aedee357d43321d2c3557679d796814455ae0ea6
diff -r 742f1c072af2 -r 52ccb1f35c95 mail/postfix/patches/patch-ag
--- a/mail/postfix/patches/patch-ag     Wed Sep 17 12:36:38 2008 +0000
+++ b/mail/postfix/patches/patch-ag     Wed Sep 17 13:21:19 2008 +0000
@@ -1,9 +1,18 @@
-$NetBSD: patch-ag,v 1.25 2008/09/04 08:25:20 martti Exp $
+$NetBSD: patch-ag,v 1.26 2008/09/17 13:21:19 joerg Exp $
 
 Only define HAS_DB if it hasn't been defined.
 
---- src/util/sys_defs.h.orig   2007-03-25 00:45:33.000000000 +0200
-+++ src/util/sys_defs.h        2007-04-03 08:51:26.000000000 +0300
+--- src/util/sys_defs.h.orig   2008-01-15 02:51:44 +0200
++++ src/util/sys_defs.h        2008-07-18 22:24:22 +0300
+@@ -29,7 +29,7 @@
+     || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
+     || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
+     || defined(NETBSD4) \
+-    || defined(EKKOBSD1)
++    || defined(EKKOBSD1) || defined(DRAGONFLY)
+ #define SUPPORTED
+ #include <sys/types.h>
+ #include <sys/param.h>
 @@ -42,7 +42,9 @@
  #define DEF_MAILBOX_LOCK "flock, dotlock"
  #define HAS_SUN_LEN
@@ -14,3 +23,42 @@
  #define HAS_SA_LEN
  #define DEF_DB_TYPE   "hash"
  #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000)
+@@ -155,9 +157,19 @@
+ #define HAS_FUTIMES
+ #endif
+ 
++#if defined(__DragonFly__)
++#define HAS_DEV_URANDOM
++#define HAS_ISSETUGID
++#define HAS_FUTIMES
++#define SOCKADDR_SIZE socklen_t
++#define SOCKOPT_SIZE  socklen_t
++#define HAS_DUPLEX_PIPE
++#endif
++
+ #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 105000000) \
+     || (defined(__FreeBSD__) && __FreeBSD__ >= 4) \
+     || (defined(OpenBSD) && OpenBSD >= 200003) \
++    || defined(__DragonFly__) \
+     || defined(USAGI_LIBINET6)
+ #ifndef NO_IPV6
+ # define HAS_IPV6
+@@ -166,14 +178,16 @@
+ 
+ #if (defined(__FreeBSD_version) && __FreeBSD_version >= 300000) \
+     || (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 103000000) \
+-    || (defined(OpenBSD) && OpenBSD >= 199700)        /* OpenBSD 2.0?? */
++    || (defined(OpenBSD) && OpenBSD >= 199700)        /* OpenBSD 2.0?? */ \
++    || defined(__DragonFly__)
+ # define USE_SYSV_POLL
+ #endif
+ 
+ #ifndef NO_KQUEUE
+ # if (defined(__FreeBSD_version) && __FreeBSD_version >= 410000) \
+     || (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 200000000) \
+-    || (defined(OpenBSD) && OpenBSD >= 200105)        /* OpenBSD 2.9 */
++    || (defined(OpenBSD) && OpenBSD >= 200105)        /* OpenBSD 2.9 */ \
++    || defined(__DragonFly__)
+ #  define EVENTS_STYLE        EVENTS_STYLE_KQUEUE
+ # endif
+ #endif
diff -r 742f1c072af2 -r 52ccb1f35c95 mail/postfix/patches/patch-ai
--- a/mail/postfix/patches/patch-ai     Wed Sep 17 12:36:38 2008 +0000
+++ b/mail/postfix/patches/patch-ai     Wed Sep 17 13:21:19 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ai,v 1.22 2008/09/04 08:25:20 martti Exp $
+$NetBSD: patch-ai,v 1.23 2008/09/17 13:21:19 joerg Exp $
 
 Make this pkgsrc friendly.
 
@@ -8,7 +8,7 @@
                ;;
    FreeBSD.7*) SYSTYPE=FREEBSD7
                ;;
-+  DragonFly.1*)       SYSTYPE=FREEBSD4
++ DragonFly.*) SYSTYPE=DRAGONFLY
 +              ;;
    OpenBSD.2*) SYSTYPE=OPENBSD2
                ;;



Home | Main Index | Thread Index | Old Index