pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/yatsvrs Add DragonFly support. Don't use statvfs ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b72a85b3134f
branches:  trunk
changeset: 505877:b72a85b3134f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Jan 08 19:30:02 2006 +0000

description:
Add DragonFly support. Don't use statvfs on DragonFly for now.

diffstat:

 mail/yatsvrs/distinfo         |   7 ++++---
 mail/yatsvrs/patches/patch-ag |  24 ++++++++++++++++++++----
 mail/yatsvrs/patches/patch-am |  15 +++++++++++++++
 mail/yatsvrs/patches/patch-as |  27 ++++++++++++++++++---------
 4 files changed, 57 insertions(+), 16 deletions(-)

diffs (176 lines):

diff -r 036dd71a9e87 -r b72a85b3134f mail/yatsvrs/distinfo
--- a/mail/yatsvrs/distinfo     Sun Jan 08 19:21:18 2006 +0000
+++ b/mail/yatsvrs/distinfo     Sun Jan 08 19:30:02 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2005/02/24 09:59:30 agc Exp $
+$NetBSD: distinfo,v 1.10 2006/01/08 19:30:02 joerg Exp $
 
 SHA1 (yatsvrs-5.00p6.tar.gz) = be94b29c8631acc1d7b3c4313501b6d674e6b43f
 RMD160 (yatsvrs-5.00p6.tar.gz) = 9920ac63a2477100ddc54196c76d6d700b144642
@@ -9,17 +9,18 @@
 SHA1 (patch-ad) = 392b8f6abd208c9387b2953792af2638aacbae23
 SHA1 (patch-ae) = 20f860d23b990eebe0c0e4a3f36ae658032a0c61
 SHA1 (patch-af) = e91f015118fb5ab95fccecf09205198894f89395
-SHA1 (patch-ag) = 8f339d58bea6ee8d04c3df7258b6ecb901602852
+SHA1 (patch-ag) = a0327cf05d1bf0142087af454d6a62f29a069eab
 SHA1 (patch-ah) = cdd32e7a7474b94601c69c4ab6a304542af7da42
 SHA1 (patch-ai) = 43ec227de986c3f2170deceb24444974773bb3a3
 SHA1 (patch-aj) = fc13d80bc08a84d86e627adad167d96684151541
 SHA1 (patch-ak) = ec11aabeca579944e78053065759986cb96c1da2
 SHA1 (patch-al) = eed8524c6dfabdb03cabd556abfa38b4f16aecac
+SHA1 (patch-am) = 29e276e52059d63d6f5773126741c09b173e596d
 SHA1 (patch-ao) = f697fe18121dcee1a279b5e4e8d318789cef8211
 SHA1 (patch-ap) = f42ade29527d1910f271c10797f6bd8d9f3710cc
 SHA1 (patch-aq) = ea2d7d2f21ebe3aea163d6de0a95060be2ecc381
 SHA1 (patch-ar) = 8f26f7a180790070e1137c9840c1e0edcfc02a66
-SHA1 (patch-as) = e6c5d58794a283a285bb54d1792ccb2b84bb9495
+SHA1 (patch-as) = a91b38a9267f0aca96a644dbe9c16f124b5ddee8
 SHA1 (patch-at) = 73704aa7d506c5a97f4fef3cc03e6ac8e983497e
 SHA1 (patch-au) = 63aa76a7a9c55c9877fe2a336903828d193c3658
 SHA1 (patch-av) = 4c87a76438f97fcafa29083c37d3a225bd219cc2
diff -r 036dd71a9e87 -r b72a85b3134f mail/yatsvrs/patches/patch-ag
--- a/mail/yatsvrs/patches/patch-ag     Sun Jan 08 19:21:18 2006 +0000
+++ b/mail/yatsvrs/patches/patch-ag     Sun Jan 08 19:30:02 2006 +0000
@@ -1,14 +1,15 @@
-$NetBSD: patch-ag,v 1.2 2003/10/05 04:25:15 taca Exp $
+$NetBSD: patch-ag,v 1.3 2006/01/08 19:30:02 joerg Exp $
 
---- conf.h.orig        2001-07-09 18:19:03.000000000 +0900
+--- conf.h.orig        2001-07-09 09:19:03.000000000 +0000
 +++ conf.h
-@@ -26,17 +26,20 @@
+@@ -26,30 +26,33 @@
  
  #if SIZEOF_OFF_T == SIZEOF_LONG_LONG
  # define LONGLONG_OFF_T
 +# define LONGLONG_CAST(c)     (long long)(c)
  # ifndef LONGLONG_OPTC
- #  if defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)
+-#  if defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#  if defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
  #   define LONGLONG_OPTC "q"
  #  elif defined( __sun__ ) 
  #   define LONGLONG_OPTC "ll"
@@ -24,6 +25,21 @@
  #else
  # error
  #endif /* SIZEOF_OFF_T == SIZEOF_LONG_LONG */
