Changeset 762

Show
Ignore:
Timestamp:
05/04/06 14:35:45 (6 years ago)
Author:
shibuya
Message:

Addition for custom include named.conf file by C. Hemsing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 5100R/branches/DEV_OpenRaQ/ui/base-dns.mod/Makefile

    r654 r762  
    88 
    99VERSION=1.1.0 
    10 RELEASE=93BQ13 
     10RELEASE=93BQ14 
    1111 
    1212# add a buildarch if desired 
  • 5100R/branches/DEV_OpenRaQ/ui/base-dns.mod/glue/handlers/dns_generate.pl

    r431 r762  
    77# reminder: the Domain class is defined at the end of this file, and 
    88# is not separate. 
    9  
     9# C. Hemsing: Addition for custom include named.conf file 
     10
    1011use strict; 
    1112 
     
    2223my $named_dir = '/var/named/chroot/var/named'; 
    2324my $named_conf = '/var/named/chroot/etc/named.conf'; 
     25my $named_conf_include = '/var/named/chroot/etc/named.conf.include'; 
    2426#my $named_link = '/etc/named.conf'; 
    2527my $real_dir = '/var/lib/named/etc/named'; 
     
    314316// }; 
    315317 
     318include "/etc/named.conf.include"; 
     319 
    316320$cache_hint 
    317321 
     
    338342  chmod(0644, $tmpfname); 
    339343   
     344  if (!(-e $named_conf_include)) 
     345  { 
     346    my $fh = new FileHandle(">$named_conf_include"); 
     347    if (!defined($fh)) 
     348     { 
     349       print STDERR "Couldn't create $named_conf_include: $!\n"; 
     350       return 0; 
     351     } 
     352     print $fh "# $named_conf_include\n"; 
     353     print $fh "# user customizations can be added here.\n"; 
     354     $fh->close(); 
     355     chown($named_uid, $named_gid, $named_conf_include); 
     356     chmod(0644, $named_conf_include); 
     357  } 
     358 
    340359  return 1; 
    341360} 
  • 5100R/branches/DEV_OpenRaQ/ui/base-dns.mod/templates/rpmdefs.tmpl

    r654 r762  
    106106 
    107107<begin $CHANGELOG> 
     108* Thu May 04 2006 Hisao SHIBUYA <shibuya@alpha.or.jp> 1.1.0-93BQ14 
     109- Addition for custom include named.conf file by C. Hemsing. 
     110 
    108111* Tue Nov 29 2005 Hisao SHIBUYA <shibuya@alpha.or.jp> 1.1.0-93BQ13 
    109112- rebuild with devel-tools 0.5.1-0BQ7.