1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/usr/bin/perl
# Copyright 2004-2012 SPARTA, Inc. All rights reserved. See the COPYING
# file distributed with this software for details
use ExtUtils::MakeMaker;
%opts = InitMakeParams();
WriteMakefile(%opts);
appendstuff();
sub InitMakeParams {
$DIRS = ['ZoneFile-Fast'];
if ($ARGV[0] ne 'NOVALIDATOR') {
unshift @$DIRS, 'Net-DNS-SEC-Validator', 'Net-addrinfo';
}
%opts = (
'NAME' => 'Net::DNS::SEC::Tools::conf',
'VERSION_FROM' => 'conf.pm', # finds $VERSION
'DIR' => $DIRS, # avoids the testing dir
);
return %opts;
}
sub appendstuff {
open(MK,">> Makefile");
print MK '
%.pm: %.pm.in
cd $(CURDIR)/../.. && ./config.status
';
close(MK);
}
|