pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc Add djbdns-cachestats option, show cache hits/misses i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8db080eae001
branches:  trunk
changeset: 553330:8db080eae001
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Mon Jan 19 10:27:31 2009 +0000

description:
Add djbdns-cachestats option, show cache hits/misses in stats output.

diffstat:

 mk/defaults/options.description |   1 +
 net/djbdns/Makefile             |   4 ++--
 net/djbdns/distinfo             |   5 ++++-
 net/djbdns/options.mk           |  11 +++++++++--
 4 files changed, 16 insertions(+), 5 deletions(-)

diffs (70 lines):

diff -r 6e299c76bd0f -r 8db080eae001 mk/defaults/options.description
--- a/mk/defaults/options.description   Mon Jan 19 10:21:15 2009 +0000
+++ b/mk/defaults/options.description   Mon Jan 19 10:27:31 2009 +0000
@@ -63,6 +63,7 @@
 dbus                   Enable dbus (desktop bus) support.
 debug                  Enable debugging facilities in the package.
 deliver-suid           Install deliver executable setuid root.
+djbdns-cachestats      Patch to add stats for cache hits/misses.
 djbdns-ignoreip2       Patch to treat certain responses as NXDOMAIN.
 djbdns-tinydns64       Patch to fix tinydns-data on 64-bit platforms.
 djbfft-pentium         Optimize for Pentium{,MMX} processors.
diff -r 6e299c76bd0f -r 8db080eae001 net/djbdns/Makefile
--- a/net/djbdns/Makefile       Mon Jan 19 10:21:15 2009 +0000
+++ b/net/djbdns/Makefile       Mon Jan 19 10:27:31 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.55 2008/02/19 21:12:06 schmonz Exp $
+# $NetBSD: Makefile,v 1.56 2009/01/19 10:27:31 sketch Exp $
 
 DISTNAME=              djbdns-1.05
-PKGREVISION=           7
+PKGREVISION=           8
 CATEGORIES=            net
 MASTER_SITES=          http://cr.yp.to/djbdns/ ftp://cr.yp.to/djbdns/
 DISTFILES=             ${DISTNAME}${EXTRACT_SUFX} ${MANPAGES}
diff -r 6e299c76bd0f -r 8db080eae001 net/djbdns/distinfo
--- a/net/djbdns/distinfo       Mon Jan 19 10:21:15 2009 +0000
+++ b/net/djbdns/distinfo       Mon Jan 19 10:27:31 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2005/04/09 22:39:44 schmonz Exp $
+$NetBSD: distinfo,v 1.16 2009/01/19 10:27:31 sketch Exp $
 
 SHA1 (djbdns-1.05.tar.gz) = 2efdb3a039d0c548f40936aa9cb30829e0ce8c3d
 RMD160 (djbdns-1.05.tar.gz) = a832cbfd93e4ccec6a565492a4ee0b3c1b4b68ed
@@ -12,6 +12,9 @@
 SHA1 (djbdns-1.05-ignoreip2.patch) = ec4281a6864bd044a84fbfcaaf42baa6b003976d
 RMD160 (djbdns-1.05-ignoreip2.patch) = bf8a0d38ae7bfb09a8ab2a04600680613db10aaa
 Size (djbdns-1.05-ignoreip2.patch) = 3890 bytes
+SHA1 (djbdns-cachestats.patch) = ab0b2835140768d89159d5564534d39520d7f403
+RMD160 (djbdns-cachestats.patch) = e09994d84573e781ce18b59f909f8bd013de5d8e
+Size (djbdns-cachestats.patch) = 2341 bytes
 SHA1 (tinydns64.diff) = 5a06ba9968ddd905ef69ce036bdc9d18bb738982
 RMD160 (tinydns64.diff) = 7eb8ea387731385576fb1c933c18e0957477c3e0
 Size (tinydns64.diff) = 1537 bytes
diff -r 6e299c76bd0f -r 8db080eae001 net/djbdns/options.mk
--- a/net/djbdns/options.mk     Mon Jan 19 10:21:15 2009 +0000
+++ b/net/djbdns/options.mk     Mon Jan 19 10:27:31 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.10 2006/07/27 18:48:03 jlam Exp $
+# $NetBSD: options.mk,v 1.11 2009/01/19 10:27:31 sketch Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.djbdns
-PKG_SUPPORTED_OPTIONS+=        inet6 djbdns-ignoreip2 djbdns-tinydns64
+PKG_SUPPORTED_OPTIONS+=        inet6 djbdns-cachestats djbdns-ignoreip2 djbdns-tinydns64
 
 .if ${MACHINE_ARCH} == "sparc64" || \
        ${MACHINE_ARCH} == "alpha" || \
@@ -19,6 +19,13 @@
 PLIST_SRC+=                    ${PKGDIR}/PLIST.inet6
 .endif
 
+.if !empty(PKG_OPTIONS:Mdjbdns-cachestats)
+CACHESTATS_PATCH=              djbdns-cachestats.patch
+PATCHFILES+=                   ${CACHESTATS_PATCH}
+SITES.${CACHESTATS_PATCH}=     http://romana.now.ie/software/
+PATCH_DIST_STRIP.${CACHESTATS_PATCH}= -p1
+.endif
+
 .if !empty(PKG_OPTIONS:Mdjbdns-ignoreip2)
 IGNOREIP2_PATCH=               djbdns-1.05-ignoreip2.patch
 PATCHFILES+=                   ${IGNOREIP2_PATCH}



Home | Main Index | Thread Index | Old Index