1use 5.10.0; 2use ExtUtils::MakeMaker; 3 4WriteMakefile( 5 NAME => 'DNS::nsdiff', 6 VERSION => "1.82", 7 ABSTRACT => 8 "create an 'nsupdate' script from DNS zone file differences", 9 EXE_FILES => [qw[ nsdiff nspatch nsvi ]], 10 11 # to stop MakeMaker from installing the README as a man page 12 # we have to list the section 3 pages explicitly 13 MAN3PODS => { 14 'lib/DNS/nsdiff.pm' => 'blib/man3/DNS::nsdiff.3pm', 15 }, 16 17 AUTHOR => 'Tony Finch <dot@dotat.at>', 18 LICENSE => 'cc0', 19 MIN_PERL_VERSION=> '5.10.0', 20 META_MERGE => { 21 'meta-spec' => { version => 2 }, 22 'resources' => { 23 repository => { 24 type => 'git', 25 url => 'git://dotat.at/nsdiff.git', 26 web => 'https://dotat.at/cgi/git/nsdiff.git', 27 } 28 } 29 } 30); 31 32sub MY::postamble { 33 return <<'MAKE_FRAG'; 34html:: 35 for f in nsdiff nspatch nsvi; \ 36 do pod2html --noindex $$f >web/$$f.html; \ 37 done 38 pod2html --noindex README.pod >web/README.html 39 ln -sf README.html web/index.html 40 rm -f pod2htm?.tmp 41 42deb:: 43 dpkg-buildpackage -uc -A 44 mv ../libdns-nsdiff-perl_* web/. 45 debian/rules clean 46 47upload:: html 48 git push --tags github trunk 49 git push --tags dotat trunk 50 git push --tags csx trunk 51 if [ -f DNS-nsdiff-*.tar.gz ]; \ 52 then mv DNS-nsdiff-*.tar.gz web/.; \ 53 fi 54 cp nsdiff web/. 55 rsync -ilt web/nsdiff web/*.html web/*.tar.gz \ 56 web/libdns-nsdiff-perl_* \ 57 chiark:public-html/prog/nsdiff/ 58 59MAKE_FRAG 60} 61