source: npl/internetserver/djbdns/tinydns-conf.patch @ 21d4867

perl-5.22
Last change on this file since 21d4867 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 2.1 KB
RevLine 
[c5c522c]1--- djbdns-1.05/tinydns-conf.c  2001-02-11 22:11:45.000000000 +0100
2+++ djbdns-1.05-patched/tinydns-conf.c  2004-09-27 13:07:02.000000000 +0200
3@@ -54,43 +54,54 @@
4   makedir("root");
5   perm(02755);
6 
7-  start("root/data");
8+  start("root/static.conf");
9+  outs(".:127.0.0.2:.\n");
10+  finish();
11+  perm(0644);
12+
13+  start("root/dhcp.conf");
14   finish();
15   perm(0644);
16 
17   start("root/add-ns");
18   outs("#!/bin/sh\nexec ");
19-  outs(auto_home); outs("/bin/tinydns-edit data data.new add ns ${1+\"$@\"}\n");
20+  outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add ns ${1+\"$@\"}\n");
21   finish();
22   perm(0755);
23 
24   start("root/add-childns");
25   outs("#!/bin/sh\nexec ");
26-  outs(auto_home); outs("/bin/tinydns-edit data data.new add childns ${1+\"$@\"}\n");
27+  outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add childns ${1+\"$@\"}\n");
28   finish();
29   perm(0755);
30 
31   start("root/add-host");
32   outs("#!/bin/sh\nexec ");
33-  outs(auto_home); outs("/bin/tinydns-edit data data.new add host ${1+\"$@\"}\n");
34+  outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add host ${1+\"$@\"}\n");
35   finish();
36   perm(0755);
37 
38   start("root/add-alias");
39   outs("#!/bin/sh\nexec ");
40-  outs(auto_home); outs("/bin/tinydns-edit data data.new add alias ${1+\"$@\"}\n");
41+  outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add alias ${1+\"$@\"}\n");
42   finish();
43   perm(0755);
44 
45   start("root/add-mx");
46   outs("#!/bin/sh\nexec ");
47-  outs(auto_home); outs("/bin/tinydns-edit data data.new add mx ${1+\"$@\"}\n");
48+  outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add mx ${1+\"$@\"}\n");
49   finish();
50   perm(0755);
51 
52   start("root/Makefile");
53-  outs("data.cdb: data\n");
54+  outs("data.cdb: data\n");
55   outs("\t"); outs(auto_home); outs("/bin/tinydns-data\n");
56+  outs("\t"); outs(auto_home); outs("/bin/svc -h /service/dnscache\n");
57+  outs("\n");
58+  outs("data: static.conf dhcp.conf\n");
59+  outs("\t"); outs("@echo \"# DO NOT EDIT THIS FILE DIRECTLY\" > data\n");
60+  outs("\t"); outs("cat static.conf dhcp.conf >> data\n");
61+  outs("\n");
62   finish();
63   perm(0644);
64 
Note: See TracBrowser for help on using the repository browser.