source: npl/internetserver/djbdns/tinydns-conf.patch @ 7afb649

gcc484perl-5.22
Last change on this file since 7afb649 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
  • tinydns-conf.c

    old new  
    5454  makedir("root");
    5555  perm(02755);
    5656
    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");
    5863  finish();
    5964  perm(0644);
    6065
    6166  start("root/add-ns");
    6267  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");
    6469  finish();
    6570  perm(0755);
    6671
    6772  start("root/add-childns");
    6873  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");
    7075  finish();
    7176  perm(0755);
    7277
    7378  start("root/add-host");
    7479  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");
    7681  finish();
    7782  perm(0755);
    7883
    7984  start("root/add-alias");
    8085  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");
    8287  finish();
    8388  perm(0755);
    8489
    8590  start("root/add-mx");
    8691  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");
    8893  finish();
    8994  perm(0755);
    9095
    9196  start("root/Makefile");
    92   outs("data.cdb: data\n");
     97  outs("data.cdb: data\n");
    9398  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");
    94105  finish();
    95106  perm(0644);
    96107
Note: See TracBrowser for help on using the repository browser.