From ee238cb338254ce372694f9c5a6dd1b3aa7342cb Mon Sep 17 00:00:00 2001 From: Peter Pentchev Date: Tue, 20 Apr 2004 15:43:03 +0000 Subject: Add the WITH_PERSISTENT_MMAP knob to enable Lennert Buytenhek's patch for tinydns - keep the data.cdb file mmap'd for a second instead of reopening it on each query. --- dns/djbdns/Makefile | 9 +++++++++ dns/djbdns/distinfo | 1 + 2 files changed, 10 insertions(+) (limited to 'dns') diff --git a/dns/djbdns/Makefile b/dns/djbdns/Makefile index f01689e7d377..0a1cbb01cc6f 100644 --- a/dns/djbdns/Makefile +++ b/dns/djbdns/Makefile @@ -53,6 +53,12 @@ PATCHFILES+= djbdns-1.05-ignoreip2.patch:ignoreip PATCH_DIST_STRIP= -p1 .endif +.if defined(WITH_PERSISTENT_MMAP) +PATCH_SITES+= http://people.FreeBSD.org/~roam/ports/patches/dns/:persistent +PATCHFILES+= tinydns-persistmmap-20040418.patch:persistent +PATCH_DIST_STRIP= -p1 +.endif + DJBDNS_VER= 1.05 DJBDNS_V6_VER= test14 @@ -84,6 +90,9 @@ pre-fetch: @${ECHO} " http://smarden.org/pape/djb/manpages/" @${ECHO} "- WITH_IGNOREIP - build with Russel Nelson's ignoreip2 patch" @${ECHO} " http://tinydns.org/djbdns-1.05-ignoreip2.patch" + @${ECHO} "- WITH_PERSISTENT_MMAP - build with Lennert Buytenhek's persistent mmap" + @${ECHO} " patch for tinydns" + @${ECHO} " http://marc.theaimsgroup.com/?l=djbdns&m=108229203212517&w=2" post-patch: @echo "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc diff --git a/dns/djbdns/distinfo b/dns/djbdns/distinfo index 36fab1295e6f..ddc26220675b 100644 --- a/dns/djbdns/distinfo +++ b/dns/djbdns/distinfo @@ -3,3 +3,4 @@ MD5 (djbdns-1.05-man-20031023.tar.gz) = 14d7329cff69f604fac607436eb8485e MD5 (djbdns-1.05-test14.diff.bz2) = 52bec93d7ce6226281082367e49157d3 MD5 (patch-dnscache-dumpcache-v4.txt) = 61441dec12dd627a7fea7c3059cc2542 MD5 (djbdns-1.05-ignoreip2.patch) = c032250b209d055847a763c8d9c7e865 +MD5 (tinydns-persistmmap-20040418.patch) = c721977364502180f9563b85cecf133b -- cgit v1.2.3