# $Id: Makefile.PL,v 1.4.2.1 2004/06/13 13:32:51 danpb Exp $ # -*- perl -*- use ExtUtils::MakeMaker; WriteMakefile( NAME => "Test-AutoBuild", VERSION_FROM => 'lib/Test/AutoBuild.pm', AUTHOR => "Daniel Berrange (dan[at]berrange[dot]com)", EXE_FILES => ['bin/auto-build.pl'], PREREQ_PM => { 'BSD::Resource' => "1.10", 'IO::Scalar' => "0", 'Net::SMTP' => "2.15", 'File::Copy' => '0', 'File::Find' => '0', 'File::Path' => '0', 'Carp' => '0', 'Sys::Hostname' => '0', 'Digest::MD5' => '0', 'Fcntl' => '0', 'Config::Record' => '1.0.3', 'Template' => '0', 'POSIX' => '0' }, dist => { COMPRESS => 'gzip --force --best', }, clean => { FILES => '*.bak *~', }, depend => { Makefile => '$(VERSION_FROM)', Test-AutoBuild.spec => '$(VERSION_FROM)', dist => 'Test-AutoBuild.spec', }, realclean => { FILES => 'Test-AutoBuild-*.tar.gz Test-AutoBuild.spec', }, ); package MY; sub libscan { my ($self, $path) = @_; ($path =~ /\~$/) ? undef : $path; } sub postamble { ' sysconfdir = $(PREFIX)/etc pkgsysconfdir = $(sysconfdir)/auto-build.d install :: if [ -f $(pkgsysconfdir)/auto-build.conf ]; then \ install -c -D -m 0644 conf/auto-build.conf $(pkgsysconfdir)/auto-build.conf-example; \ echo "Not overwriting existing config file $(pkgsysconfdir)/auto-build.conf" ;\ else \ install -c -D -m 0644 conf/auto-build.conf $(pkgsysconfdir)/auto-build.conf; \ fi install -c -D -m 0644 conf/auto-build.cron $(pkgsysconfdir)/auto-build.cron; install -d -m 0755 $(pkgsysconfdir)/templates install -c -m 0644 templates/*.txt $(pkgsysconfdir)/templates/ install -c -m 0644 templates/*.html $(pkgsysconfdir)/templates/ install -c -m 0644 templates/*.tt $(pkgsysconfdir)/templates/ install -c -m 0644 templates/*.css $(pkgsysconfdir)/templates/ install -c -m 0644 templates/*.rss $(pkgsysconfdir)/templates/ '; } __END__