# $Id: Makefile.PL,v 1.4 2005/03/04 14:17:46 jakob Exp $ use ExtUtils::MakeMaker; my @exefiles = ('apps/dnscheck', 'apps/dnscheck-preflight', 'apps/dnscheck-dispatcher', 'apps/dnscheck-zonediff', 'apps/dnscheck-12hourmailer', 'apps/dnscheck-hostsyntax'); WriteMakefile( 'NAME' => 'DNSCheck', 'AUTHOR' => '.SE (The Internet Infrastructure Foundation) ', 'ABSTRACT' => 'DNS Quality and Integrity Checker', 'VERSION_FROM' => 'lib/DNSCheck.pm', 'PREREQ_PM' => { Crypt::OpenSSL::Random => 0, Data::Dumper => 0, Date::Format => 0, Date::Parse => 0, Digest::BubbleBabble => 0, Digest::SHA1 => 0, File::Basename => 0, IO::Socket => 0, IO::Socket::INET6 => 2.51, List::Util => 0, Net::DNS => 0.65, Net::DNS::SEC => 0.15, Net::IP => 1.25, Net::SMTP => 2.29, POSIX => 0, Socket => 0, Socket6 => 0.19, Sys::Syslog => 0, Time::HiRes => 0, YAML => 0, DBI => 0, DBD::mysql => 0, Mail::RFC822::Address => 0, Text::Template => 0, MIME::Lite => 0, }, 'EXE_FILES' => \@exefiles, 'NO_META' => 1, 'SIGN' => 0, clean => { FILES => "*~ apps/dnscheck apps/dnscheck-preflight apps/dnscheck-dispatcher apps/dnscheck-zonediff apps/dnscheck-12hourmailer apps/dnscheck-hostsyntax" }, ); sub MY::install { package MY; my $self = shift; my $inherited = $self->SUPER::install(@_); $inherited =~ s/^(install :: .*)$/$1 install_locale/gm; $inherited; } sub MY::postamble { package MY; my $self = shift; my $instprefix = $self->{SITEPREFIX}; my $tmp = qq# CONFIG_DIR = $instprefix/share/dnscheck POLICY_DIR = $instprefix/share/dnscheck LOCALE_DIR = $instprefix/share/dnscheck/locale # . q# FIXVARS = \ -Mvars \ -DCONFIG_DIR="$(CONFIG_DIR)" \ -DPOLICY_DIR="$(POLICY_DIR)" \ -DLOCALE_DIR="$(LOCALE_DIR)" install_locale: install -d ${DESTDIR}/${POLICY_DIR} install -m 444 policy.yaml ${DESTDIR}/${POLICY_DIR} install -m 444 config.yaml ${DESTDIR}/${CONFIG_DIR} install -d ${DESTDIR}/${LOCALE_DIR} install -m 444 locale/*.yaml ${DESTDIR}/${LOCALE_DIR} #; foreach my $f (@exefiles) { $tmp .= qq[ $f: $f.pl \$(PERL) build/preprocessor.pl \$(FIXVARS) -Msharpbang <\$? >\$@ ] } return $tmp; }