pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/yatsvrs Make this package a bit more statvfs-frie...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8271de1c2bf4
branches:  trunk
changeset: 480451:8271de1c2bf4
user:      agc <agc%pkgsrc.org@localhost>
date:      Fri Sep 10 10:41:59 2004 +0000

description:
Make this package a bit more statvfs-friendly, enables build on
NetBSD-current systems.

diffstat:

 mail/yatsvrs/distinfo         |   4 ++--
 mail/yatsvrs/patches/patch-as |  31 +++++++++++++++++++++----------
 2 files changed, 23 insertions(+), 12 deletions(-)

diffs (111 lines):

diff -r 28df4ebf40bf -r 8271de1c2bf4 mail/yatsvrs/distinfo
--- a/mail/yatsvrs/distinfo     Fri Sep 10 08:40:51 2004 +0000
+++ b/mail/yatsvrs/distinfo     Fri Sep 10 10:41:59 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2003/11/13 07:02:39 taca Exp $
+$NetBSD: distinfo,v 1.6 2004/09/10 10:41:59 agc Exp $
 
 SHA1 (yatsvrs-5.00p6.tar.gz) = be94b29c8631acc1d7b3c4313501b6d674e6b43f
 Size (yatsvrs-5.00p6.tar.gz) = 210067 bytes
@@ -18,7 +18,7 @@
 SHA1 (patch-ap) = f42ade29527d1910f271c10797f6bd8d9f3710cc
 SHA1 (patch-aq) = a09b4f8869e2231b3715155b85b690901926a4e5
 SHA1 (patch-ar) = 8f26f7a180790070e1137c9840c1e0edcfc02a66
-SHA1 (patch-as) = f02a1402188c9def494dbea60b874bfdd04a7c50
+SHA1 (patch-as) = e6c5d58794a283a285bb54d1792ccb2b84bb9495
 SHA1 (patch-at) = cecd3a6c32e225cb55046dee951bd0b09660fdc7
 SHA1 (patch-au) = 63aa76a7a9c55c9877fe2a336903828d193c3658
 SHA1 (patch-av) = 4c87a76438f97fcafa29083c37d3a225bd219cc2
diff -r 28df4ebf40bf -r 8271de1c2bf4 mail/yatsvrs/patches/patch-as
--- a/mail/yatsvrs/patches/patch-as     Fri Sep 10 08:40:51 2004 +0000
+++ b/mail/yatsvrs/patches/patch-as     Fri Sep 10 10:41:59 2004 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-as,v 1.2 2003/10/05 04:25:15 taca Exp $
+$NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $
 
 --- yatd/dfree.c.orig  2001-07-09 12:32:52.000000000 +0900
 +++ yatd/dfree.c
-@@ -72,12 +72,6 @@ quota_get_inode_current __P(( struct dqb
+@@ -72,12 +72,6 @@
  
  #define DEBUG_LOCAL
  
@@ -15,7 +15,7 @@
  int DFreeCheck(pPath, pSizFree, pNodFree)
       char   * pPath;    /* ¥æ¡¼¥¶¡¼¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Î°ÌÃÖ */
       OFF_T  * pSizFree; /* ¶õ¤­¥Ö¥í¥Ã¥¯¿ô */
-@@ -99,7 +93,7 @@ int DFreeCheck(pPath, pSizFree, pNodFree
+@@ -99,7 +93,7 @@
    nodLimit = *pNodFree; /* ¥ê¥ß¥Ã¥È¤Î¥Î¡¼¥É¿ô¤ò»ØÄꤹ¤ë */
  
  #ifdef DEBUG_LOCAL
@@ -24,15 +24,22 @@
           sizLimit, nodLimit, sizeof (OFF_T));
  #endif /* DEBUG_LOCAL */
  
-@@ -123,22 +117,21 @@ int DFreeCheck(pPath, pSizFree, pNodFree
+@@ -122,23 +116,30 @@
+ #ifdef DEBUG_LOCAL
  # ifdef BSD44 
    LogDEBUG("statfs() returns:");
++#  ifdef HAVE_STATVFS
++  LogDEBUG("  flags: 0x%lx", statfsBuf.f_flag);
++#  else
    LogDEBUG("  type: %d", statfsBuf.f_type);
 -  LogDEBUG("  flags: 0x%x", statfsBuf.f_flags);
+-#  ifdef __NetBSD__
 +  LogDEBUG("  flags: 0x%lx", statfsBuf.f_flags);
- #  ifdef __NetBSD__
++#   ifdef __NetBSD__
    LogDEBUG("  oflags: 0x%x", statfsBuf.f_oflags);
- #  endif
+-#  endif
++#   endif /* __NetBSD__ */
++#  endif /* HAVE_STATVFS */
  #  ifdef BSDOS1
    LogDEBUG("  fsize: %d", statfsBuf.f_fsize);
  #  endif
@@ -52,11 +59,15 @@
 +  LogDEBUG("  bavail: %ld", statfsBuf.f_bavail);
 +  LogDEBUG("  files: %ld", statfsBuf.f_files);
 +  LogDEBUG("  ffree: %ld", statfsBuf.f_ffree);
++#  ifdef HAVE_STATVFS
++  LogDEBUG("  fsid: %d-%d", statfsBuf.f_fsidx.__fsid_val[0], statfsBuf.f_fsidx.__fsid_val[1]);
++#  else
 +  LogDEBUG("  fsid: %d-%d", statfsBuf.f_fsid.val[0], statfsBuf.f_fsid.val[1]);
++#  endif /* HAVE_STATVFS */
  #ifdef STRUCT_STATFS_HAVE_F_FSTYPENAME
    LogDEBUG("  fstypename: %.256s", statfsBuf.f_fstypename);
  #endif
-@@ -311,7 +304,7 @@ int FuncDFree()
+@@ -311,7 +312,7 @@
    nodFree = SysData.nodLimitFree;
  
  #ifdef DEBUG_LOCAL
@@ -65,7 +76,7 @@
             sizFree, nodFree);
  #endif
      
-@@ -325,7 +318,7 @@ int FuncDFree()
+@@ -325,7 +326,7 @@
      if (DFreeCheck(SysData.szUserFldrDir, &sizFree, &nodFree)){
        return FAILURE;
      }
@@ -74,7 +85,7 @@
  #endif /* DONT_CHECKDFREE */
    return SUCCESS;
  }
-@@ -427,7 +420,7 @@ static inline quota_size_t quota_get_ino
+@@ -427,7 +428,7 @@
  
  #ifdef STRUCT_DQBLK_CURRENT_FILES
    retval = (quota_size_t)quota_block->dqb_curfiles;
@@ -83,7 +94,7 @@
  
    return retval;
  }
-@@ -449,12 +442,12 @@ static int quotactl_wrapper(pPath,quota_
+@@ -449,12 +450,12 @@
    switch( status ){
    case SUCCESS:
      LogDEBUG("quotactl() returns:");



Home | Main Index | Thread Index | Old Index