source:
npl/internetserver/djbdns/tinydns-conf.patch
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 2.1 KB |
-
tinydns-conf.c
old new 54 54 makedir("root"); 55 55 perm(02755); 56 56 57 start("root/data"); 57 start("root/static.conf"); 58 outs(".:127.0.0.2:.\n"); 59 finish(); 60 perm(0644); 61 62 start("root/dhcp.conf"); 58 63 finish(); 59 64 perm(0644); 60 65 61 66 start("root/add-ns"); 62 67 outs("#!/bin/sh\nexec "); 63 outs(auto_home); outs("/bin/tinydns-edit data data.new add ns ${1+\"$@\"}\n");68 outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add ns ${1+\"$@\"}\n"); 64 69 finish(); 65 70 perm(0755); 66 71 67 72 start("root/add-childns"); 68 73 outs("#!/bin/sh\nexec "); 69 outs(auto_home); outs("/bin/tinydns-edit data data.new add childns ${1+\"$@\"}\n");74 outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add childns ${1+\"$@\"}\n"); 70 75 finish(); 71 76 perm(0755); 72 77 73 78 start("root/add-host"); 74 79 outs("#!/bin/sh\nexec "); 75 outs(auto_home); outs("/bin/tinydns-edit data data.new add host ${1+\"$@\"}\n");80 outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add host ${1+\"$@\"}\n"); 76 81 finish(); 77 82 perm(0755); 78 83 79 84 start("root/add-alias"); 80 85 outs("#!/bin/sh\nexec "); 81 outs(auto_home); outs("/bin/tinydns-edit data data.new add alias ${1+\"$@\"}\n");86 outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add alias ${1+\"$@\"}\n"); 82 87 finish(); 83 88 perm(0755); 84 89 85 90 start("root/add-mx"); 86 91 outs("#!/bin/sh\nexec "); 87 outs(auto_home); outs("/bin/tinydns-edit data data.new add mx ${1+\"$@\"}\n");92 outs(auto_home); outs("/bin/tinydns-edit static.conf static.conf.new add mx ${1+\"$@\"}\n"); 88 93 finish(); 89 94 perm(0755); 90 95 91 96 start("root/Makefile"); 92 outs("data.cdb: data\n"); 97 outs("data.cdb: data\n"); 93 98 outs("\t"); outs(auto_home); outs("/bin/tinydns-data\n"); 99 outs("\t"); outs(auto_home); outs("/bin/svc -h /service/dnscache\n"); 100 outs("\n"); 101 outs("data: static.conf dhcp.conf\n"); 102 outs("\t"); outs("@echo \"# DO NOT EDIT THIS FILE DIRECTLY\" > data\n"); 103 outs("\t"); outs("cat static.conf dhcp.conf >> data\n"); 104 outs("\n"); 94 105 finish(); 95 106 perm(0644); 96 107
Note: See TracBrowser
for help on using the repository browser.