57fb008a8a
inet6 option was added. Comment out the option for now; if you want IPv6, uncomment and turn off other conflicting options. Addresses PR pkg/45358. While here, update to the latest version of the patch. No PKGREVISION bump needed.
66 lines
2 KiB
Makefile
66 lines
2 KiB
Makefile
# $NetBSD: options.mk,v 1.17 2011/12/25 21:16:46 schmonz Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.djbdns
|
|
PKG_SUPPORTED_OPTIONS+= # inet6
|
|
PKG_SUPPORTED_OPTIONS+= djbdns-cachestats djbdns-ignoreip2
|
|
PKG_SUPPORTED_OPTIONS+= djbdns-tinydns64
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= qmerge
|
|
PKG_OPTIONS_GROUP.qmerge= djbdns-qmerge1 djbdns-qmerge2
|
|
PKG_SUGGESTED_OPTIONS+= djbdns-qmerge2
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64" || \
|
|
${MACHINE_ARCH} == "alpha" || \
|
|
${MACHINE_ARCH} == "x86_64"
|
|
PKG_SUGGESTED_OPTIONS+= djbdns-tinydns64
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= inet6
|
|
#.if !empty(PKG_OPTIONS:Minet6)
|
|
#IPV6_PATCH= djbdns-1.05-test25.diff.bz2
|
|
#PATCHFILES+= ${IPV6_PATCH}
|
|
#SITES.${IPV6_PATCH}= http://www.fefe.de/dns/
|
|
#PATCH_DIST_STRIP.${IPV6_PATCH}= -p1
|
|
#PLIST.inet6= yes
|
|
#.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}
|
|
SITES.${IGNOREIP2_PATCH}= http://www.tinydns.org/
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdjbdns-qmerge1)
|
|
DNSCACHE_MERGE_PATCH= 0001-dnscache-merge-similar-outgoing-queries.patch
|
|
DNSCACHE_SOA_PATCH= 0002-dnscache-cache-soa-records.patch
|
|
PATCHFILES+= ${DNSCACHE_MERGE_PATCH} ${DNSCACHE_SOA_PATCH}
|
|
PATCH_DIST_STRIP.${DNSCACHE_MERGE_PATCH}= -p1
|
|
PATCH_DIST_STRIP.${DNSCACHE_SOA_PATCH}= -p1
|
|
SITES.${DNSCACHE_MERGE_PATCH}= http://www.your.org/dnscache/
|
|
SITES.${DNSCACHE_SOA_PATCH}= http://www.your.org/dnscache/
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdjbdns-qmerge2)
|
|
USE_TOOLS+= patch
|
|
post-patch: patch-qmerge2
|
|
.PHONY: patch-qmerge2
|
|
patch-qmerge2:
|
|
cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-qmerge2
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdjbdns-tinydns64)
|
|
USE_TOOLS+= patch
|
|
post-patch: patch-tinydns64
|
|
.PHONY: patch-tinydns64
|
|
patch-tinydns64:
|
|
cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-tinydns64
|
|
.endif
|