File: Makefile.PL

package info (click to toggle)
spamassassin 4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,988 kB
  • sloc: perl: 88,863; ansic: 5,193; sh: 3,737; javascript: 339; sql: 295; makefile: 209; python: 49
file content (50 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download | duplicates (6)
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
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/perl
use strict;
use ExtUtils::MakeMaker;
use Apache::TestMM qw(test clean);

unless (grep /^-?-apxs$/, @ARGV) {
	if (my $apxs = find_in_path('apxs')) {
		push @ARGV, '--apxs', $apxs;
	}
	else {
		warn 'apxs not found in PATH; ',
		  'try "perl Makefile.PL --apxs /path/to/apxs"', "\n";
	}
}

Apache::TestMM::filter_args();
Apache::TestMM::generate_script('t/TEST');

WriteMakefile(
	VERSION   => '0.03',
	NAME      => 'Mail::SpamAssassin::Spamd::Apache2',
	ABSTRACT  => 'mod_perl2 module implementing spamd in Apache2',
	AUTHOR    => 'The Apache SpamAssassin Project <dev at spamassassin.apache.org>',
	EXE_FILES => [qw(bin/apache-spamd.pl)],
	PREREQ_PM => {
		'mod_perl2'          => 2,
		'Mail::SpamAssassin' => 3.001,
		'File::Path'         => 0,
		'File::Temp'         => 0,
		'Getopt::Long'       => 2.34,
		'Apache::Test'       => 0,
	},
);


sub find_in_path {
	require File::Spec;
	my $prog = shift or die;
	return $_
	  for grep -x, map File::Spec->catfile($_, $prog), File::Spec->path();
	undef;
}

# Apache::Test checks if server is alive by trying "GET / HTTP/1.0".
# Can be skipped either with this hack, or... by allowing GET.
#sub MY::postamble {
#	"PASSENV += APACHE_TEST_PRETEND_NO_LWP=1\n"
#}

# vim: ts=4 sw=4 noet