diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-08 19:30:02 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-08 19:30:02 +0000 |
commit | fa75f5aefe42b265a6c17357e1e2e85214db8642 (patch) | |
tree | 5bfd8dcfa1cb3628f0c76167af6aa565d0865263 /mail/yatsvrs | |
parent | 7e5bd7ae5f3344a8fc3d18f16fb47f695c933ad8 (diff) | |
download | pkgsrc-fa75f5aefe42b265a6c17357e1e2e85214db8642.tar.gz |
Add DragonFly support. Don't use statvfs on DragonFly for now.
Diffstat (limited to 'mail/yatsvrs')
-rw-r--r-- | mail/yatsvrs/distinfo | 7 | ||||
-rw-r--r-- | mail/yatsvrs/patches/patch-ag | 24 | ||||
-rw-r--r-- | mail/yatsvrs/patches/patch-am | 15 | ||||
-rw-r--r-- | mail/yatsvrs/patches/patch-as | 27 |
4 files changed, 57 insertions, 16 deletions
diff --git a/mail/yatsvrs/distinfo b/mail/yatsvrs/distinfo index 84dc06fdbbe..8a58c15deb2 100644 --- a/mail/yatsvrs/distinfo +++ b/mail/yatsvrs/distinfo @@ -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-ac) = e34b2364f0039a135a7ebcd24c84b6d101581489 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 --git a/mail/yatsvrs/patches/patch-ag b/mail/yatsvrs/patches/patch-ag index 5195500c8bc..92d3f3d2dfb 100644 --- a/mail/yatsvrs/patches/patch-ag +++ b/mail/yatsvrs/patches/patch-ag @@ -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 @@ $NetBSD: patch-ag,v 1.2 2003/10/05 04:25:15 taca Exp $ #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 --git a/mail/yatsvrs/patches/patch-am b/mail/yatsvrs/patches/patch-am new file mode 100644 index 00000000000..d3e4ae5aa4f --- /dev/null +++ b/mail/yatsvrs/patches/patch-am @@ -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 --git a/mail/yatsvrs/patches/patch-as b/mail/yatsvrs/patches/patch-as index c599a4523b9..da048ee91ca 100644 --- a/mail/yatsvrs/patches/patch-as +++ b/mail/yatsvrs/patches/patch-as @@ -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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ 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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ 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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ #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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ 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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ #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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ 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 @@ $NetBSD: patch-as,v 1.3 2004/09/10 10:42:00 agc Exp $ 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 |