|
my $pkg = 'Net::DNSBL::MultiDaemon' ;
$pkg =~ /[^:]+$/;
my $module = $& . '.pm' ;
WriteMakefile(
'NAME' => $pkg ,
'VERSION_FROM' => $module ,
'PREREQ_PM' => {
Test:: More => 0,
File:: SafeDO => 0.12,
Net::DNS:: Codes => 0.09,
Net::DNS:: ToolKit => 0.41,
Unix:: Syslog => 0.97,
NetAddr:: IP => 4.015,
Geo::IP:: PurePerl => 1.10,
},
'clean' => { FILES => "*~ tmp*" },
'dist' => { COMPRESS => 'gzip' , SUFFIX => 'gz' }
);
sub MY::top_targets {
my $inherited = shift ->SUPER::top_targets( @_ );
$inherited =~ s/(pure_all\s+::.+)/$1 README/;
$inherited ;
}
sub MY::post_constants {
my $post_constants = q|
MY_POD2TEXT = | . $Config {scriptdirexp} . '/pod2text' . q|
| ;
}
sub MY::postamble {
my $postamble = q|
README : | . $module . q|
@$(MY_POD2TEXT) | . $module . q| > README
| ;
}
|