root/trunk/Sniffer-Postgres/Makefile.PL

Revision 92, 1.3 kB (checked in by jesus, 4 years ago)

Move this into pgtreats

  • Property svn:executable set to *
Line 
1 use ExtUtils::MakeMaker;
2 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3 # the contents of the Makefile that is written.
4
5 eval {
6     require Net::Pcap;
7 };
8 if (! $@) {
9     if (&Net::Pcap::lib_version() eq 'libpcap version unknown (pre 0.8)') {
10         warn <<VERSION_TOO_LOW;
11 Your version of libpcap is too low.
12
13 You need to install a higher version of
14 libpcap, and possibly recompile Net::Pcap
15 so it picks up the new, and necessary features.
16
17 If you're using Debian, the magic incantation is
18
19   apt-get install libpcap0.8-dev
20
21 I give up. Sorry.
22 VERSION_TOO_LOW
23         exit 1;
24     };
25 };
26
27 WriteMakefile(
28     'NAME'    => 'Sniffer::Postgres',
29     'VERSION_FROM'  => 'lib/Sniffer/Postgres.pm', # finds $VERSION
30     'EXE_FILES'    => ['bin/pgsniff'],
31     'PREREQ_PM'    => { 'Class::Accessor' => 0,
32                         'Class::Data::Inheritable' => 0,
33                         'NetPacket::TCP'  => 0,
34                         'Net::Pcap'       => 0.09,
35                         'Exporter::Lite'  => 0,
36                         'Sniffer::HTTP'   => 0.19,
37                       }, # e.g., Module::Name => 1.1
38     ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
39       (ABSTRACT_FROM => 'lib/Sniffer/Postgres.pm', # retrieve abstract from module
40        AUTHOR     => 'Theo Schlossnagle <jesus@omniti.com>') : ()),
41 );
42
43 1;
Note: See TracBrowser for help on using the browser.