diff options
author | schmonz <schmonz> | 2006-01-11 17:20:32 +0000 |
---|---|---|
committer | schmonz <schmonz> | 2006-01-11 17:20:32 +0000 |
commit | d4c6f1bb914da42dadf0bfd3735dfed6d1c69ca3 (patch) | |
tree | ed1e5016d3b7c326a4c5c37c15dd755e0a184eee /net/djbdns/files | |
parent | 177073a61d35d90637bfcf017b3913b4360b6b51 (diff) | |
download | pkgsrc-d4c6f1bb914da42dadf0bfd3735dfed6d1c69ca3.tar.gz |
Fix ${MACHINE_ARCH} conditional (it's "x86_64, not "amd64"). Since
Bernhard Roth's tinydns-data patch for 64-bit systems is no longer
available on the net, store it directly in pkgsrc.
Diffstat (limited to 'net/djbdns/files')
-rw-r--r-- | net/djbdns/files/patch-tinydns64 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/net/djbdns/files/patch-tinydns64 b/net/djbdns/files/patch-tinydns64 new file mode 100644 index 00000000000..652b3b114c8 --- /dev/null +++ b/net/djbdns/files/patch-tinydns64 @@ -0,0 +1,55 @@ +--- tinydns-data.c.orig 2001-02-11 16:11:45.000000000 -0500 ++++ tinydns-data.c 2005-03-30 04:14:07.000000000 -0500 +@@ -196,6 +196,7 @@ + char type[2]; + char soa[20]; + char buf[4]; ++ uint32 hack64bit; + + umask(022); + +@@ -251,19 +252,39 @@ + if (!dns_domain_fromdot(&d1,f[0].s,f[0].len)) nomem(); + + if (!stralloc_0(&f[3])) nomem(); +- if (!scan_ulong(f[3].s,&u)) uint32_unpack_big(defaultsoa,&u); ++ if (!scan_ulong(f[3].s,&u)) ++ { ++ uint32_unpack_big(defaultsoa,&hack64bit); ++ u = hack64bit; ++ } + uint32_pack_big(soa,u); + if (!stralloc_0(&f[4])) nomem(); +- if (!scan_ulong(f[4].s,&u)) uint32_unpack_big(defaultsoa + 4,&u); ++ if (!scan_ulong(f[4].s,&u)) ++ { ++ uint32_unpack_big(defaultsoa + 4,&hack64bit); ++ u = hack64bit; ++ } + uint32_pack_big(soa + 4,u); + if (!stralloc_0(&f[5])) nomem(); +- if (!scan_ulong(f[5].s,&u)) uint32_unpack_big(defaultsoa + 8,&u); ++ if (!scan_ulong(f[5].s,&u)) ++ { ++ uint32_unpack_big(defaultsoa + 8,&hack64bit); ++ u = hack64bit; ++ } + uint32_pack_big(soa + 8,u); + if (!stralloc_0(&f[6])) nomem(); +- if (!scan_ulong(f[6].s,&u)) uint32_unpack_big(defaultsoa + 12,&u); ++ if (!scan_ulong(f[6].s,&u)) ++ { ++ uint32_unpack_big(defaultsoa + 12,&hack64bit); ++ u = hack64bit; ++ } + uint32_pack_big(soa + 12,u); + if (!stralloc_0(&f[7])) nomem(); +- if (!scan_ulong(f[7].s,&u)) uint32_unpack_big(defaultsoa + 16,&u); ++ if (!scan_ulong(f[7].s,&u)) ++ { ++ uint32_unpack_big(defaultsoa + 16,&hack64bit); ++ u = hack64bit; ++ } + uint32_pack_big(soa + 16,u); + + if (!stralloc_0(&f[8])) nomem(); |