Changeset 762
- Timestamp:
- 05/04/06 14:35:45 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
5100R/branches/DEV_OpenRaQ/ui/base-dns.mod/Makefile
r654 r762 8 8 9 9 VERSION=1.1.0 10 RELEASE=93BQ1 310 RELEASE=93BQ14 11 11 12 12 # add a buildarch if desired 5100R/branches/DEV_OpenRaQ/ui/base-dns.mod/glue/handlers/dns_generate.pl
r431 r762 7 7 # reminder: the Domain class is defined at the end of this file, and 8 8 # is not separate. 9 9 # C. Hemsing: Addition for custom include named.conf file 10 # 10 11 use strict; 11 12 … … 22 23 my $named_dir = '/var/named/chroot/var/named'; 23 24 my $named_conf = '/var/named/chroot/etc/named.conf'; 25 my $named_conf_include = '/var/named/chroot/etc/named.conf.include'; 24 26 #my $named_link = '/etc/named.conf'; 25 27 my $real_dir = '/var/lib/named/etc/named'; … … 314 316 // }; 315 317 318 include "/etc/named.conf.include"; 319 316 320 $cache_hint 317 321 … … 338 342 chmod(0644, $tmpfname); 339 343 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 340 359 return 1; 341 360 } 5100R/branches/DEV_OpenRaQ/ui/base-dns.mod/templates/rpmdefs.tmpl
r654 r762 106 106 107 107 <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 108 111 * Tue Nov 29 2005 Hisao SHIBUYA <shibuya@alpha.or.jp> 1.1.0-93BQ13 109 112 - rebuild with devel-tools 0.5.1-0BQ7.