+ 
+ /* symbol BSD44 */
+-#if defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #define BSD44 
+ #else
+ #undef BSD44
+ #endif
+ 
+ /* symbol Ignore Mnt Quota */
+-#if defined(__FreeBSD__) || defined(__NetBSD__) 
++#if defined(__FreeBSD__) || defined(__NetBSD__)  || defined(__DragonFly__)
+ #define IGNORE_MNT_QUOTA 
+ #else 
+ #undef IGNORE_MNT_QUOTA 
 @@ -522,7 +525,7 @@
  
  #ifndef HAVE_MEMMOVE
diff -r 036dd71a9e87 -r b72a85b3134f mail/yatsvrs/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/yatsvrs/patches/patch-am     Sun Jan 08 19:30:02 2006 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-am,v 1.3 2006/01/08 19:30:02 joerg Exp $
+
+--- config.h.in.orig   2006-01-08 19:26:58.000000000 +0000
++++ config.h.in
+@@ -186,8 +186,10 @@
+ /* Define if you have the <sys/quota.h> header file.  */
+ #undef HAVE_SYS_QUOTA_H
+ 
++#if !defined(__DragonFly__)
+ /* Define if you have the <sys/statvfs.h> header file.  */
+ #undef HAVE_SYS_STATVFS_H
++#endif
+ 
+ /* Define if you have the <sys/time.h> header file.  */
+ #undef HAVE_SYS_TIME_H
diff -r 036dd71a9e87 -r b72a85b3134f mail/yatsvrs/patches/patch-as
--- a/mail/yatsvrs/patches/patch-as     Sun Jan 08 19:21:18 2006 +0000
+++ b/mail/yatsvrs/patches/patch-as     Sun Jan 08 19:30:02 2006 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $
+$NetBSD: patch-as,v 1.4 2006/01/08 19:30:02 joerg Exp $
 
---- yatd/dfree.c.orig  2001-07-09 12:32:52.000000000 +0900
+--- yatd/dfree.c.orig  2001-07-09 03:32:52.000000000 +0000
 +++ yatd/dfree.c
-@@ -72,12 +72,6 @@
+@@ -72,12 +72,6 @@ quota_get_inode_current __P(( struct dqb
  
  #define DEBUG_LOCAL
  
@@ -15,7 +15,7 @@
  int DFreeCheck(pPath, pSizFree, pNodFree)
       char   * pPath;    /* ¥æ¡¼¥¶¡¼¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î°ÌÃÖ */
       OFF_T  * pSizFree; /* ¶õ¤­¥Ö¥í¥Ã¥¯¿ô */
-@@ -99,7 +93,7 @@
+@@ -99,7 +93,7 @@ int DFreeCheck(pPath, pSizFree, pNodFree
    nodLimit = *pNodFree; /* ¥ê¥ß¥Ã¥È¤Î¥Î¡¼¥É¿ô¤ò»ØÄꤹ¤ë */
  
  #ifdef DEBUG_LOCAL
@@ -24,7 +24,7 @@
           sizLimit, nodLimit, sizeof (OFF_T));
  #endif /* DEBUG_LOCAL */
  
-@@ -122,23 +116,30 @@
+@@ -122,23 +116,30 @@ int DFreeCheck(pPath, pSizFree, pNodFree
  #ifdef DEBUG_LOCAL
  # ifdef BSD44 
    LogDEBUG("statfs() returns:");
@@ -67,7 +67,7 @@
  #ifdef STRUCT_STATFS_HAVE_F_FSTYPENAME
    LogDEBUG("  fstypename: %.256s", statfsBuf.f_fstypename);
  #endif
-@@ -311,7 +312,7 @@
+@@ -311,7 +312,7 @@ int FuncDFree()
    nodFree = SysData.nodLimitFree;
  
  #ifdef DEBUG_LOCAL
@@ -76,7 +76,7 @@
             sizFree, nodFree);
  #endif
      
-@@ -325,7 +326,7 @@
+@@ -325,7 +326,7 @@ int FuncDFree()
      if (DFreeCheck(SysData.szUserFldrDir, &sizFree, &nodFree)){
        return FAILURE;
      }
@@ -85,7 +85,7 @@
  #endif /* DONT_CHECKDFREE */
    return SUCCESS;
  }
-@@ -427,7 +428,7 @@
+@@ -427,7 +428,7 @@ static inline quota_size_t quota_get_ino
  
  #ifdef STRUCT_DQBLK_CURRENT_FILES
    retval = (quota_size_t)quota_block->dqb_curfiles;
@@ -94,7 +94,7 @@
  
    return retval;
  }
-@@ -449,12 +450,12 @@
+@@ -449,12 +450,12 @@ static int quotactl_wrapper(pPath,quota_
    switch( status ){
    case SUCCESS:
      LogDEBUG("quotactl() returns:");
@@ -113,3 +113,12 @@
      return SUCCESS;
    case FAILURE:
      return FAILURE;
+@@ -494,7 +495,7 @@ static int quotactl_systemcall_support( 
+   status = quotactl(QCMD(Q_GETQUOTA, USRQUOTA),SysData.szMntFrom,
+                   SysData.pPwd->pw_uid, (caddr_t)quota_block);
+   
+-#elif defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__)
++#elif defined(__bsdi__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ 
+   /* Get disk quota limits and current usage for the user or group
+      (as determined by the command type) with identifier id.  addr



Home | Main Index | Thread Index | Old Index