summaryrefslogtreecommitdiff
path: root/packaging/Debian/debian-sarge/wins2dns.awk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-06-12 02:55:26 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-12 14:15:08 +0200
commitba4a047b360c14587430d9bca6c7bf3a88445d6a (patch)
tree143d4c24232c41b93598331ec708e54b32e4948a /packaging/Debian/debian-sarge/wins2dns.awk
parentc418af2456d6c1ac18a8e31fa5ad808b572d1378 (diff)
downloadsamba-ba4a047b360c14587430d9bca6c7bf3a88445d6a.tar.gz
samba-ba4a047b360c14587430d9bca6c7bf3a88445d6a.tar.bz2
samba-ba4a047b360c14587430d9bca6c7bf3a88445d6a.zip
packaging/Debian: Remove outdated Debian package sources and instead refer to
Debian.org and SerNet packages.
Diffstat (limited to 'packaging/Debian/debian-sarge/wins2dns.awk')
-rw-r--r--packaging/Debian/debian-sarge/wins2dns.awk38
1 files changed, 0 insertions, 38 deletions
diff --git a/packaging/Debian/debian-sarge/wins2dns.awk b/packaging/Debian/debian-sarge/wins2dns.awk
deleted file mode 100644
index 176868a115..0000000000
--- a/packaging/Debian/debian-sarge/wins2dns.awk
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/awk -f
-#
-# Date: Wed, 26 Aug 1998 10:37:39 -0600 (MDT)
-# From: Jason Gunthorpe <jgg@deltatee.com>
-# To: samba@packages.debian.org
-# Subject: Nifty samba script
-#
-# Here is a really nifty script I just wrote for samba, it takes the wins
-# database in /var/samba/wins and writes out two dns files for it. In this
-# way network wide wins clients can get into the dns for use by unix
-# machines.
-#
-# Perhaps this could be included in /usr/doc/examples or somesuch.
-#
-
-BEGIN {
- FS="#|\"";
-FORWARD="/tmp/wins.hosts"
-REVERSE="/tmp/wins.rev"
-DOMAIN="ven.ra.rockwell.com"
-}
-$3 == "00" {
- split($4,a," " );
- split(a[2],b,".");
- while (sub(" ","-",$2));
- $2=tolower($2);
- if (b[1] == "255")
- next;
- if (length($2) >= 8)
- print $2"\ta\t"a[2] > FORWARD
- else
- print $2"\t\ta\t"a[2] > FORWARD
- print b[4]"."b[3]"\t\tptr\t"$2"."DOMAIN"." > REVERSE
-}
-END {
- system("echo killall -HUP named");
-}
-